Microsoft PL-400 Practice Test - Questions Answers, Page 17
List of questions
Question 161

You are developing a Power Platform solution for a medical practice. You create a custom table named Doctors to record details about the doctors who work at the medical practice.
You must be able to attach a PDF copy of a doctor's medical license to the row for each doctor.
You need to configure the table.
What should you do?
Create a Power Automate flow to add attachments.
Navigate to Table options and enable attachments.
Navigate to Column options and enable attachments.
Create relationships between the Doctor table and the Notes table.
Explanation:
A file column is used for storing file data up to a specified maximum size. A custom or customizable table can have zero or more file columns plus a notes (annotation) collection with zero to one attachment in each note.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/file-attributes
Question 162

You plan to populate records in a Common Data Service entity containing an option set field.
The source system has the label for the option set but not the corresponding integer value.
You are using a non .NET programming language.
You need to find the integer value for the option set.
What should you do?
Use Web API and use a PicklistAttibuteMetadata request.
Use the Organization service and execute a RetrieveOptionSetRequest request.
Use Web API and use an InsertOptionValue action.
Use the Organization service and execute a RetrieveAttributeRequest request.
Explanation:
You can retrieve a global choice (option set) by name (label) using the RetrieveOptionSetRequest message.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/org-service/metadata-option-sets
Question 163

You have the following code:
You have a contact record that uses the GUID 991bf2fd-d40c-4752-9984-26b7c0455b69.
You need to assign the contact record as the primary contact for an account when you create the account.
Which two code segments can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
var data = { "name": "Contoso account",
"primarycontactid": { "logicalname": "contact",
"id": "991bf2fd-d40c-4752-9984-26b7c0455b69" } };
var data = { "name": "Contoso account", "[email protected]":
"/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
var data = { "name": "Contoso account", "[email protected]":
"/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
var data = { "name": "Contoso account", "primarycontactid":
"/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
Explanation:
B: To associate new table records to existing table records, set the value of single-valued navigation properties using the
@odata.bind annotation
Example: var data =
{
"name": "Sample Account",
"[email protected]": "/contacts(465b158c-541c-e511-80d3-3863bb347ba8)"
}
A: For mobile clients in the offline mode, you cannot use the @odata.bind annotation, and instead have to pass a lookup
object (logicalname and id) pointing to the target record.
var data =
{
"name": "Sample Account", "primarycontactid":
{
"logicalname": "contact",
"id": "465b158c-541c-e511-80d3-3863bb347ba8"
}}
Note Syntax:
Xrm.WebApi.createRecord(entityLogicalName, data).then(successCallback, errorCallback); entityLogicalName: Logical name of the table you want to create. For example: "account".
Data: A JSON object defining the columns and values for the new table record.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/createrecord
Question 164

An organization uses Dynamics 365 Sales.
You plan to use a JavaScript web resources file in the Accounts form. The file has a dependency on two image web resource files and on the custom field new_placeofbirth in the Account entity.
You need to add the dependencies for the JavaScript file.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Open the web resource file, add the two image web resources to the dependency's lists, and then add the custom field new_placeofbirth to the dependency's list.
From Settings, select Customizations and then select Customize the System.
In the Account form, select Form Properties, select Non-Event Dependencies, and then add the custom field new_placeofbirth.
Select Account, select Forms, and then select the Account form.
From Web Resources, select the JavaScript file for the Account form and then select the JavaScript file.
In the Account form, select Form Properties and add the primary JavaScript file and the other two images web resources in Form Libraries.
Explanation:
Step 1 (B): From Settings, select Customizations and then select Customize the System.
Step 2 (D): Select Account, select Forms, and then select the Account form.
Step 3 (C): In the Account form, select Form Properties, select Non-Event Dependencies, and then add the custom field new_placeofbirth.
In our Dynamics 365 forms, there are measures we can take to ensure fields that are being used by JavaScript are not removed from forms. To prevent this from happening, we can go to Form Properties and select the Non-Event
Dependencies, and add the website field:
Reference:
https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/web-resource-dependencies
Question 165

You create a Power Automate flow that retrieves data from a proprietary database.
You need to ensure that the flow works for other users.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Share a view with users.
Share the custom connector with users.
Share the flow with users.
Share the environment by giving permissions to the users.
Explanation:
Share the flow and the custom connector with users.
Reference: https://docs.microsoft.com/en-us/connectors/custom-connectors/share
Question 166

You need to configure that the mobile app meets the requirements for phone entries.
Which expression should you use?
IsBlank
IsType
PlainText
IsNumeric
Explanation:
Question 167

You are creating a model-driven app.
A JavaScript function must be manually initiated by the user from within an entity form.
You need to add a button to the form to run the JavaScript.
What should you do?
Use the Ribbon Workbench.
Edit the SiteMap.
Edit the XML for the form.
Edit ISV.Config.
Export the ribbon definitions.
Explanation:
How to add JavaScript to existing button in Ribbon WorkBench.
Open Ribbon workbench and Right click on Assign button from Account form and click on Customize Button. Add Enable rule and call Javascript function.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/customize-commands-ribbon
Question 168

You are creating a canvas app for a bank. Consumers will enter information into the app when they apply for a loan.
The input form for the app must display fields to prompt the consumer for their first name, last name, address, and the requested loan amount.
Immediately after a consumer enters a value for the LoanAmount field, the background color for the column must change.
The background color for the column must change to red if a consumer enters a value of more than $5,000 and must turn green for values less than or equal to $5,000.
You need to implement the required behavior.
Which option should you use?
Create a Power Automate flow.
Configure field properties.
Add a business rule to the form.
Add a formula to the LoanAmount field.
Explanation:
Conditional formatting in Power Apps can be done with formulas.
Reference:
https://powerapps.microsoft.com/en-us/blog/conditional-formatting-in-powerapps/
Question 169

You need to create the customer mobile app.
Which type of function expression should you use?
Filter
Find
LookUp
Explanation:
The LookUp function finds the first record in a table that satisfies a formula. Use LookUp to find a single record that matches one or more criteria.
Reference: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup
Question 170

You are creating a Power Automate flow.
You create an Azure Service Bus listener app that receives requests from a third-party application.
When the flow calls the message queue, it must delete the message as soon as it is read.
You need to ensure that the queue is cleared properly.
Which method or class should you use?
ReceiveMode
BrokeredMessage
EventHubReceiver
EventHubSender
Explanation:
ReceiveMode enumerates the values for the receive mode. The default is PeekLock.
Fields:
PeekLock: Specifies the PeekLock receive mode. This is the default value for ReceiveMode. ReceiveAndDelete: Specifies the ReceiveAndDelete receive mode.
Note: You can specify two different modes in which Service Bus receives messages.
Receive and delete. In this mode, when Service Bus receives the request from the consumer, it marks the message as being consumed and returns it to the consumer application. Peek lock.
Reference: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions
https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.receivemode
Question