Courseiva

UiPath-ADAv1 Debugging and Exception Handling Practice Question

A developer is building an unattended process that reads a queue of invoice items. For each transaction, the process must attempt to extract data from a PDF. If extraction fails, the item should be retried up to two more times, and after all retries are exhausted, the item should be marked as failed without stopping the entire job. The developer places the extraction logic inside a Try Catch block within a Retry Scope activity. Which configuration correctly ensures that each failed attempt is retried and that the final failure is handled gracefully?

⚠ Common exam trap

Many candidates confuse the nesting order: placing Try Catch inside Retry Scope causes the first failure to be swallowed, so no retries occur, while placing Retry Scope inside Try Catch ensures retries happen before the exception is caught.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Place the Retry Scope inside the Try block, set the NumberOfRetries property to 2, and place a Catch block for System.Exception that marks the item as failed.

The Retry Scope must wrap the action that can fail so it can re-execute that action on failure. The Try Catch must wrap the Retry Scope so that when retries are exhausted, the resulting exception is caught and handled by marking the item as failed. Setting NumberOfRetries to 2 gives two retries after the initial attempt, matching the requirement. An empty Catch block would suppress the error and prevent proper item status updates.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Place the Try Catch inside the Retry Scope, set the Retry Scope NumberOfRetries property to 2, and leave the Catch block empty.

    Why it's wrong here

    Placing the Try Catch inside the Retry Scope means the Catch block executes on the first failure and swallows the exception, so the Retry Scope never sees a failure and never retries. An empty Catch block also hides the error, so the item is not marked as failed and the process may continue incorrectly.

  • ✗

    Place the Retry Scope inside the Catch block, set the NumberOfRetries property to 2, and place the extraction logic in the Try block.

    Why it's wrong here

    Placing the Retry Scope inside the Catch block means retries only occur after an exception has already been caught. The extraction logic in the Try block runs only once, and if it fails, the Catch block executes the Retry Scope, which would need to re-run the extraction logic but does not contain it, so retries would not re-execute the intended action.

  • ✗

    Place the Retry Scope inside the Try block, set the NumberOfRetries property to 3, and place a Catch block for System.Exception that marks the item as failed.

    Why it's wrong here

    Setting NumberOfRetries to 3 results in three retries after the initial attempt, for a total of four attempts. The requirement is to retry up to two more times, meaning two retries after the first attempt. This configuration would exceed the allowed number of attempts and could waste time or cause duplicate processing.

  • ✓

    Place the Retry Scope inside the Try block, set the NumberOfRetries property to 2, and place a Catch block for System.Exception that marks the item as failed.

    Why this is correct

    This configuration places the Retry Scope around the extraction logic, so each failed attempt triggers a retry up to the NumberOfRetries limit. After the retries are exhausted, the Retry Scope throws the exception, which is caught by the Catch block that marks the item as failed, allowing the process to continue with the next item.

About these practice questions

This UiPath-ADAv1 question is part of Courseiva's 285-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official UiPath exam blueprint

This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.