# Amazon Simple Queue Service (Amazon SQS)

Cloud service · AWS. Updated 2026-11-12. Page: https://blowstack.com/tools/cloud-services-hub/amazon-simple-queue-service-(amazon-sqs)

> Amazon Simple Queue Service (Amazon SQS) is a scalable, fully managed message queuing service that enables the decoupling and scaling of microservices, distributed systems, and serverless applications.

Practice exams covering Amazon Simple Queue Service (Amazon SQS): [ANS-C01 AWS Certified Advanced Networking - Specialty](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty), [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [SOA-C03 AWS Certified CloudOps Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-cloudops-engineer-associate), [DEA-C01 AWS Certified Data Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate), [DVA-C02 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate), [DOP-C02 AWS Certified DevOps Engineer - Professional](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional), [AIP-C01 AWS Certified Generative AI Developer - Professional](https://blowstack.com/practice-exams/aws-certified-generative-ai-developer-professional), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate), [SAP-C03 AWS Certified Solutions Architect - Professional](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional).

## 10 key features of Amazon Simple Queue Service (Amazon SQS)

Amazon Simple Queue Service (Amazon SQS) is a fully managed message queuing service that enables the decoupling and scaling of microservices, distributed systems, and serverless applications through secure, durable, and highly available message queues.

1. **Scalability**: Amazon SQS automatically scales according to the demand of message throughput without needing to provision resources in advance, ensuring that your application can handle high volumes of messages without any manual intervention.
2. **Durability**: SQS provides high message durability, storing messages across multiple Availability Zones to prevent loss and ensuring that messages are available whenever you need them.
3. **Security**: SQS includes features like server-side encryption (SSE) to protect messages at rest, AWS Identity and Access Management (IAM) for controlling access, and VPC Endpoints to keep traffic within the AWS network, enhancing the security of your message queues.
4. **Ease of Use**: SQS allows for easy queue setup and operation with a simple web services interface to delete, send, and receive messages. The AWS Management Console provides a quick and intuitive interface for managing your queues.
5. **Delay Queues**: SQS supports delay queues, enabling you to postpone the delivery of new messages to a queue for a number of seconds, making it easier to design and manage time-dependent operations within your applications.
6. **Dead Letter Queues**: SQS supports dead letter queues, which can help in troubleshooting and resolving issues related to the processing of messages by automatically redirecting undeliverable messages to a separate queue.
7. **Cost-effectiveness**: With SQS, there is no upfront cost, and you pay as you go based on the number of requests made, as well as applicable data transfer, making it a cost-effective solution for message queuing.
8. **Large Payload Offloading**: Payloads larger than 1 MiB can be stored in Amazon S3, with Amazon SQS holding a pointer to the S3 object; alternatively, a large message can be split into smaller messages.
9. **Message Attributes**: Each message can contain up to 10 metadata attributes.
10. **Message Batching**: A single message batch request can include up to 10 messages.

## Where Amazon Simple Queue Service (Amazon SQS) is used

Amazon Simple Queue Service (Amazon SQS) is primarily used for decoupling distributed system components, ensuring message durability and delivery, and scaling applications by managing communication between components and microservices efficiently.

1. **Decoupling Microservices**: Amazon SQS enables independently designed microservices to communicate with each other over the cloud. This decoupling reduces system complexity by allowing services to interact asynchronously, thereby increasing flexibility and scalability. It facilitates the transmission of messages or notifications between services, ensuring that each component functions efficiently without being directly dependent on others.
2. **Load Balancing**: In applications that experience variable loads, Amazon SQS can be used to balance loads between different components of the system. By queuing incoming tasks and processing them at a manageable rate, it ensures that no single component is overwhelmed. This improves the overall responsiveness and reliability of the application, as tasks are methodically distributed and processed.
3. **Delayed Processing**: Amazon SQS allows developers to delay the delivery of messages up to 15 minutes. This feature is useful in scenarios where processing of tasks needs to be postponed, such as rate-limited API calls where a cooldown period is necessary. By leveraging delayed messages, applications can efficiently manage task execution timing, optimizing resource use and adhering to operational constraints.
4. **Scalable Communication in IoT Applications**: For Internet of Things (IoT) applications that require scalable and reliable messaging between devices and services, Amazon SQS offers a robust solution. It can handle huge volumes of messages generated by IoT devices, enabling secure and scalable communication channels. This ensures that data collected from devices can be processed and analyzed in real-time or batch mode, facilitating timely decision-making and actions based on IoT data insights.
5. **Order Processing Pipeline**: Amazon SQS is ideal for managing orders in e-commerce applications, where it serves as a queue for incoming orders. It acts as a buffer between the order submission interface and the order processing service, ensuring that each order is processed systematically. By decoupling the order submission from the processing, it enhances the system's ability to scale and manage peak loads, such as during sales or promotional events, while maintaining order integrity and processing efficiency.

## How Amazon Simple Queue Service (Amazon SQS) is priced

Amazon SQS pricing models typically include a pay-as-you-go approach based on the number of requests made, with additional costs for features like data transfer and optional services such as Amazon SQS FIFO (First-In-First-Out) queues.

- **Standard Queues**: For Standard Queues, Amazon SQS charges based on the number of requests made. This includes actions such as SendMessage, ReceiveMessage, and DeleteMessage. Pricing is calculated per million requests after the free tier is exceeded.
- **FIFO Queues**: FIFO (First-In-First-Out) queues have a different pricing model, focusing on the higher reliability and message ordering guarantees. API actions for sending, receiving, deleting, and changing message visibility are charged at FIFO rates, calculated per million requests after the free tier limit. All other API requests are charged at standard rates.
- **Data Transfer**: AWS does not charge for data transfer when sending messages to or receiving messages from Amazon SQS if all resources are in the same AWS region. For cross-region data transfer and data transfer to or from the internet, standard AWS Data Transfer Charges apply.
- **Free Tier**: Amazon SQS offers a free tier, available to both new and existing customers. The free tier includes 1 million requests per month for both Standard and FIFO queues. This does not include data transfer costs, which are billed separately.
- **Fair Queues**: Sending, receiving, deleting, and changing message visibility in standard queues incur both fair queue rates and standard queue rates when at least one message with a message group ID is involved. All other API requests are charged only standard rates.
- **AWS KMS Requests**: When AWS KMS manages keys for SQS server-side encryption, calls from Amazon SQS to AWS KMS incur AWS KMS charges.
- **Amazon S3 Payload Storage**: Using the Amazon SQS Extended Client Library to send payloads through Amazon S3 incurs charges for the Amazon S3 storage used for those payloads.

## Services Amazon Simple Queue Service (Amazon SQS) works with

- **[Amazon API Gateway](https://blowstack.com/tools/cloud-services-hub/amazon-api-gateway)**: Amazon SQS can receive messages directly from API Gateway through an AWS service integration, without an intermediary Lambda function. An API endpoint can enqueue incoming requests for asynchronous processing.
- **[Amazon CloudWatch](https://blowstack.com/tools/cloud-services-hub/amazon-cloudwatch)**: Amazon SQS publishes queue metrics to CloudWatch, including visible message counts, in-flight messages, and the approximate age of the oldest message. CloudWatch alarms can notify operators when a backlog grows or messages remain unprocessed.
- **[Amazon DevOps Guru](https://blowstack.com/tools/cloud-services-hub/amazon-devops-guru)**: Amazon SQS queues are supported resources for DevOps Guru operational analysis. DevOps Guru analyzes queue metrics to identify anomalous behavior and surface related operational insights.
- **[Amazon EC2 Auto Scaling](https://blowstack.com/tools/cloud-services-hub/amazon-ec2-auto-scaling)**: Amazon SQS queues can receive EC2 Auto Scaling lifecycle notifications for instance launches and terminations. A lifecycle-hook consumer can perform initialization or cleanup before allowing the instance transition to continue.
- **[Amazon EventBridge](https://blowstack.com/tools/cloud-services-hub/amazon-eventbridge)**: Amazon SQS queues can receive events from EventBridge rules and serve as dead-letter queues for failed event deliveries. EventBridge Pipes can also poll an SQS queue, filter and enrich its messages, and deliver them to a configured target.
- **[Amazon Managed Service for Apache Flink](https://blowstack.com/tools/cloud-services-hub/amazon-managed-service-for-apache-flink)**: Amazon SQS can receive streaming output from Managed Service for Apache Flink applications through the Amazon SQS sink connector. The connector supports asynchronous, batched message delivery to a queue.
- **[Amazon Managed Workflows for Apache Airflow (Amazon MWAA)](https://blowstack.com/tools/cloud-services-hub/amazon-managed-workflows-for-apache-airflow-(amazon-mwaa))**: Amazon SQS provides the Celery task queue used by Amazon MWAA to distribute work to Airflow workers. MWAA manages the queue as part of the environment infrastructure.
- **[Amazon OpenSearch Service](https://blowstack.com/tools/cloud-services-hub/amazon-opensearch-service)**: Amazon SQS queues can supply S3 object notifications to OpenSearch Ingestion pipelines. A pipeline consumes the notifications, retrieves the referenced objects, and ingests their contents into an OpenSearch destination.
- **[Amazon S3](https://blowstack.com/tools/cloud-services-hub/amazon-s3)**: Amazon SQS queues can receive S3 event notifications when objects are created, removed, or undergo other supported changes. The SQS Extended Client Library also stores large message payloads in S3 and places references to those objects in queue messages.
- **[Amazon Security Lake](https://blowstack.com/tools/cloud-services-hub/amazon-security-lake)**: Amazon SQS queues deliver notifications about new Security Lake data to subscribers with data access. Subscribers consume these notifications to locate and retrieve security log objects from S3.
- **[Amazon Simple Notification Service (Amazon SNS)](https://blowstack.com/tools/cloud-services-hub/amazon-simple-notification-service-(amazon-sns))**: Amazon SQS queues can subscribe to SNS topics, allowing each queue to receive its own copy of published messages. Subscription filters select which messages reach each queue, and compatible FIFO topics and queues preserve message ordering.
- **[Amazon VPC](https://blowstack.com/tools/cloud-services-hub/amazon-vpc)**: Amazon SQS can be accessed through interface VPC endpoints, keeping queue API traffic off the public internet. Endpoint policies can restrict which queues and SQS operations are accessible through an endpoint.
- **[AWS AppConfig](https://blowstack.com/tools/cloud-services-hub/aws-appconfig)**: Amazon SQS queues can receive AppConfig deployment notifications through the AWS-provided deployment notification extension. Queue consumers can react to configuration deployment events without polling AppConfig.
- **[AWS AppSync](https://blowstack.com/tools/cloud-services-hub/aws-appsync)**: Amazon SQS APIs can be invoked directly from AppSync HTTP data sources using AWS Signature Version 4 authorization. A GraphQL resolver can enqueue work in SQS without an intermediary application server or Lambda function.
- **[AWS CloudFormation](https://blowstack.com/tools/cloud-services-hub/aws-cloudformation)**: Amazon SQS queues and queue policies can be provisioned and managed as CloudFormation resources. Templates can configure properties such as FIFO behavior, encryption, visibility timeouts, and dead-letter queue relationships.
- **[AWS CloudTrail](https://blowstack.com/tools/cloud-services-hub/aws-cloudtrail)**: Amazon SQS integrates with CloudTrail to record queue management activity and supported message-level data events. These records identify who performed operations such as changing queue settings or sending and receiving messages.
- **[AWS Config](https://blowstack.com/tools/cloud-services-hub/aws-config)**: Amazon SQS queue configurations can be recorded by AWS Config and evaluated with managed or custom rules. Rules can check requirements such as encryption and restrictions on public access.
- **[AWS Elastic Beanstalk](https://blowstack.com/tools/cloud-services-hub/aws-elastic-beanstalk)**: Amazon SQS supplies the work queue for Elastic Beanstalk worker environments. The worker daemon polls messages, delivers them to the application through local HTTP requests, and deletes them after successful processing.
- **[AWS Glue](https://blowstack.com/tools/cloud-services-hub/aws-glue)**: Amazon SQS queues can feed S3 event notifications to AWS Glue crawlers. After an initial crawl, the crawler can use queued notifications to identify changed folders instead of listing the entire S3 data source.
- **[AWS Identity and Access Management (IAM)](https://blowstack.com/tools/cloud-services-hub/aws-identity-and-access-management-(iam))**: Amazon SQS uses IAM policies and queue resource policies to control access to queues and messaging operations. Permissions can separate message producers, consumers, and administrators or grant access across AWS accounts.
- **[AWS IoT Core](https://blowstack.com/tools/cloud-services-hub/aws-iot-core)**: Amazon SQS queues can receive messages through an AWS IoT Core rule action. Rules can filter or transform device messages before placing them in a queue for asynchronous processing.
- **[AWS IoT Greengrass](https://blowstack.com/tools/cloud-services-hub/aws-iot-greengrass)**: Amazon SQS queues can be consumed by the SQS Poller connector in AWS IoT Greengrass V1. The connector forwards retrieved messages to local processing functions and deletes successfully processed messages.
- **[AWS Key Management Service (AWS KMS)](https://blowstack.com/tools/cloud-services-hub/aws-key-management-service-(aws-kms))**: Amazon SQS can encrypt message bodies at rest using AWS KMS keys. Key policies and IAM permissions control which producers and consumers may use the key, including when other AWS services send messages to an encrypted queue.
- **[AWS Lambda](https://blowstack.com/tools/cloud-services-hub/aws-lambda)**: Amazon SQS queues can trigger Lambda functions through event source mappings that poll queues and invoke functions with message batches. Successfully processed messages are deleted, and partial batch responses can identify individual messages that need another attempt.
- **[AWS PrivateLink](https://blowstack.com/tools/cloud-services-hub/aws-privatelink)**: Amazon SQS supports private API access through AWS PrivateLink interface endpoints. Applications can send, receive, and manage messages without requiring an internet gateway or NAT gateway.
- **[AWS Resilience Hub](https://blowstack.com/tools/cloud-services-hub/aws-resilience-hub)**: Amazon SQS queues can be included in applications assessed by Resilience Hub. Resilience Hub evaluates supported queue resources as part of determining whether an application meets its recovery objectives.
- **[AWS Resource Groups and Tag Editor](https://blowstack.com/tools/cloud-services-hub/aws-resource-groups-and-tag-editor)**: Amazon SQS queues support tag-based organization through Resource Groups and Tag Editor. Administrators can find queues by their tags, include them in resource groups, and manage tags across multiple queues.
- **[AWS Security Hub](https://blowstack.com/tools/cloud-services-hub/aws-security-hub)**: Amazon SQS queues are covered by Security Hub controls that evaluate queue security settings, including encryption at rest. Failed checks produce findings that can be tracked and remediated alongside other security issues.
- **[AWS Step Functions](https://blowstack.com/tools/cloud-services-hub/aws-step-functions)**: Amazon SQS messages can be sent directly from Step Functions using its optimized service integration. A workflow can also include a task token in a message and wait for a consumer to report completion through the callback API.
- **[AWS Systems Manager](https://blowstack.com/tools/cloud-services-hub/aws-systems-manager)**: Amazon SQS operations can be performed from Systems Manager Automation runbooks using the aws:executeAwsApi action. Runbooks can send operational messages or manage queue settings using the permissions of their automation role.
- **[AWS X-Ray](https://blowstack.com/tools/cloud-services-hub/aws-x-ray)**: Amazon SQS supports propagation of X-Ray trace context through the AWSTraceHeader message system attribute. This allows supported consumers, including Lambda, to connect message processing with the upstream request trace.

## What is Amazon Simple Queue Service (Amazon SQS)

Amazon Simple Queue Service (Amazon SQS) is a fully managed message queuing service designed to decouple and scale microservices, distributed systems, and serverless applications. Amazon SQS simplifies the complexity and overhead involved in managing and operating message-oriented middleware systems.

It delivers a robust, secure, and highly scalable solution that allows developers to focus on building functionality rather than worrying about the underlying infrastructure required to pass messages between different components of an application.

The core premise of Amazon SQS is to send, store, and receive messages between software components at any volume, without losing messages or requiring other services to be available. This makes it an incredibly valuable tool for building applications that require communication and coordination between separate services, such as order processing workflows, distributed systems where different components perform different tasks, and applications that must process actions initiated by users or services.

Receiving a message does not delete it: it remains in the queue and is hidden from subsequent receive requests for the visibility timeout. The consumer must delete the message after processing to prevent it from being received and processed again when that timeout expires.

Messages expire automatically after the queue's retention period. The default is 4 days, configurable from 60 seconds to 14 days.

One of the key features of Amazon SQS is its support for two types of queues: Standard Queues and FIFO (First-In-First-Out) Queues. Standard Queues offer maximum throughput, best-effort ordering, and at-least-once delivery, which means messages are delivered at least once, but not necessarily in the exact order they were sent. On the other hand, FIFO Queues are designed to guarantee that messages are processed exactly once, in the order that they are sent, which is critical for certain business operations that cannot tolerate duplicate processing or out-of-order messages.

Fair queues extend standard queues to mitigate noisy-neighbor impact in multi-tenant systems, helping maintain consistent message dwell times across tenants while retaining standard queue scalability and throughput.

Security in Amazon SQS is robust, offering encryption in transit and at rest, ensuring that messages are protected against unauthorized access. Additionally, Amazon SQS is integrated with AWS Identity and Access Management (IAM), allowing fine-grained control over who can send and receive messages on each queue. Amazon SQS is designed for high availability and durability. Messages stored in SQS are automatically replicated across multiple servers and data centers to prevent loss, ensuring that the system is resilient to failures and that messages are available when needed.

Server-side encryption uses Amazon SQS managed encryption by default; custom encryption keys managed in AWS KMS are another option.

The service is also highly scalable, allowing applications to send and receive thousands of messages per second. This scalability is mostly transparent to the user, as Amazon SQS can automatically adjust to changes in the volume of message traffic without any manual intervention, making it a perfect match for applications that experience variable workloads.

Stored-message counts are unlimited, but in-flight messages—received by a consumer and not yet deleted—are limited. Most standard queues have a limit of approximately 120,000 in-flight messages and return an OverLimit error when it is reached; FIFO queues have a limit of 120,000 and return no error when it is reached.

FIFO queues also offer a high throughput mode that you can enable in the Amazon SQS console. This mode supports up to 70,000 messages per second without batching and higher throughput with batching, with quotas varying by region.

Pricing for Amazon SQS is based on usage without any upfront costs, making it an economical choice for businesses of all sizes. Request fees are based on billable API requests rather than individual messages: every Amazon SQS action counts as a request, and each 64 KB chunk of a payload is billed as one request. This pay-as-you-go model allows businesses to start small and scale as their needs grow, without incurring significant initial costs.

Overall, Amazon Simple Queue Service is a highly reliable, secure, and scalable service that simplifies the task of message queuing for developers. Its wide range of features, combined with its integration into the AWS ecosystem, makes it an essential tool for modern application development, particularly in environments where services need to communicate asynchronously.

## Amazon Simple Queue Service (Amazon SQS) exam questions

Real practice exam questions on Amazon Simple Queue Service (Amazon SQS), with the correct answer and its explanation.

### Question 1 (CLF-C02)

**Question:**

A warehouse application sends inventory updates to a separate processing application. Updates for the same product must be retrieved in the order they were sent because processing a stock reduction before an earlier stock increase could produce an incorrect result. The company wants a fully managed messaging solution without building custom message-reordering logic. Which solution best meets these requirements?

**Correct answer:** Send updates to an Amazon SQS FIFO queue, using the product identifier as the message group ID.

**Explanation:** An SQS FIFO queue preserves message order within each message group. Grouping updates by product ensures that updates for the same product are retrieved in the order they were sent.

### Question 2 (SOA-C03)

**Question:**

A company routes operational incident events through an Amazon EventBridge rule to an Amazon SQS FIFO queue. Each source event contains a unique incidentId. An input transformer produces a message body containing only the service name and severity. The target uses a fixed MessageGroupId. The queue has content-based deduplication enabled, with deduplication scoped to the entire queue.

During testing, several distinct incidents for the same service and severity occur within five minutes. EventBridge reports successful target invocations, but the queue receives only one message. Consumers are paused, and no delivery errors occur.

A CloudOps engineer must ensure that every distinct incident reaches the queue while duplicate deliveries of the same incident within five minutes remain suppressed. Which change meets these requirements?

**Correct answer:** Update the input transformer to include incidentId in the message body while keeping the existing fields and content-based deduplication enabled.

**Explanation:** SQS content-based deduplication hashes the message body. The current transformer makes distinct incidents with the same service and severity produce identical bodies, so SQS suppresses them within the five-minute deduplication interval. Including the stable incidentId gives distinct incidents different bodies while repeated deliveries of the same incident retain identical bodies.

### Question 3 (SAP-C03)

**Question:**

A logistics company processes shipment updates for 20 external partners. Updates enter one Amazon SQS Standard queue. An Amazon EC2 Auto Scaling group spans three Availability Zones, and every worker can process updates for any partner. Processing an update requires a synchronous call to that partner's API.

During an incident, one partner's API began responding very slowly. Updates for that partner occupied nearly all worker execution slots, and its growing backlog delayed updates for healthy partners. The workers remained healthy. Adding instances helped temporarily, but the affected partner eventually consumed the additional capacity.

The company requires healthy partners to continue meeting their processing latency targets throughout another partner's prolonged API degradation. Updates must remain queued for eventual processing during outages of up to 24 hours. Each partner's normal peak workload is known, and sufficient capacity can be provisioned in advance. The ingestion tier and other dependencies have sufficient capacity and are not bottlenecks.

Which architecture change meets these requirements?

**Correct answer:** Create one SQS queue and one dedicated Auto Scaling group for each partner. Route updates to the appropriate queue, and restrict each group to consuming only its partner's queue. Preprovision each group for that partner's normal peak and configure queue retention to exceed the outage and recovery period.

**Explanation:** Separating both queues and worker fleets contains the degraded partner's backlog and occupied execution slots. Healthy partners retain their own preprovisioned processing capacity. Sufficient queue retention preserves affected updates until the partner recovers and the backlog can be processed.

### Question 4 (DEA-C01)

**Question:**

A logistics company has 40 regional applications that publish shipment events. The company wants to consolidate these events into a common ingestion backlog processed by an automatically scaling worker fleet. Every worker must be able to process events from any region without source-specific configuration. The messaging service must distribute work among workers rather than intentionally deliver a copy of every event to every worker.

The entire worker fleet can be unavailable for up to 48 hours. Event ordering is not required, and destination writes are idempotent. Which design meets these requirements with the least operational overhead?

**Correct answer:** Have all regional applications send events to one Amazon SQS standard queue with a 4-day retention period. Configure all workers to poll that queue and delete messages only after successful processing.

**Explanation:** A shared SQS queue consolidates events from all regional producers into one durable backlog. Workers compete for messages, allowing the fleet to share processing work without source-specific configuration. Four days of retention covers the 48-hour outage, and deleting messages after successful processing supports recovery. Idempotent destination writes handle possible redelivery.

### Question 5 (AIP-C01)

**Question:**

A company is building an asynchronous document-summarization API for custom clients. Clients submit JSON containing a job ID and a prompt. Prompts can contain characters such as &, +, =, newlines, and non-ASCII text. Workers consume jobs from an Amazon SQS queue and invoke Amazon Bedrock independently of the submission request.

The company wants Amazon API Gateway to submit validated requests directly to the queue without invoking a Lambda function. The complete JSON request body must be preserved as the SQS message body. Clients must receive HTTP 202 only after SQS successfully accepts the message; queue submission failures must produce an error response. HTTP 202 must not imply that summarization has completed.

The API Gateway REST API already has authentication and JSON body validation configured. Which integration configuration meets these requirements?

**Correct answer:** Configure an AWS service integration for SQS SendMessage with an execution role that permits sqs:SendMessage. Set the integration Content-Type to application/x-www-form-urlencoded and use Action=SendMessage&MessageBody=$util.urlEncode($input.body). Map successful SQS responses to HTTP 202 and unsuccessful responses to appropriate error statuses.

**Explanation:** The SQS Query API expects form-encoded parameters. URL-encoding the entire JSON body prevents prompt characters from being interpreted as form delimiters or encoding syntax. SQS decodes the parameter and stores the original JSON as the message body. Returning 202 only for successful queue submissions acknowledges durable acceptance, not completion of model inference.

### Question 6 (DVA-C02)

**Question:**

A document-indexing application uses a single worker process to consume messages from an Amazon SQS standard queue. The worker continuously receives messages and starts an asynchronous indexing request for each message without waiting for earlier requests to finish. It deletes messages only after successful indexing, extends visibility while processing, and retries throttled requests with exponential backoff and jitter.

During temporary slowdowns, the indexing endpoint returns HTTP 429 responses. The worker's pending requests and memory usage continue to grow even though retries are delayed. Messages can remain in the queue during these slowdowns, and the queue's retention period is sufficient.

Which change should a developer make to keep the worker's resource usage bounded and make its consumption respond to downstream capacity?

**Correct answer:** Use a bounded pool of in-flight indexing operations. Receive messages only when slots are available, fetch no more messages than available slots, and reduce the pool's concurrency when the endpoint throttles requests.

**Explanation:** The bounded pool limits outstanding work, and pausing receives when the pool is full leaves excess work durably buffered in SQS. Reducing concurrency in response to throttling propagates downstream capacity constraints to message consumption. Existing visibility extension, retry, and deletion behavior preserves unfinished work.

### Question 7 (DOP-C02)

**Question:**

A company's incident detector publishes small JSON messages to an Amazon SNS standard topic. Each message includes between 5 and 15 SNS message attributes that contain investigation context. An Amazon SQS standard queue subscribes to the topic with raw message delivery enabled. An incident-response application reads the message body and native SQS message attributes.

During testing, messages with up to 10 attributes reach the queue, but messages with more than 10 attributes do not. All publish requests succeed, and the topic and queue permissions are correct.

A DevOps engineer must deliver every incident message and preserve all its attributes. The publisher must remain unchanged, and the solution must not introduce another service or custom forwarding code. The incident-response application can be modified.

Which solution meets these requirements?

**Correct answer:** Disable raw message delivery on the subscription. Modify the application to extract the original message and its attributes from the SNS JSON envelope in the SQS message body.

**Explanation:** An SNS subscription to SQS with raw message delivery enabled supports a maximum of 10 message attributes. SNS discards messages with more than 10 attributes for these subscriptions. Disabling raw delivery places the original message and SNS attributes in a JSON envelope in the SQS message body, preserving the attributes without changing the publisher.

### Question 8 (SAA-C03)

**Question:**

A monitoring application publishes equipment-failure events to an Amazon SNS standard topic. Separate Amazon SQS standard queues deliver each event to the maintenance team and the safety team. Each team's workers create a ticket in the same external ticketing account. Every failure must create one ticket for each team, but retries must not create additional tickets.

Each event contains a stable failure ID. The publisher can republish the same failure with a new SNS message ID, and workers can retry processing for up to 48 hours. The ticketing API supports an account-wide client token that prevents repeated ticket creation for 7 days. Reusing a token with different ticket parameters returns an error. Workers delete queue messages only after confirming that the required ticket exists.

Which solution meets these requirements?

**Correct answer:** Use a deterministic combination of the failure ID and the receiving team's identifier as the ticketing API client token.

**Explanation:** This assigns a stable token to each required ticket. Retries and republished events reuse that token, while the two teams use different tokens. The API's 7-day protection covers the entire 48-hour retry period, including a retry after ticket creation succeeds but its response is lost.

### Question 9 (ANS-C01)

**Question:**

A company automates configuration changes to stateful firewall clusters deployed in inspection VPCs. A central producer submits approved changes in the required order for each cluster. Several distinct changes for the same cluster can be submitted within one minute.

Multiple controller workers must process changes for different clusters concurrently. For any individual cluster, changes must be applied in submission order, with no more than one change in progress. Each worker receives one message at a time and deletes it only after verifying that the configuration change succeeded. Workers already implement idempotent processing, and the message visibility timeout exceeds the maximum processing duration.

Which messaging configuration meets these requirements without implementing distributed locks or consumer-side message reordering?

**Correct answer:** Use an SQS FIFO queue. Set MessageGroupId to the firewall cluster ID and MessageDeduplicationId to a unique configuration change ID that remains unchanged when the producer retries that change.

**Explanation:** A FIFO message group provides ordered processing for one cluster and prevents another worker from receiving subsequent messages in that group while the current message remains in flight. Different cluster groups can be processed concurrently. A stable, unique change ID suppresses duplicate producer submissions within the deduplication interval without suppressing distinct changes. Idempotent workers still protect against reprocessing after failures.

## Practice Amazon Simple Queue Service (Amazon SQS) in a full exam

Questions on Amazon Simple Queue Service (Amazon SQS) in each practice exam, with every answer option and an explanation for each:

- [SAA-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate): 30 questions
- [DEA-C01](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate): 22 questions
- [DOP-C02](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional): 22 questions
- [DVA-C02](https://blowstack.com/practice-exams/aws-certified-developer-associate): 20 questions
- [SAP-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional): 6 questions
- [AIP-C01](https://blowstack.com/practice-exams/aws-certified-generative-ai-developer-professional): 6 questions
- [CLF-C02](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner): 4 questions
- [SOA-C03](https://blowstack.com/practice-exams/aws-certified-cloudops-engineer-associate): 4 questions
- [ANS-C01](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty): 3 questions

## Learn Amazon Simple Queue Service (Amazon SQS) in lessons

18 short lessons on Amazon Simple Queue Service (Amazon SQS) in 7 certification courses.

- CLF-C02: Amazon EventBridge vs Amazon SQS: event routing or message queuing (Premium), https://app.blowstack.com/lessons/amazon-eventbridge-vs-amazon-sqs-event-routing-or-message-queuing-clf-c02
- SOA-C03: Amazon SQS vs Amazon EventBridge: queuing and event routing (Premium), https://app.blowstack.com/lessons/amazon-sqs-vs-amazon-eventbridge-queuing-and-event-routing-soa-c03
- SAP-C03: Amazon SQS vs Amazon Kinesis Data Streams: queues and replayable streams (Premium), https://app.blowstack.com/lessons/amazon-sqs-vs-amazon-kinesis-data-streams-queues-and-replayable-streams-sap-c03
- DEA-C01: Amazon SNS vs Amazon SQS: notification distribution or queued processing (Premium), https://app.blowstack.com/lessons/amazon-sns-vs-amazon-sqs-notification-distribution-or-queued-processing-dea-c01
- AIP-C01: Amazon SQS: reliable asynchronous request processing (Premium), https://app.blowstack.com/lessons/amazon-sqs-reliable-asynchronous-request-processing-aip-c01
- DOP-C02: Amazon SQS: message processing lifecycle (Premium), https://app.blowstack.com/lessons/amazon-sqs-message-processing-lifecycle-dop-c02
