Question 460
A proposed AWS solution must satisfy TWO independent requirements: (1) An application emits order state changes from several services, and targets route events by type and account-defined patterns. (2) A background job may run up to 18 minutes and must be retried in stages with human approval after validation. Which TWO design actions collectively meet the requirements?
Explanation
Correct Answers
Requirement (2): Orchestrate durable steps and a wait-for-approval pattern with AWS Step Functions and suitable compute tasks. Workflow state machines coordinate transitions and retries; Lambda's execution time limit is not a long-running orchestration engine. Validate separately that A suspended approval resumes at the correct workflow state without keeping a Lambda invocation open.
Requirement (1): Route events using Amazon EventBridge rules with matching patterns and durable failure handling for targets. EventBridge supports event-bus routing without making every producer know all subscribers. Validate separately that A refund event reaches the designated target, while irrelevant inventory updates do not.
Incorrect Answers
Durable queueing decouples request latency from slower back-end processing.
Long-running batch workloads exceed Lambda limits and benefit from managed job scheduling.
Stateless web tiers scale horizontally only when user state is decoupled from a particular instance.