Question : Select the correct statement regarding to get the count of messages in a queue 1. You can view the number of messages that are visible 2. you can view the number of messages that are not visible 3. you can view the total number of messages that are visible and not visible (By Single request) 4. 1 and 2 5. 1 2 and 3
Correct Answer : 4
Explanation:
To help you estimate the resources needed to process your queued messages, Amazon SQS can provide you with an approximate number of messages in a queue. You can view the number of messages that are visible or you can view the number of messages that are not visible. Because of the distributed architecture of Amazon SQS, the result is not an exact count of the number of messages in a queue. In most cases it should be close to the actual number of messages in the queue, but you should not rely on the count being precise.
Get the approximate number of messages in the queue
GetQueueAttributes
ApproximateNumberOfMessages
Get the approximate number of messages in the queue that are not visible
GetQueueAttributes
ApproximateNumberOfMessagesNotVisible
Question : What is "visibility timeout" in Amazon SQS queue ? 1. is a period of time during which Amazon SQS prevents other consuming components from receiving and processing that message, once it is processed by your component 2. is a period after submitting the message to queue will not be available to consumer because queue parse that message during this time. 3. is a period after this message will be deleted 4. is a period of till the message will remain in the queue
Correct Answer : 1
Explanation: When a consuming component in your system receives and processes a message from the queue, the message remains in the queue. Why doesn't Amazon SQS automatically delete it?
Because your system is distributed, there's no guarantee that the component will actually receive the message (it's possible the connection could break or the component could fail before receiving the message). Therefore, Amazon SQS does not delete the message, and instead, your consuming component must delete the message from the queue after receiving and processing it.
Immediately after the component receives the message, the message is still in the queue. However, you don't want other components in the system receiving and processing the message again. Therefore, Amazon SQS blocks them with a visibility timeout, which is a period of time during which Amazon SQS prevents other consuming components from receiving and processing that message.
Question : EC instances are launched from Amazon Machine images (AMIs). A given public AMI can: 1. be used to launch EC2 Instances in any AWS region. 2. only be used to launch EC2 instances in the same country as the AMI is stored.
3. only be used to launch EC2 instances in the same AWS region as the AMI is stored. 4. only be used to launch EC2 instances in the same AWS availability zone as the AMI is stored
Correct Answer : 3
Explanation: AMIs exist in only one AWS region. When an AMI is copied between regions, it receives a new AMI ID. This means that the "same" image will appear with a different AMI ID in each region.
1. Serialize the image and store it in multiple DynamoDB tables 2. Create an "Images" DynamoDB table to store the Image with a foreign key constraint to the "Product" table 3. Add an image data type to the "Product" table to store the images in binary format 4. Store the images in Amazon S3 and add an S3 URL pointer to the "Product" table item for each image
1. Simple Storage Service objects are limited to 5 GB 2. Use the multipart upload API for this object 3. Use the large object upload API for this object 4. Contact support to increase your object size limit
1. Message will be immediately deleted from all the queues 2. Message will never be deleted from the queue until you change this value again 3. Message will remain in the queue, but no component can process it 4. Immediately makes the message visible to other components in the system to process