Courseiva
API-Based Automation →hardMultiple Choice

UiPath-ADAv1 API-Based Automation Practice Question

A developer is using the HTTP Request activity to call an API that returns a large JSON response. The developer needs to extract a specific value from the response and use it in subsequent steps. The response is stored in a variable of type String. After deserializing the JSON into a JObject, which activity and configuration should the developer use to reliably extract the value using a JSONPath expression?

⚠ Common exam trap

The trap here is attempting to use Select Token directly on a JSON string without first deserializing it into a JObject.

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 the Select Token activity, set the Input property to the JObject, and set the JsonPath property to the desired expression.

After deserializing the JSON string into a JObject, the Select Token activity is the correct tool to query it with a JSONPath expression. It accepts a JObject as input and returns the matching token. Using Deserialize JSON again or passing a string to Select Token would fail. Directly calling JObject.SelectToken is possible but not the standard UiPath approach.

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 the Select Token activity, set the Input property to the original JSON string, and set the JsonPath property to the desired expression.

    Why it's wrong here

    The Select Token activity expects a JObject as input, not a string. If the original JSON string is provided, the activity will throw an error because it cannot parse a string directly. The developer must first deserialize the JSON string into a JObject using the Deserialize JSON activity, then pass that JObject to Select Token.

  • ✗

    Use the Deserialize JSON activity again with the JObject as input and specify the JSONPath in the JsonPath property.

    Why it's wrong here

    The Deserialize JSON activity converts a JSON string into a JObject; it does not accept a JObject as input or support JSONPath queries. Using it again would cause a type mismatch error. The correct activity for querying a JObject with JSONPath is Select Token. Deserialize JSON is only for the initial conversion from string to JObject.

  • ✗

    Use the Assign activity to call the JObject.SelectToken method directly, passing the JSONPath expression as a string argument.

    Why it's wrong here

    While the JObject.SelectToken method exists in .NET, using it directly in an Assign activity requires the JObject to be of type Newtonsoft.Json.Linq.JObject, which is possible but less straightforward than using the dedicated Select Token activity. The Select Token activity provides a more user-friendly interface and integrates with UiPath's variable system, making it the preferred approach in most scenarios.

  • ✓

    Use the Select Token activity, set the Input property to the JObject, and set the JsonPath property to the desired expression.

    Why this is correct

    The Select Token activity is specifically designed to query a JObject using a JSONPath expression. Setting the Input property to the deserialized JObject and providing the JSONPath in the JsonPath property returns the matching token. This is the most reliable and efficient method for extracting values from JSON in UiPath, as it leverages Newtonsoft.Json's JSONPath support.

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.