PL-400 Online Practice Questions

Home / Microsoft / PL-400

Latest PL-400 Exam Practice Questions

The practice questions for PL-400 exam was last updated on 2025-06-01 .

Viewing page 1 out of 24 pages.

Viewing questions 1 out of 124 questions.

Question#1

HOTSPOT
An online store has a custom web page that allows customers to place their orders against a Microsoft Dataverse database that uses custom products. The custom web page uses Web API patterns to create and update records.
Customers report that orders can be placed for out-of-stock items.
You need to update the page code to ensure that inventory is available before confirming an order.
Which pattern should you use for each step? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.


A. 

Explanation:
Box 1: IsOptimisticConcurrencyEnabled
On a multi-threaded and multi-user system like Power Apps, operations and data changes often happen in parallel. A problem arises when two or more update or delete operations on the same piece of data happen at the same time. This situation could potentially result in data loss. The optimistic concurrency feature provides the ability for your applications to detect whether a table record has changed on the server in the time between when your application retrieved the record and when it tries to update or delete that record.
Box 2: If-Match: Etag
Use If-Match and If-None-Match headers with ETag values to check whether the current version of a resource matches the one last retrieved, matches any previous version or matches no version. These comparisons form the basis of conditional operation support. Dataverse provides ETags to support conditional retrievals, optimistic concurrency, and limited upsert operations.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/optimistic-concurrency
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/perform-conditional-operations-using-web-api
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/perform-conditional-operations-using-web-api

Question#2

DRAG DROP
You are designing an implementation that has complex data requirements
The data storage requirements are as follows:
• Query large amounts of unstructured data in Dataverse.
• Read and update structured data stored outside of Dataverse.
You need to implement data storage to meet the requirements.
Which table types should you use? To answer, move the appropriate table types to the correct data storage requirements. You may use each table type once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.


A. 

Question#3

A client requires that the system send an email from a button on their customer contact form.
You need to call the action from JavaScript.
Which two functions achieve this result? Each correct presents a complete solution. NOTE: Each correct selection is worth one point.

A. Xrm.WebApi.online.createRecord()
B. Xrm.WebApi.online.updateRecord()
C. Xrm.WebApi.online.execute()
D. Xrm.WebApi.online.executeMultiple()

Explanation:
Xrm.WebApi.online.executeMultiple executes a collection of action, function, or CRUD operations.
Xrm.WebApi.online.execute executes a single action, function, or CRUD operation.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/online/executemultiple
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/online/execute

Question#4

HOTSPOT
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.


A. 

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#5

HOTSPOT
A model-driven app has the following JavaScript code.
The code is attached to the OnChange event of the Phone (telephone1) field on the Account entity.



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


A. 

Explanation:
Box 1: Yes
Xrm.WebApi.updateRecord updates a table record.
Syntax:
Xrm.WebApi.updateRecord(entityLogicalName, id, data).then(successCallback, errorCallback);
Box 2: Yes
Box 3: No
No action would be taken.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/updaterecord

Exam Code: PL-400Q & A: 353 Q&AsUpdated:  2025-06-01

 Get All PL-400 Q&As