AWS Certified Cloud Practitioner Practice Questions

AWS Certified Cloud Practitioner (CLF-C02) exam preparation

AWS Certified Cloud Practitioner practice questions in English: 180 questions with explanations. The mock exam has 65 questions and 90 minutes.

AWS Certified Cloud Practitioner free question 9 / 10 · Domain 3: Cloud Technology and Services

Order messages are queued and handed off between application components, and processing the same order message twice would be a problem. Which choice matches the SQS page?

  1. Use an SQS dead-letter queue
  2. Use an SQS FIFO queue
  3. Use an SNS topic
  4. Use an SQS standard queue
Show the answer and explanation

Answer: B

Why this is correct
Under the durability benefit of SQS, the page says that to keep messages safe, they are stored on multiple servers, and that standard queues support at-least-once message delivery, while FIFO queues support exactly-once processing and a high-throughput mode. If you do not want the same order to be processed twice, choose the FIFO queue, which supports exactly-once processing.

Why the other options are wrong
"Use an SNS topic" … An SNS topic is a mechanism for delivering one message to multiple subscribers. It is not a queue that holds messages between components and has them processed once.
"Use an SQS standard queue" … The page says standard queues support at-least-once message delivery. With at-least-once delivery, you build on the assumption that the same message may arrive more than once.
"Use an SQS dead-letter queue" … The page lists the dead-letter queue as one of the common features SQS provides. It holds messages that could not be processed, and it is not a queue type for preventing duplicate processing.

Key point
SQS is a secure, durable, and available hosted queue that integrates and decouples distributed software components. Other benefits listed include access control for sending and receiving and server-side encryption (with an SQS-managed key or a KMS key), availability from redundant infrastructure, scalability that grows with load without advance provisioning, and reliability through locking messages while they are being processed.

Go to the AWS Certified Cloud Practitioner practice app (10 free questions; purchase unlocks all questions)

See the full practice set