Courseiva
API-Based Automation →mediumMultiple Choice

UiPath-ADAv1 API-Based Automation Practice Question

Exhibit

Response Body: {"status": "success", "data": {"id": 101, "user": "admin"}}

Refer to the exhibit. After invoking an API, you receive the JSON structure shown. Which activity and property configuration is required to extract the 'id' value into a variable?

⚠ Common exam trap

Candidates frequently try to access JSON values directly from the raw string output of the HTTP Request without using the 'Deserialize JSON' activity first to create a usable object.

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 'Deserialize JSON' then access via 'jsonObject("data")("id").ToString'.

To extract nested values from a JSON response, one must first convert the string response into a JObject using the Deserialize JSON activity. Once in object form, the JObject can be navigated using standard dot notation or string indexing. This is a fundamental skill for API-based automation because it allows robots to programmatically access specific data fields needed for subsequent logic or UI-based interactions.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use 'Get Text' activity with 'data.id' as the selector.

    Why it's wrong here

    Get Text is a UI Automation activity used for interacting with browser elements or desktop windows. It cannot parse or manipulate raw JSON response strings returned from web services. It requires a valid UI selector to function, which is not applicable when dealing with raw data structures like JSON objects.

  • ✓

    Use 'Deserialize JSON' then access via 'jsonObject("data")("id").ToString'.

    Why this is correct

    The Deserialize JSON activity converts the raw string into a JObject. By accessing the root object, you can traverse the hierarchy using the keys 'data' then 'id'. Converting the final result to a string allows the value to be stored in a standard UiPath string variable for later processing.

  • ✗

    Use 'Assign' activity to read the response string directly using string splitting.

    Why it's wrong here

    String splitting is highly fragile and prone to errors if the JSON format changes slightly, such as whitespace variations or key ordering. It does not parse the underlying data structure correctly. Using formal JSON parsing activities ensures the automation remains resilient to minor formatting changes in the API response.

  • ✗

    Use 'Deserialize JSON Array' to extract the 'id' field.

    Why it's wrong here

    Deserialize JSON Array is specifically for parsing JSON structures that start with square brackets, indicating a list of items. Since the exhibit shows a JSON object starting with curly braces, this activity will throw an invalid cast exception during execution because it expects an array type instead of an object.

About these practice questions

Courseiva writes every UiPath-ADAv1 question from scratch — 285 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 →

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.