Medium1 markMultiple Choice
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?
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
Q01A global enterprise requires highly available hybrid connectivity between its on-premises data ce...HardQ02An organization has 50 VPCs across two AWS Regions connected via Transit Gateways (TGW). The TGWs...HardQ03A company uses AWS Organizations. The network team wants to share a central Transit Gateway (TGW)...MediumQ04An enterprise has on-premises data centers in the US and Europe. They want to use the AWS global ...HardQ05A company requires that all API calls to Amazon S3 from their VPC must not traverse the public in...Medium
Expert