โ† All AWS Flashcard Decks

Certified Solutions Architect Decoupling with SQS and SNS Flashcards

7 cards from real AWS practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Certified Solutions Architect Decoupling with SQS and SNS flashcards as text
  1. A company wants to ensure that messages in an SQS queue are not processed more than once. Which SQS queue type and feature should be used?

    Answer: FIFO queue with content-based deduplication enabled

    FIFO queues with content-based deduplication use a SHA-256 hash of the message body to prevent duplicate messages within a 5-minute deduplication interval.

  2. An SNS topic is configured to deliver messages to an SQS queue. The SQS queue policy must allow which principal to send messages?

    Answer: The SNS service (sns.amazonaws.com)

    The SQS queue resource policy must grant the SNS service principal (sns.amazonaws.com) permission to send messages to the queue.

  3. A solutions architect needs messages to be delivered in strict order to multiple SQS consumers. Which combination achieves this?

    Answer: FIFO SQS queue with a single consumer group per message group ID

    Within a FIFO queue, messages with the same MessageGroupId are delivered in order, and only one consumer processes messages from a given group at a time.

  4. What happens to an SQS message when a consumer receives it but does not delete it before the visibility timeout expires?

    Answer: The message becomes visible again and can be received by another consumer

    After the visibility timeout expires without deletion, SQS makes the message visible again so another consumer can attempt to process it.

  5. A company uses SNS fan-out to deliver order events to multiple SQS queues. One downstream team needs to receive only 'CANCELLED' order events. What is the correct approach?

    Answer: Apply an SNS subscription filter policy on the team's SQS subscription

    SNS subscription filter policies allow each subscriber to receive only messages whose attributes match defined criteria, such as orderStatus = CANCELLED.

  6. What is the maximum message size supported by Amazon SQS?

    Answer: 256 KB

    Amazon SQS supports a maximum message size of 256 KB; larger payloads must be stored in S3 and referenced via the SQS Extended Client Library.

  7. Which SQS feature allows a consumer to retrieve up to 10 messages in a single API call, reducing the number of empty responses when the queue is sparse?

    Answer: Long polling with WaitTimeSeconds up to 20

    Long polling keeps the connection open for up to 20 seconds and returns as soon as a message arrives, reducing empty responses and API costs.