Microsoft

PL-400 Free Practice Questions — Page 7

Question 54

HOTSPOT - You are composing a request to the Microsoft Dataverse Web API that updates existing account records in Dataverse and returns resulting records in the response. You need to complete the request. Which value should you use for each property? To answer, select the appropriate options in the Value for Property area. NOTE: Each correct selection is worth one point.

Illustration for PL-400 question 54
Show Answer
Correct Answer: Method: PATCH Header: Prefer: return=representation
Explanation:
Updating existing Dataverse records uses the PATCH method. To return the updated record in the response, the Prefer: return=representation header is required.

Question 55

DRAG DROP - A company plans to deploy an Azure Function that connects to Dataverse on a defined schedule to bulk-update Account data. Corporate policy discourages password-based authentication if other viable options exist. You need to implement the function app. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for PL-400 question 55
Show Answer
Correct Answer: Create the Azure Functions app. Enable system-assigned managed identity. Run pac admin assign-user.
Explanation:
A passwordless approach uses a managed identity. The Function App must exist before enabling its system-assigned managed identity, which creates an identity in Microsoft Entra ID. That identity is then granted access to Dataverse by assigning it a security role using pac admin assign-user.

Question 56

You must move an API key between environments by using a solution. You must use an environment variable with a data type of Secret. You need to create the environment variable. What must you create first?

A. Application user
B. Certificate
C. Azure Key Vault
D. Client secret
Show Answer
Correct Answer: C
Explanation:
In Power Platform, an environment variable with data type **Secret** does not store the value directly in Dataverse. Instead, it references a secret stored in **Azure Key Vault**. Therefore, an Azure Key Vault must be created first so the environment variable can securely point to and retrieve the API key.

Question 57

You are developing custom pages for a model-driven app. The app must display a timer control within a menu and include a mixture of buttons and icons. If a change is made to any of these elements, then the changes must cascade out automatically to all custom pages. You need to implement a solution. What should you implement?

A. PCF control
B. Canvas component
C. Timer control
D. Web resource
Show Answer
Correct Answer: B
Explanation:
Custom pages in model-driven apps are built using canvas app technology. Canvas components are designed for exactly this scenario: creating reusable UI elements that can include timers, buttons, and icons, and can be reused across multiple custom pages. When a canvas component is updated, changes automatically propagate to all pages where it is used. PCF controls are more suited to extending field-level or dataset-level behavior rather than composing a reusable menu layout across custom pages.

Question 58

DRAG DROP - You are designing a custom connector for an internal API used by Contoso, LLC. Authentication to the API is carried out by using an API key. The API key is stored within Azure Key Vault. Each environment has a separate instance of the API with a different API key. You need to reference the API key from Key Vault in the custom connector. Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

Illustration for PL-400 question 58
Show Answer
Correct Answer: Create an environment variable named APIKey (contoso_APIKey) Remove the current value Create a connection Use the syntax @environmentVariables("contoso.ApiKey")
Explanation:
The API key is stored as an environment variable backed by Key Vault. Clearing the current value allows Key Vault to supply the secret securely. A connection is then created for the custom connector, and the connector references the key at runtime using the environment variable expression.

Question 59

You are creating an asynchronous automation that targets an external API. The automation must retrieve a stored API key to connect with the API. The API key must be rotated regularly by business users, without the need for dedicated tooling. No connector is available for the external API. You need to implement the automation. What should you use?

A. Unsecure config
B. Secure config
C. Connection references
D. Environment variables
Show Answer
Correct Answer: D
Explanation:
Environment variables are designed to store configuration values like API keys that can be changed by business users without development effort. They work across environments, can be marked as secret for security, and can be accessed easily by asynchronous automations. Secure config applies to plugins only, connection references require a connector, and unsecure config is not appropriate for sensitive keys.

Question 60

You create a custom page that is used as a contextual dialog in a model-driven app. The app must be able to receive two contextual parameters by passing a concatenated string. The string must use the pipe (|) symbol with the recordId parameter. You need to compose the formulas to extract parameter information. Which two formulas should you compose? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Left(Param("recordId"), Find("|", Param("recordId")) - 1)
B. Left(Param("recordId"), Len(Param("recordId")) - Find("|", Param(“recordId")))
C. Right(Param("recordId"), Len(Param("recordId")) - Find("|", Param(“recordId")))
D. Right(Param("recordId"), Find("|", Param("recordId")) - 1)
Show Answer
Correct Answer: A, C
Explanation:
The concatenated parameter uses a pipe (|) as a delimiter. To extract the first parameter, you take all characters to the left of the pipe using Left(..., Find("|", ...) - 1), which is option A. To extract the second parameter, you take all characters to the right of the pipe using Right(..., Len(...) - Find("|", ...)), which is option C. Together, these correctly split the string into the two contextual parameters.

Question 61

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A company requires custom validation when users save form records that use a synchronous plug-in. If validation fails, a message that explains how to resolve the issue must be displayed on the form to the user. You need to implement the custom validation. Solution: Use the tracing service to log the message. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Using the tracing service only writes diagnostic information to the plug-in trace log, which is not shown to end users. To display a validation message on the form during a synchronous plug-in, the plug-in must throw an InvalidPluginExecutionException (or similar) with a user-friendly message. Therefore, the proposed solution does not meet the goal.

Question 62

An organization uses Dynamics 365 Sales. The organization has accounting and customer service departments. You must restrict users in customer service from being able to change the value of the balance field on the Contact records. The accounting team must be the only team able to edit this field. You need to create the appropriate solution without any customizations. What should you do first?

A. Enable field security for the balance field and grant the customer service team read permissions.
B. Create a customer service form and role and make the balance field read-only.
C. Create a customer service form and role and a business rule that enables the balance field.
D. Create an accounting form and role and a business rule that enables the balance field.
Show Answer
Correct Answer: A
Explanation:
To restrict editing of a specific field without custom code, Dynamics 365 uses field-level security. The first required step is to enable field security on the balance field. After it is enabled, you can then grant read-only access to customer service users and edit access only to accounting users through field security profiles. Forms, roles, or business rules alone cannot securely enforce field-level edit restrictions.

Question 63

You need to improve the efficiency of counting warehouse inventory. What should you create?

A. a model-driven app that allows the user to key in inventory counts
B. a Power BI dashboard that shows the inventory counting variances
C. a flow that updates the warehouse counts as the worker performs the count
D. a canvas app that scans barcodes to allow a warehouse worker to select inventory counts
Show Answer
Correct Answer: D
Explanation:
To improve the efficiency of counting warehouse inventory, the solution should support fast, accurate data capture at the point of work. A canvas app with barcode scanning allows warehouse workers to scan items directly, minimizing manual entry, reducing errors, and speeding up the counting process. The other options either focus on reporting, background automation, or manual data entry, which do not directly improve the efficiency of the physical counting activity.

$19

Get all 406 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.