ExamGecko
Home Home / Microsoft / PL-400

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

Question list
Search
Search

List of questions

Search

Related questions











A company has two development instances, two test instances, two staging instances, and one production instance.

The test team reports connection issues with the test and staging instances.

You need to identify which of the instances the testing team currently has access.

Which two URLs can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

https://globaldisco.crm.dynamics.com/api/discovery/v9.1/instances

A.

https://globaldisco.crm.dynamics.com/api/discovery/v9.1/instances

Answers
B.

https://myorg.api.crm.dynamics.com/api/data/v9.1/

B.

https://myorg.api.crm.dynamics.com/api/data/v9.1/

Answers
C.

https://dev.crm.dynamics.com/api/discovery/v9.1/instances

C.

https://dev.crm.dynamics.com/api/discovery/v9.1/instances

Answers
D.

https://disco.crm.dynamics.com/api/discovery/v9.1/

D.

https://disco.crm.dynamics.com/api/discovery/v9.1/

Answers
E.

https://dev.crm.dynamics.com/api/discovery/v9.1/instances(UniqueName='myorg')

E.

https://dev.crm.dynamics.com/api/discovery/v9.1/instances(UniqueName='myorg')

Answers
Suggested answer: C, E

Explanation:

Organization information is stored in the Instance entity of the Discovery service. To see the kind of information contained in that entity, send an HTTP GET request to the service for one of your instances.

GET https://dev.{servername}/api/discovery/v9.0/Instances(UniqueName='myorg')

Example: Get the details of a specific instance. If you leave out the GUID, all instances that the authenticated user has access to are returned. GET https://dev.{servername}/api/discovery/v9.0/Instances(<guid>)

Reference:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/webapi/discover-url-organization-web-api

You are a Dynamics 365 developer working on a model-driven app.

You add a button to an entity form and to the view for the entity that calls a JavaScript function. When you click the button, it results in an error.

You determine that the JavaScript function is calling another JavaScript function in a different web resource.

You need to resolve the error.

What should you do?

A.

In the JavaScript web resource, add the missing web resource as a dependency.

A.

In the JavaScript web resource, add the missing web resource as a dependency.

Answers
B.

Add &ribbondebug=true to the app URL and run the Command Checker tool.

B.

Add &ribbondebug=true to the app URL and run the Command Checker tool.

Answers
C.

From the Ribbon Workbench, add the missing JavaScript web resource as a CustomRule in EnableRules.

C.

From the Ribbon Workbench, add the missing JavaScript web resource as a CustomRule in EnableRules.

Answers
Suggested answer: A

A multinational company requires that all phone numbers be standardized as country code + area code + phone number.

The application design team decides that a custom Power Apps component framework (PCF) control should be used to prompt users for an area code and to correctly format the phone number.

You need to get the list of valid area codes when a contact record is opened and before the user enters a new phone number.

You need to get the list of valid area codes when a contact record is opened and before the user enters a new phone number.

In which function should you call webAPI.retrieveMultipleRecords?

A.

updateView

A.

updateView

Answers
B.

notifyOutputChanged

B.

notifyOutputChanged

Answers
C.

getOutputs

C.

getOutputs

Answers
D.

init

D.

init

Answers
Suggested answer: A

Explanation:

The updateView method will be called when any value in the property bag has changed. This includes field values, data-sets, global values such as container height and width, offline status, component metadata values such as label, visible, etc.

Incorrect Answers:

notifyOutputChanged is a callback method to alert the framework that the control has new outputs ready to be retrieved asynchronously.

getOutputs is called by the framework prior to a component receiving the new data. Returns an object based on nomenclature defined in manifest, expecting objects[s] for the property marked as bound.

Reference: https://www.inogic.com/blog/2021/01/what-is-popupservice-in-powerapps-component-framework/

HOTSPOT

A company has a model-driven app.

A custom button on a form calls a JavaScript function that validates form data fields and creates a web basket. The JavaScript function then displays a message to the user.

Users are located in the United States, which uses ISO Code 1033, and France, which uses ISO Code 1036.

Users in France report that the message displays in English.

You need to modify the RibbonDiffXml file to ensure that messages appear in the user's language.

How should you complete the CommandDefinition node? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 44
Correct answer: Question 44

Explanation:

Box 1: CrmParameter

In addition to data values, you can retrieve client context information by using <CrmParameter>. You can use the following options as the value for the CrmParameter element: OrgName, OrgLcid, and UserLcid.

Box 2: UserLcid

userLCID is the language code of the current user.

Note: A locale is a set of user preference information related to the user's language. The locale determines how dates, times, currencies, and numbers are formatted, how items are alphabetically sorted, and how strings are compared. The locale identifier (LCID) is a 32-bit value that uniquely defines a locale.

Reference:

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/customize-dev/pass-dynamics-365-data-page-parameter-ribbon-actions

HOTSPOT

A company has a model-driven app that captures applications from prospective students.

You are asked to create a new re-usable custom component using the Power Apps component framework (PCF).

The custom component must allow entry of a date of birth and validate that the applicant is not a minor.

You create the class AuditDatePicker in the TypeScript file Index.ts and the style sheet DatePicker.css.

You need to define the component to be available only for relevant fields and its properties when used in a form.

How should you complete the manifest? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 45
Correct answer: Question 45

Explanation:

Box 1: AuditDatePicker

Constructor: Constructor of the code component.

Box 2:DateandTime.DateOnly

Box 3: bound

usage: Has two properties, bound and input. Bound properties are bound only to the value of the field. Input properties are either bound to a field or allow a static value.

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/manifest

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/implementing-controls-using-typescript

DRAG DROP

An organization has a Dynamics 365 Sales environment.

You need to create a Power Apps component.

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.


Question 46
Correct answer: Question 46

Explanation:

Step 1: Run pac pcf init Цnamespace ..

This is the first command which creates basic folder structure of PCF control project.

Run the following command to create the control. The format of the control is:

pac pcf init Цnamespace <specify your namespace here> Цname <put component name here> Цtemplate <component type>

Step 2: Run the npm install command

Install Dependencies

Once 'init' sets up the basic folder, as a next step install all the PCF control dependencies using 'npm install' command.

Example:

Now at this point, there is nothing we have actually created. However, the solution created contains sample PCF control code.

Step 3: Run the following np run build command

Build PCF Component.

Once you implement the PCF component, build the code for any syntax errors.

Syntax:

npm run build

Reference:

https://rajeevpentyala.com/2020/03/21/power-apps-component-framework-pcf-demystify/

https://carldesouza.com/creating-a-custom-component-using-the-powerapps-component-framework/

HOTSPOT

You need to develop a set of Web API's for a company.

What should you implement? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 47
Correct answer: Question 47

Explanation:

Box 1: Functions

most functions and services that are stateless and do not have side effects.

Box 2: Actions

Actions can have side effects.

Box 3: Complex types

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/use-web-api-actions

HOTSPOT

You need to use the Dynamics 365 Sales Web API to retrieve metadata information.

How should you complete the Web API queries? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 48
Correct answer: Question 48

Explanation:

Entity: LogicalName

Querying the EntityMetadata entity type:

GET [Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='account')

Attribute: LogicalName

Retrieving attributes:

GET [Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='account')/Attributes(

Relationship: SchemaName

Querying relationship metadata:

Entity relationships can also be queried using the RelationshipDefinitions entity set. You can use a query like the following to get the SchemaName property for every relationship.

GET [Organization URI]/api/data/v9.0/RelationshipDefinitions?$select=SchemaName

Global Option Set: Name

Querying Global OptionSets:

GET /api/data/v9.0/GlobalOptionSetDefinitions(Name='metric_goaltype')

Note: Retrieving items by name is generally easier because you probably already have some reference to the metadata item name in your code. The following table lists the alternate key properties for retrieving metadata items by name.

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-metadata-web-api

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.


Question 49
Correct answer: Question 49

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

HOTSPOT

A JavaScript function on a Contact form alerts users to what they need to type, as shown in the JavaScript Code exhibit. (Click the JavaScript Code tab.)

The Business Phone field has the OnChange event handler defined as shown in the Event Handler exhibit. (Click the Event Handler tab.)

Users report that there is incorrect wording on the Contact page, as shown in the Contact exhibit. (Click the Contact tab.)

You need to determine what happens when a user modifies the business phone of a contact record.

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 50
Correct answer: Question 50

Explanation:

Box 1: Yes

setNotification displays an error message for the control to indicate that data isn't valid. When this method is used, a red "X" icon appears next to the control. On Dynamics 365 mobile clients, tapping on the icon will display the message.

Syntax: formContext.getControl(arg).setNotification(message,uniqueId);

Box 2: No

Box 3: Yes

setFormNotification displays form level notifications. You can display any number of notifications and they will be displayed until they are removed using clearFormNotification.

Syntax: formContext.ui.setFormNotification(message, level, uniqueId);

Box 4: No

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui/setformnotification

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/setnotification

Total 350 questions
Go to page: of 35