Courseiva
Control Flow →mediumMultiple Choice

UiPath-ADAv1 Control Flow Practice Question

A developer builds a Process that reads a queue of transaction items. For each item, an HTTP request must be sent and the response logged. To reduce overall execution time, the developer wants several items processed simultaneously within a single automation, while still allowing each iteration to run its own sequence of activities. Which control-flow construct should the developer place around the per-item sequence to achieve this?

⚠ Common exam trap

The trap here is assuming any activity with 'Parallel' in its name iterates a collection, when Parallel takes a fixed set of branches and Parallel For Each is the one that iterates items.

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

✓

Parallel For Each

Concurrent per-item work inside one automation is delivered by Parallel For Each, which launches iterations on separate threads while preserving the per-item activity sequence. A standard For Each is sequential, While is condition-driven and sequential, and Parallel operates on a fixed set of branches rather than a collection. Only the parallel iterator reduces wall-clock time across many independent HTTP calls.

Answer analysis

Option-by-option breakdown

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

  • ✗

    While

    Why it's wrong here

    While repeats a body as long as a Boolean condition remains true; it has no built-in notion of a collection or of concurrent iterations. Using it here would force the developer to manage an index and termination condition manually, and iterations would still execute sequentially, so it cannot satisfy the requirement for simultaneous processing.

  • ✓

    Parallel For Each

    Why this is correct

    Parallel For Each iterates a collection and starts each item's body concurrently on separate threads, so multiple HTTP requests can be in flight at once and total runtime drops. Each iteration still runs its own sequence of activities, matching the requirement to process several items simultaneously within one automation rather than sequentially.

  • ✗

    Parallel

    Why it's wrong here

    Parallel runs a fixed set of branches concurrently but does not iterate a collection; the number of branches is static and defined at design time. It cannot dynamically spawn one branch per queue item, so it fails to provide per-item concurrent processing for an arbitrary number of transactions.

  • ✗

    For Each

    Why it's wrong here

    For Each processes items strictly one after another, so the second HTTP request cannot begin until the first iteration finishes. While it is the correct choice when order matters or when items share a resource, it does not deliver the simultaneous processing the scenario requires, so overall execution time would not be reduced.

About these practice questions

One of 285 original UiPath-ADAv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.