ExamGecko
Home Home / Microsoft / PL-400

Microsoft PL-400 Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











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.


Question 51
Correct answer: Question 51

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

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.


Question 52
Correct answer: Question 52

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

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.


Question 53
Correct answer: Question 53

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

You need to handle errors in UpdateRecord.js.

Which code segment should you add at line UR06?

A.

catch(error) {

alert("Caught error: " + error.message);}

A.

catch(error) {

alert("Caught error: " + error.message);}

Answers
B.

Exception exception = Server.GetLastError() ;

if(exception != null)}

B.

Exception exception = Server.GetLastError() ;

if(exception != null)}

Answers
C.

catch(exception e){

console.writeline(e)}

C.

catch(exception e){

console.writeline(e)}

Answers
D.

function (error){

console.log(error.message)}

D.

function (error){

console.log(error.message)}

Answers
Suggested answer: A

Explanation:


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.

A.

Azure Function that uses the Discovery service

A.

Azure Function that uses the Discovery service

Answers
B.

workflow extension

B.

workflow extension

Answers
C.

Azure Function that uses a listener

C.

Azure Function that uses a listener

Answers
D.

Power Automate flow

D.

Power Automate flow

Answers
Suggested answer: C, D

Explanation:

https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcherhttps://docs.microsoft.com/en-us/power-automate/

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.


Question 56
Correct answer: Question 56

Explanation:

Scenario:

Weight: Set visibility action to No.

Age: Set Business Required action to Business required

Height: Set visibility action to No.

You need to reduce response time for the information email on the website.

What should you create?

A.

a flow that creates a SharePoint item for each email response

A.

a flow that creates a SharePoint item for each email response

Answers
B.

a flow that creates a notification in Microsoft Teams

B.

a flow that creates a notification in Microsoft Teams

Answers
C.

a Power Apps app that displays the number of email received in a dashboard

C.

a Power Apps app that displays the number of email received in a dashboard

Answers
D.

a logic app that moves all emails received to Azure Blob storage

D.

a logic app that moves all emails received to Azure Blob storage

Answers
Suggested answer: B

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

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?

A.

Power Automate

A.

Power Automate

Answers
B.

Common Data Service plug-in

B.

Common Data Service plug-in

Answers
C.

Web API

C.

Web API

Answers
D.

Custom workflow activity

D.

Custom workflow activity

Answers
Suggested answer: A

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

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?

A.

Add the maintenance history app to the Field Service Mobile app.

A.

Add the maintenance history app to the Field Service Mobile app.

Answers
B.

Add the manager Power BI dashboard to the Field Service mobile app.

B.

Add the manager Power BI dashboard to the Field Service mobile app.

Answers
C.

Create a new maintenance canvas app from within the Power BI management dashboard.

C.

Create a new maintenance canvas app from within the Power BI management dashboard.

Answers
D.

Add the maintenance history app to the Power BI dashboard.

D.

Add the maintenance history app to the Power BI dashboard.

Answers
Suggested answer: D

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

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.

A.

YAML

A.

YAML

Answers
B.

WSDL

B.

WSDL

Answers
C.

OpenAPI definition

C.

OpenAPI definition

Answers
D.

Postman collection

D.

Postman collection

Answers
Suggested answer: C, D

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

Total 350 questions
Go to page: of 35