← All quizzes

Night 13

Lab 2C — SQS decoupling

SQS standard vs FIFO, DLQ, visibility timeout, long polling, EventBridge → SQS, producer/consumer decoupling

0:00 / ~24m0/15 answered

15 timed scenario questions (~24 min, ~96 sec each). Reinforces night-13-sqs-decoupling.md and night-13-lab-sqs-setup scripts. Answer without peeking at night-13-quiz-answers.json first.

  1. 1.Global Ski Atlas runs Iceland as a monthly Fargate batch job (Night 12). A separate stats-uploader worker should process completions without polling ecs:DescribeTasks in a loop. What integration service best buffers completion events between the batch job and the uploader?

  2. 2.A Lambda consumer processes SQS messages that take up to 3 minutes. The queue visibility timeout is 30 seconds. What problem will you see in production?

  3. 3.The Iceland completion queue receives one message per successful monthly run. Order between months does not matter; maximum throughput is desired. Which queue type should you create?

  4. 4.night-13-lab-sqs-setup.sh sets maxReceiveCount to 3 on the main queue with a redrive policy pointing at saa-study-gsa-iceland-completion-dlq. What does this accomplish?

  5. 5.An EventBridge rule targets an SQS queue with FailedInvocations in CloudWatch. The rule event pattern is correct. What is the most common fix on the queue side?

  6. 6.A stats-uploader worker polls an empty completion queue thousands of times per hour, increasing cost and API throttling risk. Which ReceiveMessage parameter reduces empty responses?

  7. 7.You need a single worker pool to absorb spikes from many producers without push delivery to every worker. SNS already fans out to five Lambdas. What should sit in front of one consolidated worker tier?

  8. 8.A malformed JSON message causes the consumer to throw on every attempt. The operator wants to inspect failures without blocking the main queue forever. Which configuration pair is required?

  9. 9.A payment ledger requires strict ordering per customer account and no duplicate debits. Throughput is moderate. Which SQS option fits?

  10. 10.A consumer receives a message, crashes before calling DeleteMessage, and visibility timeout is 60 seconds. What happens to the message?

  11. 11.Night 12 EventBridge schedule triggers Iceland RunTask. Night 13 adds an ECS Task State Change rule → SQS. How does that split responsibilities?

  12. 12.An exam question shows producers in us-east-1 and a consumer in eu-west-1 that must share a work queue with minimal latency to the consumer. What is the best answer?

  13. 13.After sending ten messages you call GetQueueAttributes for ApproximateNumberOfMessages and see 7, then 10 a few seconds later without new sends. Why?

  14. 14.night-13-lab-sqs-setup uses an event pattern on ECS Task State Change with containers.exitCode [0] and taskDefinitionArn prefix for globalskiatlas-backend-k8s-iceland. A task exits 1 after S3 upload fails. What happens?

  15. 15.Night 14 will add SNS so one Iceland failure alert reaches email and a Lambda simultaneously. Why is SNS a better fit than a single SQS queue for that requirement?

Answer all 15 questions to submit.