Microsoft

PL-400 Free Practice Questions — Page 11

Question 101

You create a custom API. You define the API as a function. The custom API does not appear in the response received from https://[yourorg].api.crm.dynamics.com/api/data/v9.2/$metadata and returns an error when called. You need to identify why the custom API is not working. What should you do?

A. Add a response property to the custom API.
B. Add a request property to the custom API.
C. Set the Enabled for Workflow option of the customer API to True.
D. Set the is Private property of the custom API to False.
Show Answer
Correct Answer: D
Explanation:
A custom API with the Is Private (IsPrivate) property set to true is intentionally hidden from the Dataverse $metadata document and is not intended for external discovery or code generation. If the API does not appear in $metadata and cannot be called as expected, set Is Private to False so it is publicly exposed. Request/response properties are optional depending on the API design, and the Enabled for Workflow setting does not control metadata visibility or Web API availability.

Question 102

DRAG DROP - A company manages a Microsoft Power Platform solution that includes an account table. You enable an Auditing flag in the table and import a managed version of the solution to the production environment. After the import, you observe that the Auditing flag is disabled in the production environment. You check solution layering of the Account table. You observe that the First Party solution customization lays on top of the solution. You need to enable the Auditing setting. In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Illustration for PL-400 question 102
Show Answer
Correct Answer: 1. Create a blank solution and move the Account table customizations from the original solution to the blank solution. Export the new solution as managed and import it into production. 2. Remove the Account table from the original solution. Export the solution as managed and import it into production using Upgrade. 3. Add the Account table and all customizations back to the original solution. 4. Export the original solution as managed and import it into production using Upgrade. 5. Delete the new solution from the development and production environments.
Explanation:
Moving the component to a temporary solution, upgrading to remove it from the original managed layer, then re-adding and upgrading recreates the managed layer so its customization sits above the first-party layer. The temporary solution is removed after the original solution has been successfully redeployed.

Question 103

A company designs a Microsoft Dataverse Custom API to encapsulate business logic in it. The Custom API business logic must be encapsulated in a way that does not allow the business logic behavior to be modified or canceled. You need to set the parameter value of the custom API so it cannot be customized. Which parameter value should you set?

A. Execute Privilege Name to prv_SdkMessageProcessingStep
B. Enabled for Workflow to No
C. Binding Type to Entity
D. Custom Processing Step to None
Show Answer
Correct Answer: D
Explanation:
Set the Custom Processing Step parameter to 'None'. This configures the Custom API so that only the plug-in specified for the Custom API executes, preventing additional plug-in steps from modifying, extending, or canceling the business logic. Options such as 'Enabled for Workflow', 'Binding Type', or 'Execute Privilege Name' do not control whether the API's processing can be customized.

Question 104

HOTSPOT - You create a model-driven app. You observe that the following issues occur with the app: • One custom column displays an unexpected value when a new record is created. • An error prevents the record from saving. You need to use the browser to find the root cause of the issues. Which events should you debug? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for PL-400 question 104
Show Answer
Correct Answer: Unexpected column value: OnLoad Error when saving: OnSave
Explanation:
Unexpected values shown when creating a new record are typically caused by form initialization logic (OnLoad). Save failures are debugged in the form's OnSave event, where validation or save-prevention scripts commonly execute. OnReadyStateComplete is for IFrames, PostSave occurs after a successful save, and OnSelection is unrelated.

Question 105

HOTSPOT - You develop the following code as part of a plug-in that handles the Create message of the Account table. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for PL-400 question 105 Illustration for PL-400 question 105
Show Answer
Correct Answer: Yes Yes No
Explanation:
The plug-in skips validation only when accountnumber is null or empty; otherwise it validates for duplicates. The query filters on statecode = 0, so it checks only active accounts. The exception message reports existence of a duplicate, not the number of duplicates.

Question 106

DRAG DROP - You manage two Microsoft Power Platform solutions. • Solution A contains a custom text column named custom_text. • Solution B contains a view that references the custom_text column. Both solutions in the managed state are installed in the destination environment. You need to delete the custom_text column and apply changes in the destination environment. In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct orders. 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 106
Show Answer
Correct Answer: 1. Remove the referenced custom_text column from the Solution B view in the source environment. 2. Delete the custom_text column in the source environment. 3. Export Solution B as managed from the source environment and import it to the destination environment. 4. Export Solution A as managed from the source environment and import it to the destination environment.
Explanation:
Remove all dependencies before deleting the column. Update the dependent managed solution first so the destination no longer references the column, then deploy the solution that removes the column itself. (The delete/export steps for the source can be interchanged in some valid sequences as long as the dependency is removed first and Solution B is updated before Solution A is applied in the destination.)

Question 107

You are developing a model-driven app using JavaScript. You need to configure the app to display a dialog box when a form is opened or when a grid on a form is sorted. What should you use?

A. Grid OnSave
B. Grid OnRecordSelect
C. Grid OnChange
D. Subgrid OnLoad
Show Answer
Correct Answer: D
Explanation:
Use the Subgrid OnLoad event. The Subgrid OnLoad event occurs when a subgrid loads and also when it refreshes, including after sorting. It can be used to run JavaScript that displays a dialog. Form OnLoad handles form opening, while Subgrid OnLoad covers grid loading and sorting behavior. The other listed grid events do not correspond to detecting grid sorting or initial subgrid load.

Question 108

A company is testing a Microsoft Dataverse plug-in in an environment. The plug-in works in post-operation mode and performs the update of the Account entity. During testing, a user observes that the plug-in unintentionally triggers a synchronous third-party ISV plug-in. You need to modify the system design to avoid unwanted triggering of the third-party plug-in. What should you do?

A. Disable the existing third-party plug-in by using the Plug-in Registration Tool.
B. Use UpdateRequest with the BypassCustomPluginExecution parameter and Execute method of the Organization service.
C. Update the code of the third-party ISV plug-in to ignore updates caused by the new plug-in.
D. Update the code of the new plug-in to use InputParameters of Plugin Execution Context.
Show Answer
Correct Answer: B
Explanation:
Use an UpdateRequest with the BypassCustomPluginExecution optional parameter when executing the update through the Organization service. This bypasses custom synchronous plug-in execution for that request (subject to required privileges), avoiding unintended triggering of the third-party synchronous ISV plug-in without disabling it or modifying third-party code.

Question 109

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 and update permissions.
B. Create a customer service form and role and a business rule that enables the balance field.
C. Enable field security for the balance field and grant the customer service team read permissions.
D. Enable field security for the balance field and grant the accounting team read permissions.
Show Answer
Correct Answer: C
Explanation:
Use field-level security. The first step is to enable field security on the balance field and assign the customer service users (via a field security profile) Read permission only, without Update. Accounting can then be granted Update permission in its profile. Granting customer service Update would defeat the requirement, and granting accounting only Read would not allow them to edit the field.

Question 110

HOTSPOT - You manage two Microsoft Power Platform managed solutions. You must update the solutions and import them into an environment that has no customizations. Solution A - • Changes the length of the name column to 75 • Adds the categoryid column at the top of the Account Information section of the Account form Solution B - • Changes the length of the name column to 100 • Adds the territoryid column at the top of the Account Information section of the Account form Solution A must be imported before Solution B. You need to determine what state the components are in after importing the solutions. Which effect does each component exhibit? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Illustration for PL-400 question 110
Show Answer
Correct Answer: Column: Length is 100. Form: Only the territoryid column appears in the Account Information section.
Explanation:
Managed solution component conflicts follow a last-imported-wins behavior for shared component changes. The later managed solution sets the name column length to 100. Form customizations are stored as the form definition, so the later imported managed solution's form layout replaces the earlier one, leaving only the territoryid addition.

$19

Get all 409 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.