exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 13 question 4 discussion

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

You need to authenticate the user to the corporate website as indicated by the architectural diagram.
Which two values should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. ID token signature
  • B. ID token claims
  • C. HTTP response code
  • D. Azure AD endpoint URI
  • E. Azure AD tenant ID
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
trance13
Highly Voted 4 years, 2 months ago
You need ID Token Claims for authorisation. You need to validate ID Token signature as a part of authentication. So the correct answer is A. Having both D & E does not make sense, URI has tenant ID in it, so answer D.
upvoted 40 times
surprise0011
2 years, 2 months ago
received 2023-04-17 went with given answer, score 926
upvoted 5 times
...
surprise0011
2 years, 2 months ago
couldn't agree more. ID Token signature should be validated to Authenticate User To get token you need to make a request to Microsoft Identity Platform Endpoint which also contains tenant. So most appropriate are A and D
upvoted 2 times
...
...
faizalzain
Highly Voted 4 years, 1 month ago
it should be D & E
upvoted 21 times
...
cmmr
Most Recent 6 months, 2 weeks ago
Selected Answer: AB
https://learn.microsoft.com/en-us/entra/identity-platform/claims-validation To validate the ID token we need to validate its signature (to ensure it has not been tampered= and we need to validate the AUD claim (The application ID is sent as the audience (‘aud’) claim in the access token.) So I believe it's A and B
upvoted 1 times
...
overhill
6 months, 3 weeks ago
For Authentication is DE, you need the endpoint and the tenant you are authenticating against Post Authentication is AB post autentication we will use claims and can use signature to verify the response so it depends what the guys are asking. I think they are asking what will you use to authenticate and in that case it has to be DE. not AB which you don't know prior to authenticate. the Signature and claims are received after sending the authentication request when we perform a id_token request
upvoted 1 times
overhill
6 months, 3 weeks ago
I Was wrong for a few reasons. It is not the URL but rather the URI, which means that D) already contains E) That said in order for the authentication to be completed the signature needs to be veridfied and that is done comparing the response with the id_token signature
upvoted 1 times
...
...
ptpt1
7 months, 1 week ago
Selected Answer: DE
is the right answer
upvoted 2 times
...
oskx2
1 year, 2 months ago
I think the correct answer is A and B based on the following: https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc#validate-the-id-token "Receiving an ID token in your app might not always be sufficient to fully authenticate the user. You might also need to validate the ID token's signature and verify its claims per your app's requirements." Since the app Id is mentioned in the requirements, I assume that you need to validate the signature and the aud claim
upvoted 1 times
...
AlwaysInvade
1 year, 7 months ago
Selected Answer: AD
D contains E
upvoted 2 times
...
Vmwarevirtual
2 years ago
Appeared in exam I took at 27-5-2023 I chose A and D
upvoted 4 times
...
sriazure213
2 years, 5 months ago
This question came on jan9,2023. Choose d,e. Score 834
upvoted 2 times
...
hubekpeter
2 years, 6 months ago
Selected Answer: AE
Guys this is a standard Sign-in flow. I think the correct answer is AE. First you need to know the tenant it so you'll be able to send a sign in request GET https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize? and in reply you'll get a id_token (JWT), which in turn can be used to get an access token to UserInfo endpoint. I'm not 100% sure, but this way, it makes sense to me.
upvoted 2 times
warchoon
2 years, 2 months ago
If only the solution is multitenant. Which is not.
upvoted 2 times
...
...
OPT_001122
2 years, 7 months ago
Selected Answer: AD
correct ans
upvoted 3 times
...
coffecold
2 years, 8 months ago
Answer A+ B "Each correct answer presents part of the solution" From a JWT the header and signature are used to verify the authenticity of the token. The signature is raw information to verify so A is correct. The claims in the header you need to validate this signature of the token , especially the 'kid' claim. So you need header claims (these are token claims, answer B) as well. https://learn.microsoft.com/en-us/azure/active-directory/develop/id-tokens https://learn.microsoft.com/en-us/azure/active-directory/develop/access-tokens
upvoted 1 times
hubekpeter
2 years, 6 months ago
You're getting a claims from the auth endpoint in turn.
upvoted 1 times
...
...
gmishra88
2 years, 8 months ago
"Which two values should you use?" Where, Microsoft, where? While forwarding the request to an authorize endpoint to retrieve an ID token? Or while validating the id-token-signature? The question creator had something in his mind when he suddenly stopped thinking. We have to guess where he stopped. This is a psychology question
upvoted 4 times
gmishra88
2 years, 8 months ago
I want to go for ID token signature and the token-claims as the answer. To check authentication, one need to validate first the signature to be sure it is correct. Check the audience is the the application and then of course check the service principal (combination of oid and sub claims). But all these are in the ID token (claims and the signature). So I just need the ID token.
upvoted 1 times
gmishra88
2 years, 8 months ago
So, it is either AB or DE at least. Just the signature is not enough for authentication, you need also the claims.
upvoted 1 times
...
gmishra88
2 years, 8 months ago
wait a minute, I'm overthinking. I do not think this certification department from Microsoft understands difference between Authentication and Authorization. So, right answer at the level of Microsoft intelligence is DE. Look at the "steps to authenticate" they mention access token there. That clearly shows they do not understand the authentications steps. Because it uses an access_token it cannot be A and B.
upvoted 1 times
damianadalid
2 years ago
Can't we have claims in access tokens? https://learn.microsoft.com/en-us/azure/active-directory/develop/access-tokens#claims-in-access-tokens
upvoted 1 times
damianadalid
2 years ago
..But the possible answers mention ID token signature/claims... Nevermind
upvoted 1 times
...
...
...
...
...
OlivierPaudex
2 years, 10 months ago
1. The user have to authenticate clicking on a link in the web app. It means that the "tenant ID" of the AD is used here, not the URI. 2. You have to use the aud claim to ensure that the user intended to call the application. If the identifier of the resource isn't in the aud claim, reject it. https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens#validating-tokens In my opinion, the right answers are: B: ID token claims E: Azure AD tenant ID Not sure at all, but there was the right options choose by others exam website.
upvoted 3 times
...
ChrisEvans
3 years, 2 months ago
Selected Answer: AD
Claims are for authorization. The signature is used for authentication, and the endpoint url includes the tenant id, so A&D are correct by process of elimination.
upvoted 5 times
...
ReniRechner
3 years, 3 months ago
Selected Answer: AD
Authentication is not sign in! So for example API Management needs to check whether the user is as stated. So it needs * D to find the correct authentication "service". * And to check if the user is as stated "A" is needed, since this is the only option that contains information about the user. B is not viable since the claims alone are not trustworthy. I don't know why E would help and it can surely not replace A or D. C is surely not needed since it contains neither information about the user nor the AD.
upvoted 4 times
warchoon
2 years, 2 months ago
https://learn.microsoft.com/en-us/azure/app-service/overview-authentication-authorization#authentication-flow:~:text=Client%20code%20posts%20token%20from%20provider%20to%20/.auth/login/%3Cprovider%3E%20for%20validation.
upvoted 1 times
...
...
chingdm
3 years, 3 months ago
To authenticate, you need to know the url of auth service api and the tenant id i.e. https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize? client_id=6731de76-14a6-49ae-97bc-6eba6914391e &response_type=code &redirect_uri=http%3A%2F%2Flocalhost%2Fmyapp%2F &response_mode=query after visiting that url, it will be presented the AD consent and login, then auth code is appended to the redirect url, which can be used to get the access token. so answer is D and E.
upvoted 2 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 ...