Amazon SQS Cheat Sheet
Amazon SQS Cheat Sheet
Users can access Amazon SQS from their VPC using VPC endpoints,
without using public IPs, and without needing to traverse the public
internet. VPC endpoints for Amazon SQS are powered by AWS
PrivateLink.
Benefits
o SQS can scale to process each buffered request and handle any
load increases or spikes independently.
Types of Queues
You can subscribe to one or more SQS queues to an Amazon SNS topic
from a list of topics available for the selected queue.
o You can associate only one queue with one or more Lambda
functions.
o You can’t associate an encrypted queue that uses an AWS
managed Customer Master Key for SQS with a Lambda function
in a different AWS account.
You can delete all the messages in your queue by purging them.
SQS supports dead-letter queues, which other queues can target for
messages that can’t be processed successfully.
o Main Parts
The queue
The messages
o Standard Queues
o FIFO Queues
You can use cost allocation tags to organize your AWS bill to reflect
your own cost structure.
Dead-Letter Queues
o A dead-letter queue lets you set aside and isolate messages that
can’t be processed correctly to determine why their processing
didn’t succeed.
Best Practices
o You are charged per 1 million SQS requests. The price depends
on the type of queue being used. Requests include:
API Actions
FIFO Requests
Limits
Limit Description
Question 1
A company has a web-based ticketing service that utilizes Amazon SQS and a
fleet of EC2 instances. The EC2 instances that consume messages from the
SQS queue are configured to poll the queue as often as possible to keep end-
to-end throughput as high as possible. The Solutions Architect noticed that
polling the queue in tight loops is using unnecessary CPU cycles, resulting in
increased operational costs due to empty responses.
In this scenario, what should the Solutions Architect do to make the system
more cost-effective?
For more AWS practice exam questions with detailed explanations, visit
the Tutorials Dojo Portal:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/
SQSDeveloperGuide
https://aws.amazon.com/sqs/features/
https://aws.amazon.com/sqs/pricing/
https://aws.amazon.com/sqs/faqs/