Courseiva
Logging →hardMultiple Choice

UiPath-ADAv1 Logging Practice Question

A developer is reviewing logs from a production robot in Orchestrator and notices that many log entries contain the same custom field 'TransactionId' with different values. The developer wants to ensure that all log entries generated during the processing of a single transaction include the same TransactionId value, even when the transaction processing spans multiple workflows. Which approach should the developer take?

⚠ Common exam trap

The trap here is thinking that custom fields must be manually added to each log message, when Add Log Fields automatically applies them to all subsequent entries until removed.

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 Add Log Fields activity at the start of the transaction to add the TransactionId field, and use the Remove Log Fields activity at the end of the transaction to clean up.

Add Log Fields creates a logging context that automatically attaches specified custom fields to all subsequent log entries until Remove Log Fields is invoked. Placing Add Log Fields at the start of transaction processing ensures every log entry across all workflows within that transaction includes the TransactionId. This provides consistent correlation without modifying individual Log Message activities.

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 Add Log Fields activity at the start of the transaction to add the TransactionId field, and use the Remove Log Fields activity at the end of the transaction to clean up.

    Why this is correct

    Add Log Fields adds custom fields to the robot's logging context, and these fields persist for all subsequent log entries until removed. By adding TransactionId at the start of the transaction, every log entry generated during that transaction, across multiple workflows, will include the field. Removing it at the end prevents leakage to subsequent transactions.

  • ✗

    Configure the robot's logging level to Verbose and rely on the default log entries to capture the TransactionId from the Orchestrator queue item.

    Why it's wrong here

    Default log entries do not automatically include a TransactionId field unless the queue item's specific data is logged. Changing the log level to Verbose increases the volume of logs but does not add the custom field. The TransactionId must be explicitly added as a custom field to appear in all entries.

  • ✗

    Pass the TransactionId as an argument to each workflow and include it manually in every Log Message activity's message text.

    Why it's wrong here

    Manually including the TransactionId in each log message is error-prone and does not create a structured custom field. It also requires modifying every Log Message activity, which is impractical across many workflows. This approach lacks the consistency and central management provided by Add Log Fields.

  • ✗

    Set the TransactionId as a global variable in the project and reference it from each Log Message activity using string concatenation.

    Why it's wrong here

    Global variables are not automatically included in log entries. The developer would still need to reference the variable in every Log Message activity, which is the same manual effort as passing arguments. This does not create a structured field and does not ensure all log entries automatically include the value.

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.