SQS Flashcards
This deck aims to help retain concepts related to the SQS service.
Which AWS service provides a secure, durable, and highly available hosted queue that can integrate and decouple distributed software systems and components?
Amazon Simple Queue Service (SQS)
What are the two types of queues supported by SQS?
Standard and FIFO
What is the maximum size of an SQS message?
256 KB, but messages can include links to larger data
If VisibilityTimeout is set both on an SQS queue and on an individual message, which setting takes priority?
The setting applied to the message
Which SQS attribute can be configured (either on the queue or per message) to handle error correction and automatic reprocessing?
VisibilityTimeout (0 seconds to 12 hours)
This attribute specifies the time required for message processing by the client, if processing fails, the message becomes available for retry after the VisibilityTimeout period
What action must a client explicitly perform after successfully processing an SQS message?
The client must delete the message from the queue
Where are problematic SQS messages typically redirected for further analysis?
To a Dead-Letter Queue, which is configured to retain unsuccessfully processed messages for further investigation
What is the common integration pattern between SQS and Auto Scaling Groups (ASG)?
ASG can scale based on the length of the SQS queue
What integration does SQS support for serverless message processing?
SQS can invoke AWS Lambda functions when messages appear in the queue
What is the common integration pattern between SQS and SNS?
Fanout architecture, where a message sent to an SNS topic is received by multiple SQS queues subscribed to that topic, triggering message processing
What polling types are supported by SQS?
Short-polling and Long-polling
Which polling type immediately consumes requests and returns 0-10 messages?
Short-polling
In which polling type is if messages are available on the queue they will be received, and if not the request will wait for specified waitTimeSeconds (up to 20sec) for messages to arrive?
Long-polling, the more cost-effective approach
Does SQS support server-side encryption?
Yes, SQS supports server-side encryption with AWS KMS for messages at rest and encryption in transit for messages transferred between SQS and clients
How is access to the SQS queue managed within AWS?
Through identity-based policies (within the same account) or resource-based policies (SQS Queue Policy) for access from external accounts