Question : You are providing AWS consulting services for a company developing a new mobile application that will be leveraging Amazon SNS Mobile Push for push notifications. In order to send direct notification messages to individual devices each device registration identifier or token needs to be registered with SNS; however the developers are not sure of the best way to do this. You advise them to: 1. Bulk upload the device tokens contained in a CSV file via the AWS Management Console. 2. Let the push notification service (e.g. Amazon Device Messaging) handle the registration. 3. Implement a token vending service to handle the registration. 4. Call the CreatePlatformEndPoint API function to register multiple device tokens.
Correct Answer : 4
Explanation: To send a push notification message to a mobile app and device using the APIs, you must first use the CreatePlatformApplication action, which returns a PlatformApplicationArnattribute. The PlatformApplicationArn attribute is then used by CreatePlatformEndpoint, which returns an EndpointArn attribute. You can then use the EndpointArn attribute with the Publish action to send a notification message to a mobile app and device, or you could use the EndpointArn attribute with the Subscribe action for subscription to a topic.
The TVMs are provided as an example of one way to implement the interaction with AWS Security Token Service. You are free to use the TVMs as provided, modify them to fit your application, or use them as inspiration for an entirely separate implementation. The source for the TVMs is available at GitHub for both the Anonymous TVM and the Identity TVM.
Question : If you want to delay the message for some time in the queue, which is the best way 1. Using delay queue 2. Using the Dead later queue 3. Using the normal queue but set the attribute DelaySeconds 4. 1 and 3 5. All 1,2 and 3
Correct Answers: 4
Explanation: Delay queues allow you to postpone the delivery of new messages in a queue for a specific number of seconds. If you create a delay queue, any message that you send to that queue will be invisible to consumers for the duration of the delay period. You can use CreateQueue to create a delay queue by setting the DelaySeconds attribute to any value between 0 and 900 (15 minutes). You can also turn an existing queue into a delay queue by using SetQueueAttributes to set the queue's DelaySeconds attribute.
Delay queues are similar to visibility timeouts in that both features make messages unavailable to consumers for a specific period of time. The difference between delay queues and visibility timeouts is that for delay queues, a message is hidden when it is first added to the queue, whereas for visibility timeouts, a message is hidden only after a message is retrieved from the queue. The following figure illustrates the relationship between delay queues and visibility timeouts. Amazon SQS message timers allow you to specify an initial invisibility period for a message that you are adding to a queue. For example, if you send a message with the DelaySeconds parameter set to 45, the message will not be visible to consumers for the first 45 seconds that the message resides in the queue. The default value for DelaySeconds is 0.
Question : The total size of all the messages that you send in a single call to SendMessageBatch cannot exceed 1. 256 KB 2. 1024 KB 3. 64 KB 4. There is practically no size limit in case of batch
Correct Answer : 1
Explanation: You can send a message as large as 262,144 bytes (256 KB) with SendMessageBatch. However, the total size of all the messages that you send in a single call to SendMessageBatch cannot exceed 262,144 bytes (256 KB).
1. SQS allows time-critical messages to be sent through a push mechanism eliminating the need to poll for data 2. SQS is used by distributed applications and can be used to decouple sending and receiving components without requiring each application component to be concurrently available 3. Access Mostly Uused Products by 50000+ Subscribers 4. None of the above