Free PL-400 Exam Braindumps (page: 49)

Page 49 of 89

You are creating a Power Apps app.
The app must retrieve data from an API that requires two-factor authentication.
You need to configure authentication.
Which type of authentication should you implement?

  1. Server-to-server
  2. API key-based
  3. Basic
  4. OAuth

Answer(s): D

Explanation:

OAuth 2.0 is the industry-standard protocol for authorization. After application users provide credentials to authenticate, OAuth determines whether they are authorized to access the resources.
OAuth enables two-factor authentication (2FA) or certificate-based authentication for server-to-server application scenarios.


Reference:

https://docs.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth



You are creating a canvas app that realtors use to identify neighbors for properties that are for sale.
The OnStart property includes the following code:

ClearCollect(collectNeighborList, Filter(NeighborList, Status = `Active")); ClearCollect
(collectRealtorList,CompanyList);ClearCollect(collectRegions, RegionList)
The app is running slower than expected.
You need to resolve the issue.
What should you do?

  1. Replace all instances of the ClearCollect method with the connect method.
  2. Replace the existing code segment with the following code segment Concurrent (ClearCollect(collectNeighborList, Filter(NeighborList, Status = Activeג€)), ClearCollect(collectRealtorList,CompanyList),ClearCollect(collectRegions, RegionList))
  3. Replace the existing code segment with the following code segment: ClearCollect(collectNeighborList, Filter(NeighborList, Status = Activeג€)); Concurrent(ClearCollect(collectRealtorList,CompanyList)); Concurrent(ClearCollect(collectRegions, RegionList))

Answer(s): B

Explanation:

Optimize the OnStart property -
Use the ClearCollect function to cache data locally if it doesn't change during the user session. Also, use the Concurrent function to load data sources simultaneously; this can cut the amount of time an app needs to load data in half.
Example: Without the Concurrent function, the following formula loads each of four tables one at a time:
ClearCollect( Product, '[SalesLT].[Product]' );
ClearCollect( Customer, '[SalesLT].[Customer]' );
ClearCollect( SalesOrderDetail, '[SalesLT].[SalesOrderDetail]' );
ClearCollect( SalesOrderHeader, '[SalesLT].[SalesOrderHeader]' )
You can enclose the same formula in the Concurrent function to reduce the overall time that the operation needs:
Concurrent(
ClearCollect( Product, '[SalesLT].[Product]' ),
ClearCollect( Customer, '[SalesLT].[Customer]' ),
ClearCollect( SalesOrderDetail, '[SalesLT].[SalesOrderDetail]' ),
ClearCollect( SalesOrderHeader, '[SalesLT].[SalesOrderHeader]' ))


Reference:

https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/performance-tips#optimize-the-onstart-property



DRAG DROP (Drag and Drop is not supported)
You are creating an app that connects to Microsoft Dataverse on a nightly basis. You plan to integrate the app with an external system.
The application must not authenticate by using a Microsoft Azure Active Directory (Azure AD) user account.
You need to enable the application to authenticate to Dataverse.
Which four 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.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Step 1: Register the application in Azure AD with appropriate permissions.
App registration in Azure Active Directory is typically done by ISVs who want to develop external client applications to read and write data in Dataverse.
Registering an app in Azure Active Directory provides you with Application ID and Redirect URI values that ISVs can use in their client application's authentication code.
Step 2: Use the Azure AD application id and secret as credentials in the application.

Add credentials
Credentials are used by confidential client applications that access a web API. Examples of confidential clients are web apps, other web APIs, or service-type and daemon-type applications. Credentials allow your application to authenticate as itself, requiring no interaction from a user at runtime.
You can add both certificates and client secrets (a string) as credentials to your confidential client app registration.
Step 3: Create the application user in Dataverse using the Application User form.
App registration can also be done by an application developer or individual user who is building a client application to connect to and read/write data in Dataverse.
Use the Application ID and Redirect URI values from your registered app in your client application's authentication code to be able to connect to Dataverse environment from your client application, and perform the required operations. Note that if the app is registered in the same tenant as your Dataverse environment, you won't be presented with a consent form when connecting from your client application to your Dataverse environment.
Note: When end users use the ISV's application for the first time to connect to their Dataverse environment by providing their Dataverse credentials, a consent form is presented to the end user. After consenting to use their Dataverse account with the ISV's application, end users can connect to Dataverse environment from external application. The consent form is not displayed again to other users after the first user who has already consented to use the ISV's app. Apps registered in Azure Active Directory are multi-tenant, which implies that other Dataverse users from other tenant can connect to their environment using the ISV's app.
Step 4: Assign a security role to the application user in Dataverse
Grant access to users that already have a Dynamics 365 license
Any user who already has a license for any model-driven app in Dynamics 365 also will be able to access Dynamics 365 Marketing without requiring any additional licenses. All you need to do is assign them the security roles and privileges required to access the Marketing features they need.
Incorrect:
* Grant the Dataverse application user the Access Dynamics 365 as organization users permission in Azure AD.


Reference:

https://docs.microsoft.com/en-us/power-apps/developer/data-platform/walkthrough-register-app-azure-active-directory
https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app https://docs.microsoft.com/en-us/dynamics365/marketing/admin-users-licenses-roles



DRAG DROP (Drag and Drop is not supported)
You are creating a Power Apps Component Framework (PCF) control.
You test the control by using a local test harness.
You need to complete testing.

Which commands should you use? To answer, drag the appropriate commands to the correct functions. Each command 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.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: start npm start
Those two start-s surrounding the npm have completely different meaning. When done this way, a new command prompt window will show up and npm start will run in that additional window:



It'll be the same result you will have the harness started, but, also, your original terminal session will continue to work, and you won't need to open another one.

Box 2: Npm start watch
The following image shows what Visual Studio Code will look like when you use the npm start watch for the DataSetGrid sample:


Launching the test harness in watch mode enables you to quickly see the changes in action. Changes made to any of the following component assets are automatically reflected in the test harness without having to restart it: index.ts file.
Imported modules in index.ts (excluding node_modules).
All of the resources listed in the ControlManifest.Input.xml file, for example, css/DataSetGrid.css or strings/DataSetGrid.1033.resx
Incorrect:
* To start the test harness, you would use the following command: npm start
This is fast and convenient, but this command will lock your terminal session. For example, if you are doing PCF development in Visual Studio Code, here is what you will see in the terminal window:


Reference:

https://docs.microsoft.com/en-us/power-apps/developer/component-framework/debugging-custom-controls
https://www.itaintboring.com/dynamics-crm/test-harness-for-pcf-controls-we-can-also-use-start-npm-start/



Page 49 of 89



Post your Comments and Discuss Microsoft PL-400 exam with other Community members:

Jawad commented on August 30, 2024
Just passed this PL-400 exam.
Anonymous
upvote

Chiranthaka commented on September 20, 2023
very useful.
Anonymous
upvote

Jeya commented on September 13, 2023
its very useful
INDIA
upvote

Chiranthaka commented on September 20, 2023
very useful!
Anonymous
upvote

Chiranthaka commented on September 20, 2023
Very useful!
Anonymous
upvote

Chiranthaka commented on September 20, 2023
Very useful.
Anonymous
upvote

Jeya commented on September 13, 2023
It's Very Useful
INDIA
upvote

HEBA commented on August 06, 2023
MORE QUESTION
EGYPT
upvote

Gurpret commented on May 12, 2022
I just got a 82% on the exam. Passing is 75%.
UNITED STATES
upvote

Armeen commented on April 18, 2022
Did the online exam this morning and passed.
CANADA
upvote

Mona commented on July 06, 2021
I am posting to let everyone know I passed my certification exam ysterday.
INDIA
upvote

Eva commented on May 19, 2021
I found the practice questions very helpful.
NEW ZEALAND
upvote