exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 4 question 37 discussion

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

You deploy an Azure App Service web app. You create an app registration for the app in Azure Active Directory (Azure AD) and Twitter.
The app must authenticate users and must use SSL for all communications. The app must use Twitter as the identity provider.
You need to validate the Azure AD request in the app code.
What should you validate?

  • A. ID token header
  • B. ID token signature
  • C. HTTP response code
  • D. Tenant ID
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
RaghavMGupta
Highly Voted 2 years, 1 month ago
Selected Answer: B
To validate the Azure AD request in the app code when using Twitter as the identity provider, you should validate the ID token signature (option B). The ID token is a JSON Web Token (JWT) that contains claims about the user. It is signed by Azure AD using a private key, and the signature can be verified using the corresponding public key. Validating the ID token signature ensures that the token was issued by a trusted source and that it has not been tampered with in transit. Option A, validating the ID token header, is not sufficient for validating the entire ID token. The header only contains metadata about the token, such as the algorithm used for signing. Option C, validating the HTTP response code, is unrelated to validating the ID token. Option D, validating the tenant ID, is important for ensuring that the app is only accepting tokens from a trusted Azure AD tenant, but it does not ensure the integrity of the token itself.
upvoted 18 times
...
elequiel
Highly Voted 2 years, 7 months ago
Got it in exam 20/10/2022
upvoted 6 times
OPT_001122
2 years, 7 months ago
Thanks for mentioning date https://www.examtopics.com/user/elequiel/
upvoted 1 times
...
...
Vichu_1607
Most Recent 7 months, 1 week ago
Selected Answer: B
ID Token Signature: Validating the signature ensures the token's authenticity and integrity, confirming it was issued by Azure AD and has not been tampered with.
upvoted 1 times
...
FeriAZ
1 year, 4 months ago
B. ID Token Signature Explanation: The ID token signature is used to verify that the token hasn't been tampered with. It's a crucial part of a JWT, ensuring the token's integrity and authenticity. Relevance: Validating the ID token signature is a key step in ensuring that the token is indeed from the trusted identity provider (in this case, Azure AD) and has not been altered. It's essential for security.
upvoted 1 times
...
Ciupaz
1 year, 8 months ago
Selected Answer: B
Validating the ID token signature ensures that the token is valid and hasn't been altered.
upvoted 1 times
...
kabbas
1 year, 11 months ago
Selected Answer: B
A JWT contains three segments, a header, a body, and a signature. The signature segment can be used to validate the authenticity of the token so that it can be trusted by your application
upvoted 2 times
...
[Removed]
2 years, 2 months ago
Selected Answer: B
B. ID token signature
upvoted 3 times
...
[Removed]
2 years, 3 months ago
Current answer is correct (A). You can edit the token header in order to include the source. You cannot change the signature. check it out here: jwt.io
upvoted 1 times
...
Esward
2 years, 4 months ago
B is the correct answer https://docs.microsoft.com/en-us/azure/active-directory-b2c/tokens-overview#validation
upvoted 3 times
...
alexein74
2 years, 4 months ago
Selected Answer: B
B. ID token signature When validating an Azure AD request in the app code, it is important to validate the ID token signature to ensure the authenticity of the token. The ID token contains information about the authenticated user, including the user's identity and any claims or permissions associated with the user. By validating the signature, you can ensure that the token has not been tampered with and that it was indeed issued by Azure AD.
upvoted 1 times
...
ExamTopicsAnkur
2 years, 6 months ago
Selected Answer: B
https://docs.microsoft.com/en-us/azure/active-directory-b2c/tokens-overview#validation When your application or API receives an ID token, it must validate the signature to prove that the token is authentic.
upvoted 3 times
...
hubekpeter
2 years, 6 months ago
Selected Answer: B
Id token, in another words, you are validating JWT token.
upvoted 2 times
...
bertwin
2 years, 6 months ago
Selected Answer: B
Signature is for validation
upvoted 3 times
...
OPT_001122
2 years, 7 months ago
Selected Answer: B
B seems the correct answer
upvoted 2 times
...
alany2000
2 years, 8 months ago
Selected Answer: B
B https://docs.microsoft.com/en-us/azure/active-directory-b2c/tokens-overview#validation
upvoted 4 times
...
Praks13
2 years, 9 months ago
I would say it's B. https://docs.microsoft.com/en-us/azure/active-directory-b2c/tokens-overview#validation
upvoted 1 times
...
finnishr
2 years, 9 months ago
Selected Answer: B
The answer is definitely b.
upvoted 3 times
qwerty112233
2 years, 9 months ago
why? any link?
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 ...