Medium1 markMultiple Choice
Domain 2.4: ReliabilityReliabilityStep FunctionsBatch

AWS SAP-C02 · Question 38 · Domain 2.4: Reliability

A data processing pipeline uses AWS Step Functions to orchestrate AWS Batch jobs. Occasionally, a Batch job fails due to a transient API error. The architect wants to ensure the workflow automatically retries the failed job before marking the execution as failed. What is the BEST approach?

Answer options:

A.

Write a custom script in the Batch job to catch errors and restart itself.

B.

Configure a Retry block within the Step Functions state machine definition for the specific Batch job state.

C.

Use EventBridge to detect the Batch failure and trigger a Lambda to restart the Step Function.

D.

Configure the AWS Batch job definition with a retry strategy.

How to approach this question

Identify the native error handling capability of Step Functions.

Full Answer

B.Configure a Retry block within the Step Functions state machine definition for the specific Batch job state.✓ Correct
AWS Step Functions natively supports 'Retry' and 'Catch' fields in its state definitions, allowing you to handle transient errors gracefully without custom code.

Common mistakes

Building custom retry logic outside of the orchestrator.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 6

75 questions · hints · full answers · grading

More questions from this exam