UiPath-ADPv1 API Automation Practice Question
A developer is building a UiPath automation that consumes a REST API. The API returns a JSON response with a 'status' field and a 'data' array. The developer needs to handle both successful responses and error responses gracefully. Which two actions should the developer take to ensure robust error handling? (Choose two.)
⚠ Common exam trap
The trap here is relying solely on the API's JSON status field or suppressing errors with Continue On Error, which can mask failures and lead to incorrect processing.
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
✓
Use a Try Catch activity around the HTTP Request and handle specific exceptions like HTTPRequestException.
Robust error handling for API calls involves checking the HTTP status code to detect success or failure and using Try Catch to handle exceptions that may occur during the request. These two actions together ensure that both expected error responses and unexpected exceptions are managed, allowing the workflow to respond appropriately.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Deserialize the JSON response and check if the 'status' field equals 'success' before processing the 'data' array.
Why it's wrong here
While checking a status field is good practice, it is not sufficient for robust error handling because the API might return an error HTTP status code with a different JSON structure. Relying solely on the 'status' field could miss HTTP-level errors that prevent JSON deserialization.
- ✓
Use a Try Catch activity around the HTTP Request and handle specific exceptions like HTTPRequestException.
Why this is correct
The HTTP Request activity may throw exceptions for network issues, timeouts, or non-success status codes if configured to do so. Wrapping it in Try Catch allows catching and handling these exceptions, preventing the automation from crashing and enabling graceful recovery or logging.
- ✗
Configure the HTTP Request activity to ignore SSL certificate errors to avoid connection failures.
Why it's wrong here
Ignoring SSL certificate errors is a security risk and does not address application-level errors. It should only be used in development with self-signed certificates, never in production. It does not help handle API error responses and could expose the automation to man-in-the-middle attacks.
- ✗
Set the HTTP Request activity's 'Continue On Error' property to True to prevent the workflow from stopping on any error.
Why it's wrong here
Setting Continue On Error to True would suppress errors and continue execution, but it does not provide a way to handle the error or branch based on the error type. This can lead to silent failures and incorrect processing, as the workflow would proceed with invalid data.
- ✓
Check the HTTP status code returned by the HTTP Request activity and branch based on whether it is in the 2xx range.
Why this is correct
The HTTP status code indicates success or failure. 2xx codes mean success, while 4xx and 5xx indicate client or server errors. Branching on the status code allows the workflow to handle errors appropriately, such as retrying or logging, rather than assuming success and failing later.
About these practice questions
Courseiva writes every UiPath-ADPv1 question from scratch — 276 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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-ADPv1 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-ADPv1 exam.