View Full Microsoft PL-500 Exam Dumps and Practice Test Dumps.
Question 201
A developer needs to store several related values and access them by position during a desktop automation. Which data structure is suitable?
- Datatable
- List
- Scope
- Queue
Correct Answer: 2
Explanation
A List is suitable when a desktop flow needs to store an ordered collection of values and process those values individually. For example, a List can contain customer names, file paths, email addresses, or product identifiers that the automation needs to process sequentially. A Datatable is more appropriate when information is organized into rows and columns with multiple fields. Scope is a control structure for grouping actions, while a queue is intended for managing business work items. When the requirement is a simple ordered collection of related values, a List provides an appropriate and flexible data structure.
Question 202
A cloud flow receives structured data from an API and needs to reference fields by name in later actions. Which action should be used?
- Delay
- Parse JSON
- Terminate
- Compose
Correct Answer: 2
Explanation
Parse JSON allows a cloud flow to interpret structured JSON data and expose its properties for use in later actions. This is particularly useful when an external API returns information containing multiple fields or nested structures. After the JSON content is parsed according to its expected schema, developers can reference individual properties more easily in conditions, transformations, notifications, or other actions. Delay pauses execution, Terminate stops the flow, and Compose creates intermediate values. Parse JSON is therefore the appropriate choice when structured API data needs to be processed as accessible fields within a cloud automation.
Question 203
A desktop flow needs to launch a program installed on the Windows machine before performing additional UI actions. Which type of action is appropriate?
- Launch application
- Parse JSON
- Compose
- Apply to each
Correct Answer: 1
Explanation
The Launch application action can start a program installed on the Windows machine so that subsequent desktop-flow actions can interact with it. This is useful when an automation needs to open a business application before entering data, selecting controls, or retrieving information. Once the application is launched, the flow can use appropriate UI automation actions to interact with its interface. Parse JSON is used for structured data, Compose creates intermediate values, and Apply to each processes collections. Launch application is therefore appropriate when a desktop automation must start a Windows program as part of its workflow.
Question 204
A developer needs to enter a customer number into a text field in a Windows application. Which desktop-flow action is most appropriate?
- Select window
- Populate text field
- Create queue
- Parse XML
Correct Answer: 2
Explanation
Populate text field is designed to enter specified text into a compatible input control within a desktop application. A developer can use this action when the automation needs to provide information such as customer numbers, names, addresses, account identifiers, or search terms. The target UI element should be correctly identified so that the action interacts with the intended field. Select window concerns application-window interaction, while queue creation and XML parsing address different automation requirements. When the primary task is entering a value into a text input control, Populate text field is the appropriate desktop automation action.
Question 205
A desktop flow needs to choose one value from a dropdown list in a Windows application. Which action should be considered?
- Select item in list
- Run JavaScript
- Create Dataverse row
- Apply to each
Correct Answer: 1
Explanation
Select item in list is appropriate when a desktop flow needs to choose a specific value from a compatible list or dropdown control. This allows the automation to reproduce a selection that a user would normally make through the application interface. Correct identification of the target control is important because the action must interact with the intended list. JavaScript is more relevant to supported browser scenarios, Dataverse operations concern business data, and Apply to each processes collections. For a Windows application containing a selectable list or dropdown, Select item in list is therefore the suitable action.
Question 206
A developer wants a desktop flow to wait until a particular application window becomes available before continuing. Which approach is appropriate?
- Get clipboard text
- Wait for window
- Parse JSON
- Set queue priority
Correct Answer: 2
Explanation
Wait for window allows a desktop flow to pause until a specified application window becomes available or reaches the expected state. This can be useful when an application takes an unpredictable amount of time to launch or display a required dialog. Without appropriate synchronization, subsequent actions may execute before the target window is ready and cause unnecessary failures. Clipboard operations, JSON parsing, and queue priority address different requirements. Waiting for the required window helps synchronize the automation with the application’s actual state instead of relying only on arbitrary fixed delays.
Question 207
A developer wants to capture information displayed in a Windows application’s control and store it for later processing. Which approach is appropriate?
- Get details of UI element
- Create DLP policy
- Set queue priority
- Create environment variable
Correct Answer: 1
Explanation
Getting details from a UI element allows a desktop flow to retrieve information exposed by a target application control and use that information in subsequent automation steps. This can be useful when a process needs to read displayed text, attributes, or other available properties before making a decision or storing the result. DLP policies govern connector and data usage, queue priority controls work-item ordering, and environment variables store configuration values. When the requirement involves extracting information from a Windows application’s identified UI control, getting the details of that UI element is an appropriate approach.
Question 208
A cloud flow should perform the same action for every file returned by a previous connector action. Which control should be used?
- Terminate
- Apply to each
- Scope
- Delay
Correct Answer: 2
Explanation
Apply to each is designed to process every item in a collection returned by an earlier cloud-flow action. If a connector returns multiple files, for example, the developer can place the required processing actions inside Apply to each so they execute once for each file. This supports consistent processing of collections without manually creating duplicate actions for individual items. Terminate stops the flow, Scope groups actions, and Delay pauses execution. Apply to each is therefore the appropriate control when the same processing logic must be performed independently for every item in a returned collection.
Question 209
A developer needs to convert XML data received from an external service into values that can be used by a cloud flow. Which capability is relevant?
- XML functions
- UI selector
- Queue priority
- Machine group
Correct Answer: 1
Explanation
XML functions provide capabilities for working with structured XML content in cloud flows. They can help a developer access information contained within an XML response and use the extracted values in subsequent processing. XML remains common in integrations involving enterprise applications and older services, so the ability to work with XML can be important when building API-driven automations. UI selectors identify application controls, queue priority manages work-item ordering, and machine groups organize desktop execution resources. XML functions are therefore relevant when a cloud flow needs to retrieve or manipulate information contained within an XML-formatted response.
Question 210
A flow needs to store several temporary values that will change during execution. Which concept is most appropriate?
- Variable
- Machine group
- Connection reference
- UI element
Correct Answer: 1
Explanation
Variables provide a way to store values that can be created, changed, and referenced during automation execution. They are useful for temporary information such as counters, status values, calculated results, flags, or intermediate data. Using variables allows the automation to maintain state as different actions execute and can support conditional logic and iterative processing. Machine groups organize desktop execution resources, connection references abstract connections, and UI elements identify application controls. When a flow needs to maintain values that may change during processing, variables are an appropriate mechanism for storing and updating that runtime information.
Question 211
A developer needs to run a particular set of desktop actions several times from different locations in the same flow. What should be created?
- Subflow
- DLP policy
- Queue item
- Environment variable
Correct Answer: 1
Explanation
A subflow allows a developer to organize a reusable set of desktop actions that can be called from multiple locations within an automation. This is useful for common procedures such as initialization, validation, cleanup, navigation, or authentication. Reusing a subflow avoids copying the same actions repeatedly and makes future maintenance easier because a shared procedure can be updated in one location. DLP policies govern data and connector usage, queue items represent business work, and environment variables hold configuration. A subflow is therefore the appropriate design when the same desktop action sequence needs to be reused throughout an automation.
Question 212
A cloud flow should perform different actions depending on whether an approval result is approved or rejected. Which control is appropriate?
- Delay
- Condition
- Compose
- Scope
Correct Answer: 2
Explanation
Condition allows a cloud flow to evaluate a value and follow different branches based on the result. In an approval scenario, the flow could evaluate whether the response indicates approval and then continue with one set of actions, while a rejection would follow another path. This provides clear decision-making within the automation and allows business rules to determine subsequent processing. Delay pauses execution, Compose creates an intermediate value, and Scope groups actions. When an automation must select different processing paths based on an approval outcome, Condition is the appropriate control.
Question 213
A developer wants to organize several related actions and then apply common error-handling behavior to that group. Which cloud-flow feature is useful?
- Scope
- List
- OCR
- UI element
Correct Answer: 1
Explanation
Scope groups related cloud-flow actions into a logical container. This organization can make complex flows easier to understand and can also support error-handling strategies based on the overall result of the grouped actions. For example, a separate recovery or notification step can be configured according to whether the scope completed successfully or encountered a failure. Lists store collections of values, OCR extracts text from images, and UI elements identify application controls. Scope is therefore useful when a developer wants several related actions to be managed as a coherent section of the cloud automation.
Question 214
A developer wants an action to execute only after a previous action has timed out. Which configuration should be used?
- Run after
- Apply to each
- Datatable
- Environment variable
Correct Answer: 1
Explanation
Run after settings allow an action to execute according to the result of a preceding action. One of the supported outcomes that can be considered is a timeout, allowing developers to create a dedicated recovery, notification, or alternate-processing path. This is useful when a timeout should not simply terminate the entire automation but instead trigger controlled handling. Apply to each processes collections, Datatables store structured desktop information, and environment variables hold configuration values. When the requirement is specifically to respond to a previous action timing out, Run after provides the necessary execution control.
Question 215
A developer wants to stop a cloud flow after an unrecoverable technical failure and provide a failure status. Which action is appropriate?
- Compose
- Terminate
- Delay
- Apply to each
Correct Answer: 2
Explanation
Terminate can stop a cloud flow when an unrecoverable condition prevents further meaningful processing. The developer can configure the termination status and provide information describing why the execution was stopped. This is useful when continuing could cause incorrect results, duplicate processing, or additional failures. Compose creates intermediate data, Delay pauses execution, and Apply to each processes collections. Terminate is therefore appropriate when the automation encounters a condition from which it should not continue. Proper termination also makes the run outcome clearer to administrators reviewing the execution history and troubleshooting the process.
Question 216
A developer wants to wait a fixed period before checking an external system again. Which action should be used?
- Delay
- Condition
- Scope
- Parse JSON
Correct Answer: 1
Explanation
Delay pauses a cloud flow for a specified period before the next action executes. This can be useful when an external system needs time to complete processing before the automation checks its status again. For example, a flow may submit a request and then wait for a short period before making another request to retrieve the result. Condition evaluates logical criteria, Scope groups actions, and Parse JSON processes structured data. When the requirement is simply to introduce a fixed waiting period between two processing steps, Delay is the appropriate action.
Question 217
A developer needs a flow to repeatedly check an external process until it reaches a completed status. Which control is appropriate?
- Compose
- Do until
- Terminate
- Scope
Correct Answer: 2
Explanation
Do until allows a flow to repeat actions while checking whether a specified condition has been satisfied. It is particularly useful when an external operation may take an unpredictable amount of time and the automation needs to continue checking its status. For example, a cloud flow could repeatedly query an external service until a submitted job reports completion. Compose creates intermediate values, Terminate stops execution, and Scope groups actions. Do until is therefore appropriate when continued processing depends on the external process reaching a particular state rather than simply waiting for one fixed duration.
Question 218
A desktop flow must process every row in a Datatable and perform the same operation on each row. Which approach is suitable?
- Loop through the Datatable
- Create a DLP policy
- Launch a browser only
- Configure a connection reference
Correct Answer: 1
Explanation
A loop can iterate through the rows of a Datatable so that the same processing logic is applied to each record. This is useful when a desktop flow receives tabular information and needs to validate, transform, submit, or otherwise process each row individually. The loop can access the current row and use its values in subsequent actions. DLP policies govern data and connector usage, browser launching is unrelated to general Datatable processing, and connection references manage solution connections. Looping through the Datatable is therefore an appropriate approach for row-by-row processing.
Question 219
A developer wants to execute a PowerShell command from a desktop flow to perform a file-management task. Which action or capability should be considered?
- Run PowerShell script
- Parse XML
- Apply to each only
- Select web element
Correct Answer: 1
Explanation
Run PowerShell script allows a desktop flow to execute supported PowerShell commands and scripts as part of an automation. This can be useful for file operations, system administration, process management, or other tasks that are more efficiently handled through scripting. The script should be carefully designed and executed with appropriate permissions because it may modify files or system resources. XML parsing handles structured XML data, Apply to each processes collections, and selecting a web element is related to browser automation. Run PowerShell script is therefore suitable for supported file-management tasks that can be performed through PowerShell.
Question 220
A developer wants to make a desktop automation easier to maintain by separating initialization, processing, and cleanup into distinct reusable sections. Which design is most appropriate?
- Hard-coded selectors everywhere
- One large uninterrupted flow
- Modular subflows
- Shared production credentials
Correct Answer: 3
Explanation
Modular subflows can separate a desktop automation into logical reusable sections such as initialization, main processing, validation, and cleanup. This design improves readability and makes troubleshooting and maintenance easier because each section has a focused responsibility. When one part of the process changes, the developer can update the relevant subflow rather than searching through one large sequence of unrelated actions. Hard-coded selectors and shared production credentials can create maintenance or security problems, while a single uninterrupted flow can become difficult to manage. Modular subflows therefore provide a structured approach to maintaining complex desktop automations.