SQS Flashcards
Can I delete all messages in a queue without deleting the queue itself?
Yes, using the PurgeQueue action.
Does SQS provide message ordering?
Yes and No.
Standard queues may not preserve ordering, but the newer FIFO queues guarantee that they will preserve ordering.
In general, you should use a maximum of __________ for a long-poll timeout.
20 seconds
True or False: SQS is PCI DSS Level 1 certified.
True.
An SQS message can contain up to __________ metadata attributes.
10
Does SQS guarantee delivery of messages?
Yes.
Standard queues provide at-least-once delivery.
FIFO queues provide exactly-once delivery. This means that each message is delivered once and remains in the queue until a consumer process deletes it.
How does SQS handle messages that can’t be processed?
Dead letter queues are available but must be configured.
What is the maximum number of inflight messages for a standard queue?
120,000
The default message retention period is __________.
4 days
Visibility timeout can be set between __________ and __________.
0 seconds, 12 hours.
True or False: SQS doesn’t provide the ability to encrypt messages in a queue.
False.
SQS provides the ability to encrypt messages using KMS keys.
Delivery delay can be between __________ and __________.
0 seconds, 15 minutes
The period of time during which SQS prevents other consumers from receiving and processing a particular message.
Visibility timeout.
Receive message wait time can be set between __________ and __________.
0 seconds, 20 seconds
For anonymous access, what is the value of the SenderId attribute for a message?
The author’s IP address.
How is SQS different from SNS?
SQS is a message queue service used by distributed apps to exchange messages through a “pull” model; polling required.
SNS allows apps to send messages to multiple subscribers through a “push” mechanism; no polling required.
SQS messages can be between __________ and __________ in size.
1 B, 256 KB
Message retention period can be set between __________ and __________.
1 minute, 14 days
True or False: A message queue’s name must be unique within the AWS account.
True.
True or False: SSE encrypts the body of a message and the message metadata.
False.
SSE only encrypts the body of the message.
What is the Receive Message Wait Time?
The max amount of time a long-polling request will wait before returning an empty response.
What is SQS long polling?
A way to retrieve messages that, unlike short polling, doesn’t return a response until a message arrives in the queue or times out.
What is a visibility timeout?
A period of time during which SQS prevents other consumers from receiving and processing a particular message.
Can I share messages between queues in different regions?
No.
Each SQS queue is independent with each region.
True or False: SQS supports message metadata.
True.