exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 5 question 17 discussion

Actual exam question from Microsoft's AZ-204
Question #: 17
Topic #: 5
[All AZ-204 Questions]

DRAG DROP -
You are developing an application to retrieve user profile information. The application will use the Microsoft Graph SDK.
The app must retrieve user profile information by using a Microsoft Graph API call.
You need to call the Microsoft Graph API from the application.
In which order should you perform the actions? To answer, move all 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 with the Microsoft identity platform.
To authenticate with the Microsoft identity platform endpoint, you must first register your app at the Azure app registration portal
Step 2: Build a client by using the client app ID
Step 3: Create an authentication provider
Create an authentication provider by passing in a client application and graph scopes.
Code example:
DeviceCodeProvider authProvider = new DeviceCodeProvider(publicClientApplication, graphScopes);
// Create a new instance of GraphServiceClient with the authentication provider.
GraphServiceClient graphClient = new GraphServiceClient(authProvider);
Step 4: Create a new instance of the GraphServiceClient
Step 5: Invoke the request to the Microsoft Graph API
Reference:
https://docs.microsoft.com/en-us/graph/auth-v2-service
https://docs.microsoft.com/en-us/graph/sdks/create-client

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
kishe
Highly Voted 3 years, 11 months ago
Answer is correct
upvoted 48 times
warchoon
2 years, 1 month ago
Answer is correct, but the question is not. 3,4 are the parts of 2 not actually steps
upvoted 4 times
...
...
BishopeL
Highly Voted 3 years, 8 months ago
I got this in my exam this morning. The provided answer is correct.
upvoted 34 times
...
Vichu_1607
Most Recent 5 months, 2 weeks ago
d. Register the application with Microsoft identity platform e. Build a Client by using the client app ID a. Create an authentication provider b. Create a new instance of the GraphServiceClient c. Invoke the request to the Microsoft Graph API
upvoted 2 times
...
BaoNguyen2411
1 year, 9 months ago
got this question on 29/06/2023
upvoted 5 times
...
warchoon
2 years, 1 month ago
Check out the JavaScript example https://learn.microsoft.com/en-us/graph/sdks/create-client?tabs=Javascript The C# sample does not clearly describe the authentication provider.
upvoted 2 times
florianwicher
2 months, 3 weeks ago
Thanks. In languages other than TypeScript, the "authentication provider" seems to not exist at all (anymore?)
upvoted 1 times
...
florianwicher
2 months, 3 weeks ago
Thanks. In languages other than TypeScript, the "authentication provider" seems to not exist at all (anymore?)
upvoted 1 times
...
...
OPT_001122
2 years, 4 months ago
The answer is correct - RBCCI
upvoted 12 times
Jay456
4 months, 4 weeks ago
It should be 42
upvoted 1 times
...
AAcademy
2 years, 4 months ago
I lov that, thanks
upvoted 3 times
...
NombreFalso
2 years, 2 months ago
Hahaha, that's so classic, creating acronyms for memorizing stuff like this.
upvoted 4 times
...
...
TheExamMaster2020
2 years, 5 months ago
Did my exam on 15th November 2022. This question was on it.
upvoted 7 times
OPT_001122
2 years, 5 months ago
Thanks for mentioning the date
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