nerdexam
Microsoft

PL-500 · Question #20

Drag and Drop Question You are developing an automation solution for your company to process purchase orders emailed by customers. There are three purchase order mailboxes in Exchange Online for…

The correct answer is Create an environment variable in the development environment.; Create a cloud flow using the environment variable in the trigger step.; Set the current value in the environment to the mailbox email address.; Turn the cloud flow off and on. This question tests the ability to correctly sequence actions for using Power Platform environment variables to manage environment-specific configurations in cloud flows without modifying the deployed solutions.

Deploy and manage automations

Question

Drag and Drop Question You are developing an automation solution for your company to process purchase orders emailed by customers. There are three purchase order mailboxes in Exchange Online for each of development, testing, and production. You create Power Platform environments for development, testing, and production. You use Azure DevOps to automatically deploy solutions from the development environment to the testing and production environments. You need to ensure that your flows use the correct mailbox in each environment without editing the cloud flow in the testing and production environments. Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of possible actions to the answer area and arrange them in the correct order. Answer:

Exhibit

PL-500 question #20 exhibit

Answer Area

Drag items

Create an environment variable in the development environment.Turn the cloud flow off and on.Set the default value in the testing and production environments.Create a cloud flow using the environment variable in the trigger step.Set the default value in the development environment to the mailbox email address.Create a connection reference.Set the current value in the environment to the mailbox email address.Configure Azure Key Vault.Create an environment variable in the testing and production environments.

Correct arrangement

  • Create an environment variable in the development environment.
  • Create a cloud flow using the environment variable in the trigger step.
  • Set the current value in the environment to the mailbox email address.
  • Turn the cloud flow off and on.

Explanation

This question tests the ability to correctly sequence actions for using Power Platform environment variables to manage environment-specific configurations in cloud flows without modifying the deployed solutions.

Approach. The core problem is to use different mailbox email addresses for a cloud flow across development, testing, and production environments without editing the flow itself in the latter environments. This is a classic use case for Power Platform environment variables.

  1. Create an environment variable in the development environment. This is the foundational step. You must first define the environment variable within your solution in the development environment to act as a placeholder for the mailbox email address.
  2. Set the default value in the development environment to the mailbox email address. Upon creating the environment variable, you typically assign it a default value, which in this case would be the email address for the development mailbox. This value also serves as the default if no environment-specific current value is set later.
  3. Create a cloud flow using the environment variable in the trigger step. With the environment variable defined, the cloud flow can now be built. The flow's trigger (e.g., 'When a new email arrives') should be configured to reference this environment variable for its 'Mailbox' parameter, making the flow dynamic.
  4. Set the current value in the environment to the mailbox email address. After the solution containing the environment variable and the flow is deployed to the testing or production environments, this crucial step is performed. For each target environment (testing, then production), the 'current value' of the environment variable is updated to reflect the specific mailbox email address for that environment. This overrides the default value and ensures the deployed flow automatically uses the correct mailbox without any manual modification to the flow itself, thus fulfilling the question's requirement.

Common mistakes.

  • common_mistake. Several options are incorrect or less optimal:
  • 'Create a connection reference': While connection references are vital for ALM with Power Automate, they apply to the underlying connection (e.g., an Outlook 365 connection), not directly to a specific parameter like a mailbox email address that is passed to a trigger. An environment variable (type Text) is more suitable for dynamically managing the mailbox address.
  • 'Turn the cloud flow off and on': This is a operational or troubleshooting step, not a configuration action for setting up environment-specific parameters.
  • 'Set the default value in the testing and production environments': Environment variables have a single default value (usually set during creation in dev). For target environments (test/prod), you set their current value, not a new default value for that environment.
  • 'Create an environment variable in the testing and production environments': Environment variables are created once in the development environment within a solution. They are then deployed with the solution; you do not recreate them in each target environment. You only set their current values.
  • 'Configure Azure Key Vault': While Key Vault is for secure secret management, for a simple mailbox address that can be stored in an environment variable, introducing Key Vault adds unnecessary complexity to this specific scenario and is not the direct method of integrating a dynamic mailbox address into a Power Automate flow trigger.

Concept tested. The core concept tested is the effective use of Power Platform environment variables for Application Lifecycle Management (ALM) in Power Automate cloud flows. This includes understanding how to define environment variables, set default and current values, and integrate them into flow triggers to manage environment-specific configurations (like email addresses) across different deployment stages (development, testing, production) without altering the deployed flow components.

Topics

#Environment Variables#Automated Deployment#Power Automate#Azure DevOps

Community Discussion

No community discussion yet for this question.

Full PL-500 Practice