For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 6Question 38
    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
    Configure a Retry block within the Step Functions state machine definition for the specific Batch job state.
    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.
    Question 37All questionsQuestion 39

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

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    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
    View all 75 questions →