Quizzes · Service

SQS

Level 0 questions on SQS. Read about it first if it's new to you.

Works with: Lambda (3), VPC (2), ECS + Fargate (2), IAM (2), RDS (1)

  • 15 questions, from a pool of 21
  • 1 correct answer of 4 each
  • Pass line 80%

Questions and answers come in a new order every time, and every choice is explained. Your answers feed your weak spots on the exam page; they don't change your exam score.

Question 1Todo.io attaches its Lambda function to the VPC so it can reach the MySQL database in a private subnet. Since then, the function's calls to SQS time out. IAM allows sqs:SendMessage. What fixes it?

Choose one answer

Learn it: NAT gateway · Lambda · IAM policy · ENI

Question 2Code inside Todo.io's ECS task must send messages to SQS. Which role should be allowed sqs:SendMessage?

Choose one answer

Learn it: ECS and Fargate · IAM role

Question 3Todo.io's Fargate tasks run in private subnets. Their IAM permissions are correct, but every call they make to SQS times out. What fixes it?

Choose one answer

Learn it: NAT gateway · IAM policy

Question 4Todo.io's worker is a Lambda function that handles messages from an SQS queue. How do the messages reach the function?

Choose one answer

Learn it: Lambda · SQS

Question 5A Lambda function with a 60-second timeout processes an SQS queue whose visibility timeout is 30 seconds. Some messages are processed twice. What is the fix?

Choose one answer

Learn it: Lambda · SQS (Simple Queue Service)

Question 6Every morning at 9:00, thousands of Todo.io users add todos within a few minutes. The app writes each todo straight to its database, which can't keep up, and some saves fail. No todo may be lost. What should Todo.io do?

Choose one answer

Learn it: SQS (Simple Queue Service) · Design Todo.io with the Queue add-on

Question 7Todo.io's worker reads jobs from a standard SQS queue. Very rarely, a todo is counted twice in a user's stats. What is the most likely cause, and the right fix?

Choose one answer

Learn it: SQS (Simple Queue Service) · Design Todo.io with the Queue add-on

Question 8What does it mean that an SQS queue decouples Todo.io's app from its worker?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 9Todo.io's worker is down for three days. Messages keep arriving in its standard SQS queue, which uses the default settings. What happens to them?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 10Todo.io's worker receives a message, then crashes before deleting it. What happens to the message?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 11One malformed message makes Todo.io's worker fail every time, so it is retried forever. How should Todo.io deal with messages like this?

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 12Todo.io's source queue is a FIFO queue. What kind of queue can be its dead-letter queue?

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 13Events about each todo must be processed in exactly the order they happened, and only once. Which queue fits?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 14Todo.io's app gets AccessDenied when it calls SendMessage on its queue. What should be fixed?

Choose one answer

Learn it: SQS (Simple Queue Service) · IAM policy

Question 15Todo.io moves "send a welcome email" out of sign-up and into a queue with a worker. What changes for a user who signs up?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 16What does "SQS (Simple Queue Service)" mean?

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 17Which term is this? "A managed queue. One part of your system drops messages in, another takes them out later."

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 18Which AWS term is described by this analogy? "A ticket rail in a restaurant kitchen. Waiters clip orders up, cooks take them down when ready."

Choose one answer

Learn it: SQS (Simple Queue Service)

Question 19What does "Dead-letter queue (DLQ)" mean?

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 20Which term is this? "A side queue where messages go after failing too many times."

Choose one answer

Learn it: Dead-letter queue (DLQ)

Question 21Which AWS term is described by this analogy? "The "problem orders" tray, so one bad order doesn't block the kitchen."

Choose one answer

Learn it: Dead-letter queue (DLQ)