← All quizzes

Night 32

Lab 4C — Step Functions capstone

Step Functions Standard vs Express, ECS runTask.sync, SQS/Lambda/SNS service integrations, Retry/Catch, iam:PassRole, GSA Iceland pipeline orchestration, migration from EventBridge chain

0:00 / ~24m0/15 answered

15 timed scenario questions (~24 min, ~96 sec each). Reinforces night-32-stepfunctions-capstone.md and gsa-stepfunctions-map.md. Answer without peeking at night-32-quiz-answers.json first.

  1. 1.Global Ski Atlas needs a monthly workflow: run Iceland Fargate for up to two hours, enqueue completion to SQS, invoke a stats Lambda, and route failures to SNS with different retry counts per step. Which service is the best orchestration fit?

  2. 2.The capstone uses `arn:aws:states:::ecs:runTask.sync` for Iceland. What does the `.sync` suffix mean for the state machine?

  3. 3.A Step Functions `RunTask` state fails with `ECS.AmazonECSException` after two retries. The ASL has a `Catch` to `PublishFailureAlert` (SNS). What happens next?

  4. 4.Night 32 deploys a new EventBridge rule `saa-study-gsa-iceland-monthly-sfn` targeting the state machine. The legacy `saa-study-gsa-iceland-monthly` rule still targets ECS directly. What is the operational risk?

  5. 5.Which IAM permission must the Step Functions execution role have for `ecs:RunTask` on the Iceland task definition?

  6. 6.An exam scenario needs sub-minute fan-out of thousands of short payment authorizations with optional discarded execution history. Which Step Functions type fits?

  7. 7.After `RunIcelandTask` succeeds, the capstone sends a message to `saa-study-gsa-iceland-completion` via `sqs:sendMessage`. Why keep SQS instead of only synchronous Lambda invoke?

  8. 8.In the Night 32 ASL, `InvokeStatsUploader` has Retry on `Lambda.ServiceException` but Catch on `States.ALL` to SNS. Lambda returns a handled error in the payload with HTTP 200. What happens?

  9. 9.How does AWS primarily bill Step Functions Standard workflows?

  10. 10.Night 28 used EventBridge `saa-study-gsa-iceland-success-to-sqs` on ECS Task State Change. Night 32 Step Functions also `sendMessage`s to the same queue. What should you do to avoid duplicate completion messages?

  11. 11.A human approval gate is required mid-workflow before publishing ski stats to production Aurora. Which Step Functions pattern applies?

  12. 12.The Iceland container exits with code 1 after starting. With `runTask.sync`, how should the capstone surface failure to operators?

  13. 13.Which integration ARN publishes a success notification to the existing `saa-study-gsa-iceland-alerts` topic at the end of a happy path?

  14. 14.Why is Step Functions Standard (not Express) correct for the Iceland capstone?

  15. 15.A teammate suggests replacing the entire Night 32 state machine with a single EventBridge cron → `ecs:RunTask` like Night 12. What capability would they lose?

Answer all 15 questions to submit.