ExamGecko
Home Home / Microsoft / PL-400

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

Question list
Search
Search

List of questions

Search

Related questions











DRAG DROP

You are developing a new Power Apps Component Framework (PCF) control.

The control must be deployed to a development environment by using the Power Apps CLI and a new solution.

You need to deploy the PCF control.

Which four actions should you perform in sequence? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.


Question 151
Correct answer: Question 151

Explanation:

Step 1: Create a solution

Create a new solutions project using the following command. The solution project is used for bundling the code component into a solution zip file that is used for importing into Dataverse. pac solution init --publisher-name developer --publisher-prefix dev

Step 2: Add a solution reference to the project

Once the new solution project is created, refer the Solutions folder to the location where the created sample component is located. You can add the reference using the command shown below. This reference informs the solution project about which code components should be added during the build. You can add references to multiple components in a single solution project. pac solution add-reference --path c:\downloads\mysamplecomponent

Step 3: Build the project and solution

To generate a zip file from the solution project, go into your solution project directory and build the project using the following command. msbuild /t:build /restore Step 4: Deploy the solution

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/import-custom-controls

DRAG DROP

You create solutions in a development environment and export the solution for testing by various departments in your organization. Power users in each department control the testing environments.

You must display department-specific wording at the beginning of any custom notifications that are displayed in testing environments.

You need to package solutions to ensure that the power users can customize the notification content.

Which three actions should you perform in sequence inside a solution? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Question 152
Correct answer: Question 152

Explanation:

Step 1: Create an empty environment variable named Custom Text Placeholder.

Applications often require different configuration settings or input parameters when deployed to different environments.

Environment variables store the parameter keys and values, which then serve as input to various other application objects.

Separating the parameters from the consuming objects allows you to change the values within the same environment or when you migrate solutions to other environments.

Step 2: Create a function to retrieve the value from the custom text placeholder and display the notification.

Step 3: Export the solution

You can manually export solutions. Microsoft recommends that you create an unmanaged solution to use for exporting your customizations, and then export your customizations periodically so that you have a backup in case anything happens.

Reference: https://docs.microsoft.com/en-us/powerapps/maker/data-platform/environmentvariables

https://docs.microsoft.com/en-us/powerapps/maker/data-platform/export-solutions

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than once correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You are developing a model-driven app for a company.

When you create a new Account record, you must automatically display a form to collect data that is needed to create a

Contact record. The form must switch to the appropriate form layout based on the contact type.

You open the Contact form by using JavaScript. You pass the contact type information to the form by using the

Xrm.Navigation.openForm function. An OnLoad event handler in the Contact form processes the data and shows only the appropriate sections of the form for the given contact type.

You need to configure the receiving form to accept the data parameter.

Solution: In the form editor, add a web resource that sets formContext.data.attributes.

Does the solution meet the goal?

A.

Yes

A.

Yes

Answers
B.

No

B.

No

Answers
Suggested answer: B

Explanation:

By default, model-driven apps allows a specified set of query string parameters to be passed to a form. You use these parameters to set default values when you create a new record in the application. Each parameter must use a standard naming convention that includes a reference to the column logical name.

There are two ways to specify which query string parameters will be accepted by the form: Edit form properties Edit form

XML

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/configure-form-accept-custom-querystring- parameters

The communication department for a company plans to add a publicly accessible survey page to the company's public website.

You must add the new survey page to the company's public website and capture data from the page to a Common Data

Service environment.

Explicit user credentials must not be required to write survey data to Common Data Service.

You need to implement authentication.

Which authentication mechanism should you implement?

A.

Microsoft 365

A.

Microsoft 365

Answers
B.

X.509 certificate

B.

X.509 certificate

Answers
C.

OAuth 2.0

C.

OAuth 2.0

Answers
D.

Claims-based

D.

Claims-based

Answers
Suggested answer: C

Explanation:

OAuth is the preferred means to authenticate because it provides access to both the OData RESTful web services (Web API and OData global Discovery service) as well as to the SOAP web services (Organization service and Discovery service).

OAuth is also required to support:

Azure Active Directory configurations for conditional access, such as Two-factor Authentication (2FA) Use of client secrets to enable server-to-server authentication scenarios.

Cross-Origin Resource Sharing (CORS) to connect a Single-page Application (SPA)

Incorrect Answers:

A: Using Microsoft 365 authentication does not require that your register your applications as OAuth does. You must simply provide a User Principal Name (UPN) and password for a valid user.

Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/authentication

DRAG DROP

You are developing a Power Platform app for a school. The school plans to use the app to gather information about classes and students.

You must design a plug-in for the app. You must store data about students in the Contacts table and store data about classes in a custom table.

You need to select the stage in the event pipeline for each function.

Which stages should you use? To answer, drag the appropriate plug-in stages to the correct functions. Each plug-in stage 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 155
Correct answer: Question 155

Explanation:

Box 1: PreValidation

For the initial operation, this stage will occur before the main system operation.

This provides an opportunity to include logic to cancel the operation before the database transaction.

Box 2: PreOperation

Occurs before the main system operation and within the database transaction.

If you want to change any values for an entity included in the message, you should do it here.

Avoid cancelling an operation here. Canceling will trigger a rollback of the transaction and have significant performance impact.

Box 3: PostOperation

Occurs after the main system operation and within the database transaction.

Use this stage to modify any properties of the message before it is returned to the caller.

Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/event-framework

DRAG DROP

A company uses Dynamics 365 Sales.

Sales commission must be calculated when an order is placed. You create an Azure Function to perform the calculation. The

Azure Function has an HTTP trigger.

You need to configure the Plug-in Registration tool to send data to the Azure Function when an order is placed. You open the Plug-in Registration tool and connect to Dynamics 365 Sales.

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

Explanation:

Step 1:SelectRegister New Web Hook.

Configure Dynamics 365 Sales to Call Your Webhook in Azure Functions 1. Open the Plug-in Registration Tool and connect to your organization. 2. Select Register->Register New Web Hook

Step 2: Enter the endpoint URL

Step 3: Register a New Step for Create of SalesOrder.

Register a new webhook, and then tie that webhook to an event in Dynamics 365 Sales. Select your newly registered webhook, right-click it, and then choose "Register New Step." Note that the webhook here is set to execute whenever a change to an account record is detected within Dynamics 365 Sales.

Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in

A company plans to replicate a Dynamics 365 Sales database into an Azure SQL Database instance for reporting purposes.

The Data Export Service solution has been installed.

You need to configure the Data Export service.

Which three actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.

Enable auditing for all entities that must be replicated to Azure SQL Database.

A.

Enable auditing for all entities that must be replicated to Azure SQL Database.

Answers
B.

Create an export profile that specifies all the entities that must be replicated.

B.

Create an export profile that specifies all the entities that must be replicated.

Answers
C.

Set up server-based integration.

C.

Set up server-based integration.

Answers
D.

Enable change tracking for all entities that must be replicated to Azure SQL Database.

D.

Enable change tracking for all entities that must be replicated to Azure SQL Database.

Answers
E.

Create an Azure SQL Database service in the same tenant as the Dynamics 365 Sales environment.

E.

Create an Azure SQL Database service in the same tenant as the Dynamics 365 Sales environment.

Answers
Suggested answer: B, D, E

Explanation:

Reference: https://docs.microsoft.com/en-us/power-platform/admin/replicate-data-microsoft-azure-sql-database

A company is migrating from an on-premises Dynamics 365 installation to a Power Platform solution. You are creating plugins for the new solution.

You need to register the plug-ins.

Which isolation mode should you use?

A.

None

A.

None

Answers
B.

Global Assembly Cache (GAC)

B.

Global Assembly Cache (GAC)

Answers
C.

Sandbox

C.

Sandbox

Answers
D.

Disk

D.

Disk

Answers
Suggested answer: C

Explanation:

You will find options related to the isolation mode and location for the assembly. These refer to options that apply to on-premise deployments. Dataverse is not available for on-premises deployments, so you will always accept the default options of SandBox and Database for these options.

Reference:

https://docs.microsoft.com/en-us/powerapps/developer/data-platform/register-plug-in

An organization uses a public-facing Power Apps portal.

You need to change the layout of a specific web page.

What are two possible ways to achieve the goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Select the Portal Management app and then select Edit.

A.

Select the Portal Management app and then select Edit.

Answers
B.

Select the Portal Management app and then select Play.

B.

Select the Portal Management app and then select Play.

Answers
C.

Select the portal app and then select Manage.

C.

Select the portal app and then select Manage.

Answers
D.

Select the portal app and then select Edit.

D.

Select the portal app and then select Edit.

Answers
Suggested answer: A, D

Explanation:

A: The Portal Management app lets you do advanced configuration actions on your portal.

1. Open the Portal Management app.

2. Go to Portals > Web Pages.

3. To edit an existing web page, select the web page name.

4. Enter appropriate values in the fields.

5. Select Save & Close.

D: To use the WYSIWYG editor:

1. Edit the portal to open it in Power Apps portals Studio.

2. Select the page on which you want to add the component.

3. Select an editable element on the canvas.

Reference: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/web-page https://docs.microsoft.com/en- us/powerapps/maker/portals/compose-page

You are developing a model-driven app. The app uses data from two custom tables. The tables have a parent-child relationship. The parent record form contains a subgrid that displays the child records.

When creating a new child record from the parent form, data must automatically populate in the child record form to reduce data input errors.

You need to implement the solution.

What should you do?

A.

Use a Power Automate flow to read data from the parent record and update the child record upon creation.

A.

Use a Power Automate flow to read data from the parent record and update the child record upon creation.

Answers
B.

Map table columns from the parent record to the child record.

B.

Map table columns from the parent record to the child record.

Answers
C.

Create a business rule that sets the default values on the child record fields to values from the parent record.

C.

Create a business rule that sets the default values on the child record fields to values from the parent record.

Answers
D.

Include a quick view form on the child record showing the data from the parent record.

D.

Include a quick view form on the child record showing the data from the parent record.

Answers
Suggested answer: B

Explanation:

A subgrid exists within a main form and let app users view data within a Dataverse table, typically related to the record currently being reviewed.

Reference:

https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/sub-grid-properties-legacy

Total 350 questions
Go to page: of 35