AWS Data Engineer DEA-C01 · Data Operations and Support · easy
An AWS Glue job fails intermittently when an upstream third-party REST API returns HTTP 503 Service Unavailable. You orchestrate the pipeline using AWS Step Functions and want the state machine to automatically wait 5 seconds, then 10 seconds, then 20 seconds before failing the workflow. Which Step Functions Task state field configures this behavior declaratively without writing custom sleep code?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: A. Task state Retry field with IntervalSeconds 5, BackoffRate 2.0
In AWS Step Functions, transient task failures are handled declaratively with the Retry field of the Amazon States Language. Each retrier lists ErrorEquals (which errors it matches, such as States.TaskFailed or States.ALL), IntervalSeconds (the delay before the first retry), BackoffRate (the multiplier applied to the delay after each retry), and MaxAttempts. Setting IntervalSeconds to 5, BackoffRate to 2.0 and MaxAttempts to 3 produces waits of 5, 10 and 20 seconds. If the third retry also fails, the error propagates and the execution fails, or it is routed to a Catch fallback state. Step Functions waits between attempts without compute charges for the wait, and no custom code is needed. The common trap is to hand-build delays with sleep calls or Wait states and loops, or to confuse Retry with Catch. Catch routes to a fallback state after retries are exhausted, whereas Retry re-runs the same state with backoff. Retry is the right tool for intermittent 503 responses.
Why the other options are wrong
- B. Hardcoding time.sleep(3600) inside an idle Glue G.8X worker — This hardcodes a one-hour sleep inside the Glue job code. It keeps allocated workers idle and billed, and it does not produce the 5, 10, 20 second progression. It is imperative custom code, which the question explicitly rules out.
- C. Creating 30 duplicate Glue jobs and running them in parallel — Duplicating the Glue job 30 times and running the copies in parallel is not a retry mechanism. It multiplies requests against an API that is already returning 503, which worsens throttling, adds cost and duplicates data, and it creates no timed waiting between attempts.
- D. Disabling error handling so the pipeline drops missing data — Turning off error handling means failures are ignored, so data is silently lost or incomplete. This is the opposite of resilient orchestration. It adds no waiting or retry behavior, and the workflow would not fail in a controlled way after the intended attempts.
More Data Operations and Support questions
- An AWS Lambda function processes batches of 100 records from an Amazon Kinesis Data Stream. Occasionally, a single…
- An AWS Glue PySpark job joins a 2 TB FactClicks dataset with a 50 GB DimCampaigns dataset on campaign_id. In the Spark…
- You want to enforce automated data quality checks inside an AWS Glue ETL pipeline so that if Completeness…
- An Amazon S3 table is partitioned by date (s3://logs/dt=2026-01-01/, dt=2026-01-02/, etc.) across 10 years (3,650…
- Multiple business-intelligence analysts run ad-hoc queries in Amazon Athena, and one analyst accidentally executes a…
- To ensure a daily batch pipeline writing to s3://curated/sales/dt=2026-10-28/ is idempotent (so re-running the job for…
All Data Operations and Support questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.