
Microsoft Power Platform Developer - PL-400 Exam Questions
QUESTION NO: 1
You have the following code registered on the OnChange event of the parentcustomerid column on a contact table form. The parentcustomerid field is a lookup which can be an account or a contact record.
Line numbering is provided for information only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

You have the following code registered on the OnChange event of the parentcustomerid column on a contact table form. The parentcustomerid field is a lookup which can be an account or a contact record.
Line numbering is provided for information only.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

QUESTION NO: 2
You need to develop a Power Apps Component Framework (PCF) component for a company.
You must follow Microsoft ' s application lifecycle management (ALM) process for code components.
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.

You need to develop a Power Apps Component Framework (PCF) component for a company.
You must follow Microsoft ' s application lifecycle management (ALM) process for code components.
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.

Correct Answer:

Explanation:

QUESTION NO: 3
You are developing a Power Platform app for a school. The school plans to use the app to gather information about classes and students.
You must design a plug-in for the app. You must store data about students in the Contacts table and store data about classes in a custom table.
You need to select the stage in the event pipeline for each function.
Which stages should you use? To answer, drag the appropriate plug-in stages to the correct functions. Each plug-in stage may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

You are developing a Power Platform app for a school. The school plans to use the app to gather information about classes and students.
You must design a plug-in for the app. You must store data about students in the Contacts table and store data about classes in a custom table.
You need to select the stage in the event pipeline for each function.
Which stages should you use? To answer, drag the appropriate plug-in stages to the correct functions. Each plug-in stage may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

Box 1: PreValidation
For the initial operation, this stage will occur before the main system operation.
This provides an opportunity to include logic to cancel the operation before the database transaction.
Box 2: PreOperation
Occurs before the main system operation and within the database transaction.
If you want to change any values for an entity included in the message, you should do it here.
Avoid cancelling an operation here. Canceling will trigger a rollback of the transaction and have significant performance impact.
Box 3: PostOperation
Occurs after the main system operation and within the database transaction.
Use this stage to modify any properties of the message before it is returned to the caller.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/dat a- platform/event-framework
QUESTION NO: 4
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 Common Data Service (CDS) environment has two custom entities named Building code and Work item.
Building code has a code date custom field and Work item has an elapsed time custom field. Construction workers use a consolidated custom form with data from both entities to fill.in their daily work items.
A JavaScript library is used with these custom entities and fields to apply complex logic.
You need to ensure that the JavaScript library continues to function as originally designed if other developers expand the environment.
Solution: In form properties of the consolidated form, add the JavaScript library in the events tab and add the two custom fields to the dependent fields section of the non-event dependencies tab.
Does the solution meet the goal?
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 Common Data Service (CDS) environment has two custom entities named Building code and Work item.
Building code has a code date custom field and Work item has an elapsed time custom field. Construction workers use a consolidated custom form with data from both entities to fill.in their daily work items.
A JavaScript library is used with these custom entities and fields to apply complex logic.
You need to ensure that the JavaScript library continues to function as originally designed if other developers expand the environment.
Solution: In form properties of the consolidated form, add the JavaScript library in the events tab and add the two custom fields to the dependent fields section of the non-event dependencies tab.
Does the solution meet the goal?
Correct Answer: B
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 5
A company is creating a new system based on Microsoft Dataverse.
You need to select the Dataverse features that meet the company ' s requirements.
Which features should you select? To answer, drag the appropriate features to the correct requirements. Each feature may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

A company is creating a new system based on Microsoft Dataverse.
You need to select the Dataverse features that meet the company ' s requirements.
Which features should you select? To answer, drag the appropriate features to the correct requirements. Each feature may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

QUESTION NO: 6
You are examining code written by another developer that is not functioning correctly. There are no other JavaScript or business rules in use on the form.
This code is properly registered to the OnChange event of the telephone1 field on an account entity form. The main operation is to update the primary contact's phone number when the account phone number changes.
The primary contact field is a lookup. (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

You are examining code written by another developer that is not functioning correctly. There are no other JavaScript or business rules in use on the form.
This code is properly registered to the OnChange event of the telephone1 field on an account entity form. The main operation is to update the primary contact's phone number when the account phone number changes.
The primary contact field is a lookup. (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

Box 1: Yes
getFormTyp gets the form type for the record.
Form type 2 is Update.
Note: Syntax: formContext.ui.getFormType();
Return Value
Type: Number
Description: Form type. Returns one of the following values
RETURN VALUE
Value Form type
0 Undefined
1 Create
2 Update
3 Read Only
4 Disabled
6 Bulk Edit
Box 2: Yes
Xrm.WebApi.updateRecord Return Value: On success, returns a promise object containing the values specified earlier in the description of the successCallback parameter.
Note:
Syntax: Xrm.WebApi.updateRecord(entityLogicalName, id, data).then(successCallback, errorCallback); Where errorCallback: A function to call when the operation fails. An object with the following properties will be passed:
errorCode: Number. The error code.
message: String. An error message describing the issue.
Box 3: No
It will displayed even if the update fails.
Reference:
https: //docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui
/getformtype
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi
/updaterecord
QUESTION NO: 7
A company uses a custom Power Platform app to create and manage programs. The company has a public website that uses TLS 1.0.
The public website is outside of the corporate domain. The website uses POST requests to save data.
You need to automate the transfer of data to the public website.
What should you use? To answer, select the appropriate options in the answer area.

A company uses a custom Power Platform app to create and manage programs. The company has a public website that uses TLS 1.0.
The public website is outside of the corporate domain. The website uses POST requests to save data.
You need to automate the transfer of data to the public website.
What should you use? To answer, select the appropriate options in the answer area.

Correct Answer:

Explanation:
Create a plug-in
Register a step
QUESTION NO: 8
You need to configure the Web API and create the custom connector.
Which action should you perform for each step? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You need to configure the Web API and create the custom connector.
Which action should you perform for each step? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer:

Explanation:

QUESTION NO: 9
A company develops a new Microsoft Dataverse plug-in that manages the Update message of an entity.
The plug-in logic requires access to the record columns before the operation starts and must compare the columns to post-update values.
You need to modify the design of the solution to access the information.
What should you do?
A company develops a new Microsoft Dataverse plug-in that manages the Update message of an entity.
The plug-in logic requires access to the record columns before the operation starts and must compare the columns to post-update values.
You need to modify the design of the solution to access the information.
What should you do?
Correct Answer: A
QUESTION NO: 10
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 once 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.
You are developing a model-driven app for a company.
When you create a new Account record, you must automatically display a form to collect data that is needed to create a Contact record. The form must switch to the appropriate form layout based on the contact type.
You open the Contact form by using JavaScript. You pass the contact type information to the form by using the Xrm.Navigation.openForm function. An OnLoad event handler in the Contact form processes the data and shows only the appropriate sections of the form for the given contact type.
You need to configure the receiving form to accept the data parameter.
Solution: Export the solution, edit the customizations.xml, and add a querystringparameter element to the XML.
Does the solution meet the goal?
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 once 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.
You are developing a model-driven app for a company.
When you create a new Account record, you must automatically display a form to collect data that is needed to create a Contact record. The form must switch to the appropriate form layout based on the contact type.
You open the Contact form by using JavaScript. You pass the contact type information to the form by using the Xrm.Navigation.openForm function. An OnLoad event handler in the Contact form processes the data and shows only the appropriate sections of the form for the given contact type.
You need to configure the receiving form to accept the data parameter.
Solution: Export the solution, edit the customizations.xml, and add a querystringparameter element to the XML.
Does the solution meet the goal?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 11
You enable change tracking on the Account table in Microsoft Dataverse. You plan to use the Organization Service to retrieve the delta data by using C#.
You need to determine which message to use. What should you use?
You enable change tracking on the Account table in Microsoft Dataverse. You plan to use the Organization Service to retrieve the delta data by using C#.
You need to determine which message to use. What should you use?
Correct Answer: B
QUESTION NO: 12
You are creating an input control to format telephone numbers for a canvas app.
The control must be reusable in other canvas apps inside your company. Any updates must be able to be applied without editing the control in each canvas app.
You need to create the control.
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.

You are creating an input control to format telephone numbers for a canvas app.
The control must be reusable in other canvas apps inside your company. Any updates must be able to be applied without editing the control in each canvas app.
You need to create the control.
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.

Correct Answer:

Explanation:

QUESTION NO: 13
You need to design the Planning Hub data model.
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.

You need to design the Planning Hub data model.
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.

Correct Answer:

Explanation:

QUESTION NO: 14
You need to implement the Suitability Assessment Tool.
What should you use?
You need to implement the Suitability Assessment Tool.
What should you use?
Correct Answer: D




