Q68 — AWS DOP-C02 Ch.3

Question 68 of 100 | ← Chapter 3

A company runs a batch-processing application to handle records. Application components run on Amazon EC2 instances in an Auto Scaling group. Each record’s processing consists of multiple sequential steps, each with predictable duration. Each step completes within five minutes or less.

Correct Answer: D. Create a web application that sends records to AWS Step Functions. Decompose processing into Step Functions tasks and AWS Lambda functions.

Explanation

AWS Step Functions is a workflow service for orchestrating distributed application components, enabling multi-step, stateful processes with built-in error handling and retry capabilities. The requirement is to reprocess only failed steps—not the entire record—upon failure. Option D leverages Step Functions to model each processing step as an independent task executed by Lambda functions; the state machine automatically tracks execution status and allows precise, step-level retries with persistent intermediate state. Other options lack native step-level recovery: A relies on manual state tracking via S3/SNS, B introduces unnecessary complexity with self-invoking containers, and C focuses on streaming rather than orchestrated, stateful step management. AWS documentation confirms Step Functions is ideal for multi-step, stateful, fault-tolerant workloads where failure points require targeted recovery.