PL-500 practice question 11 of 25

You need to configure the RailStatusUpdater cloud flow. What should you do?

Full set: 173 questions

Domain Develop solutions

Answer options
A: Create a JavaScript function to update the run mode values of each action within the desktop flow.
B: Create an environment variable. Update each desktop flow action to read the variable. Correct answer
C: Manually update each desktop flow action to change the run mode.
D: Create a desktop flow to update the run mode values of each action within the cloud flow.
Correct Answer:
B. Create an environment variable. Update each desktop flow action to read the variable.
Explanation

Environment variables are the recommended best practice for managing configuration data within Power Platform solutions. By creating an environment variable for the run mode value, you externalize the configuration from the flow's definition. The cloud flow can retrieve the value from this variable and pass it as an input parameter to the desktop flow. The desktop flow actions can then reference this input parameter. This approach allows for updating the run mode for all relevant actions by changing the environment variable's value in a single location, which is efficient, scalable, and simplifies application lifecycle management (ALM) across different environments (e.g., development, testing, production).

Why Incorrect

A. JavaScript functions cannot be used to dynamically modify the internal properties, such as run mode, of desktop flow actions during execution.
C. Manually updating each action is inefficient, prone to human error, and does not scale well, making it a poor practice for configuration management.
D. This is conceptually incorrect. Desktop flows are designed to automate UI and API tasks, not to modify the definitions of cloud-based Power Automate flows. ---

References

1. Microsoft Learn, Power Automate Documentation. Environment variables overview. This document establishes environment variables as a core component for managing application configuration separately from the logic. It states, "Environment variables allow you to manage the configuration of your application separately from your code... A key benefit is that you can change the values without modifying the application."

Reference: Section: "The benefits of environment variables".

2. Microsoft Learn, Power Automate Documentation. Use environment variables in Power Automate solution cloud flows. This guide details the practical application of environment variables within cloud flows, showing how they can be accessed and used in actions.

Reference: Section: "Use an environment variable in a flow".

3. Microsoft Learn, Power Automate Documentation. Trigger desktop flows from cloud flows. This document explains the mechanism for passing data from a cloud flow to a desktop flow using input parameters, which is how the value from an environment variable would be communicated.

Reference: Section: "Specify input values for the desktop flow".

Scroll to Top