exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 31 discussion

Actual exam question from Microsoft's PL-400
Question #: 31
Topic #: 3
[All PL-400 Questions]

DRAG DROP -
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:

Show Suggested Answer Hide Answer
Suggested Answer:
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Kunterbunt
Highly Voted 1 year, 7 months ago
Register App Create AppUser Assign Role Use Id and Secret
upvoted 30 times
northstar88
1 year, 7 months ago
It's what I usually do too.
upvoted 2 times
...
...
jkaur
Most Recent 8 months, 2 weeks ago
Register App Create AppUser Assign Role Use Id and Secret
upvoted 2 times
...
DummyTest1
10 months ago
Provided answer is incorrect. Following is the correct sequence 1) Register App with required permision in Azure AD 2) Create the Application User 3) Assign an appropriate security role to the Application User 4) Please App ID and Secret in order to perform the nightly connect to Dataverse.
upvoted 3 times
...
V05
1 year, 3 months ago
Register App Create AppUser Assign Role Use Id and Secret from App registered link: https://d365demystified.com/2022/08/09/authenticate-dataverse-connector-using-service-principal-in-a-power-automate-flow/
upvoted 3 times
Juan0414
1 month, 3 weeks ago
I replicated this and it worked!!
upvoted 1 times
...
...
EssaKhader
1 year, 7 months ago
this answer is correct ??!
upvoted 1 times
Vinodds
1 year, 7 months ago
no, below sequence is correct. same is also mentioned in above comment. Register App Create AppUser Assign Role Use Id and Secret
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago