UiPath-ADPv1 API Automation Practice Question
An automation developer is using the HTTP Request activity in UiPath Studio to call a REST API that requires a bearer token. The token is stored in Orchestrator as an asset named "APIToken". The developer needs to include the token in the request header. Which approach should be used?
⚠ Common exam trap
The trap here is assuming that the HTTP Request activity has built-in authentication types for bearer tokens, when in fact it requires manual header configuration.
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
✓
Add a header named "Authorization" with the value "Bearer " + token, where token is retrieved using the Get Asset activity.
The correct approach is to retrieve the token from Orchestrator using the Get Asset activity and then add it to the request headers as "Authorization: Bearer <token>". This is the standard method for bearer token authentication in REST APIs and is fully supported by the HTTP Request activity through its Headers property.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Append the token as a query parameter, such as "?token=<token>", to the request URL.
Why it's wrong here
Appending tokens as query parameters is insecure and not the standard method for bearer tokens. Most APIs expect the token in the Authorization header. While some APIs might accept query parameters, this is not the correct approach for a bearer token scenario.
- ✗
Use the OAuth2 activity with the token as the AccessToken property and configure the HTTP Request to use that connection.
Why it's wrong here
The OAuth2 activity is used for obtaining tokens via OAuth flows, not for directly using an existing bearer token. It does not have an AccessToken property to simply plug in a token. The HTTP Request activity must be configured manually with headers.
- ✓
Add a header named "Authorization" with the value "Bearer " + token, where token is retrieved using the Get Asset activity.
Why this is correct
This is correct because the HTTP Request activity allows custom headers. The Get Asset activity retrieves the token from Orchestrator, and the header must be formatted as "Bearer <token>". This is the standard way to pass a bearer token in a header for REST APIs.
- ✗
Set the AuthenticationType property of the HTTP Request activity to "Bearer" and provide the token in the Password field.
Why it's wrong here
The HTTP Request activity does not have an AuthenticationType property that supports Bearer tokens directly. While some activities have authentication options, the HTTP Request activity requires manual header configuration for bearer tokens. Using a Password field is not applicable here.
About these practice questions
This UiPath-ADPv1 question is part of Courseiva's 276-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 →
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.