Microsoft PL-400 Practice Test - Questions Answers, Page 6
List of questions
Question 51
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
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.
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 52
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
HOTSPOT
You have the following JavaScript function: (Line numbers are included for reference only.)
The Annual Revenue view column is configured to call the function as shown in the Column Properties exhibit. (Click the Change Column Properties tab.)
Users report that the icons that appear in the Active Accounts view are incorrect, as shown in the Active Accounts View exhibit. (Click the Active Accounts View tab.)
You need to determine why the incorrect icons are being displayed.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Explanation:
Box 1: No
parseFloat will return 'NaN' if it's not a number (null and undefined are NaNs).
Box 2: No
Box 3: Yes
Session.userLCID is the Locale ID for the ASP application.
Reference:
https://support.microsoft.com/en-us/help/229690/how-to-set-the-asp-locale-id-per-the-browser-s-language-settings
Question 53
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
HOTSPOT
You develop the following JavaScript code for a web resource that will be used in a model-driven app.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: Yes
Problem patterns: Web-use-async
There are multiple ways to interact with the server or request resources. Common approaches that allow for synchronous communications include the following (These scenarios should be avoided.):
Usage of the XMLHttpRequest object passing in false for the value of the async parameter for the open function call
var requestXhr = new XMLHttpRequest();
// Explicitly setting the async parameter to false or supplying a variable with a value of false will force this as a synchronous call.
requestXhr.open('GET', '/test/test.txt', false);
Box 2: No
=== - Strict Equality Comparison is already used in the code.
Box 3: No
No debugger statement in the code, so web-remove-debug-script (avoid including debug script in non-development environments) does not apply.
Reference:
https://docs.microsoft.com/sr-cyrl-rs/powerapps/developer/model-driven-apps/best-practices/business-logic/interact-http-https-resources-asynchronously
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
Question 54
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
You need to handle errors in UpdateRecord.js.
Which code segment should you add at line UR06?
catch(error) {
alert("Caught error: " + error.message);}
Exception exception = Server.GetLastError() ;
if(exception != null)}
catch(exception e){
console.writeline(e)}
function (error){
console.log(error.message)}
Explanation:
Question 55
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
You need to configure the system to support automation for referrals.
What are two possible ways to achieve the goal? Each correct selection presents a complete solution.
NOTE: Each correct selection is worth one point.
Azure Function that uses the Discovery service
workflow extension
Azure Function that uses a listener
Power Automate flow
Explanation:
https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcherhttps://docs.microsoft.com/en-us/power-automate/
Question 56
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
DRAG DROP
You need to determine how to implement rules for players who register for a soccer tournament.
Which business rule actions should you use? To answer, drag the appropriate business rule actions to the correct fields. Each business rule action 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.
Explanation:
Scenario:
Weight: Set visibility action to No.
Age: Set Business Required action to Business required
Height: Set visibility action to No.
Question 57
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
You need to reduce response time for the information email on the website.
What should you create?
a flow that creates a SharePoint item for each email response
a flow that creates a notification in Microsoft Teams
a Power Apps app that displays the number of email received in a dashboard
a logic app that moves all emails received to Azure Blob storage
Explanation:
Scenario:
Customers report that the response time from the information email listed on the Adventure Works Cycles website is greater than five days. Microsoft Teams is used for all collaboration.
Microsoft teams support email notifications.
Reference: https://support.microsoft.com/en-us/office/manage-notifications-in-teams-1cc31834-5fe5-412b-8edb-43fecc78413d
Question 58
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
You are building a custom application in Azure to process resumes for the HR department.
The app must monitor submissions of resumes.
You need to parse the resumes and save contact and skills information into the Common Data Service.
Which mechanism should you use?
Power Automate
Common Data Service plug-in
Web API
Custom workflow activity
Explanation:
Improve operational efficiency with a unified view of business data by creating flows that use Dataverse (Common Data Service has been renamed to Microsoft Dataverse as of November 2020).
For example, you can use Dataverse within Power Automate in these key ways:
Create a flow to import data, export data, or take action (such as sending a notification) when data changes.
Instead of creating an approval loop through email, create a flow that stores approval state in an entity, and then build a custom app in which users can approve or reject items.
Reference: https://docs.microsoft.com/en-us/power-automate/common-data-model-intro
Question 59
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A company manages capital equipment for an electric utility company. The company has a SQL Server database that contains maintenance records for the equipment.
Technicians who service the equipment use the Dynamics 365 Field Service mobile app on tablet devices to view scheduled assignments. Technicians use a canvas app to display the maintenance history for each piece of equipment and update the history.
Managers use a Power BI dashboard that displays Dynamics 365 Field Service and real-time maintenance data.
Due to increasing demand, managers must be able to work in the field as technicians.
You need to design a solution that allows the managers to work from one single screen.
What should you do?
Add the maintenance history app to the Field Service Mobile app.
Add the manager Power BI dashboard to the Field Service mobile app.
Create a new maintenance canvas app from within the Power BI management dashboard.
Add the maintenance history app to the Power BI dashboard.
Explanation:
Power BI enables data insights and better decision-making, while Power Apps enables everyone to build and use apps that connect to business data. Using the Power Apps visual, you can pass context-aware data to a canvas app, which updates in real time as you make changes to your report. Now, your app users can derive business insights and take actions from right within their Power BI reports and dashboards.
Reference: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/powerapps-custom-visual
Question 60
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A company has an application that provides API access. You plan to connect to the API from a canvas app by using a custom connector.
You need to request information from the API developers so that you can create the custom connector.
Which two types of files can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
YAML
WSDL
OpenAPI definition
Postman collection
Explanation:
OpenAPI definitions or Postman collections can be used to describe a custom connector.
Reference: https://docs.microsoft.com/en-us/connectors/custom-connectors/faq
Question