exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 33 discussion

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

HOTSPOT
-

You are developing an Azure Static Web app that contains training materials for a tool company. Each tool’s training material is contained in a static web page that is linked from the tool’s publicly available description page.

A user must be authenticated using Azure AD prior to viewing training.

You need to ensure that the user can view training material pages after authentication.

How should you complete the configuration file? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
chettir01
Highly Voted 1 year, 12 months ago
That's correct : https://learn.microsoft.com/en-us/azure/static-web-apps/configuration
upvoted 9 times
JustHereToLearn
1 year, 11 months ago
How that answer is correct? The first two are okay but add does not make sense it should be "aad" see reference https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#restrict-access-to-entire-application Also not sure what the last answer is but it is surely not referrer as there no such thing I could find in the docs.
upvoted 5 times
warchoon
1 year, 10 months ago
looks like after scan typo
upvoted 5 times
...
alejary
1 year, 11 months ago
I think this should look like this (.referrer will be replaced with the URL of original request): "responseOverrides": { "401": { "statusCode": "302", "redirect": "/.auth/login/aad?post_login_redirect_uri=.referrer" } }
upvoted 38 times
...
...
...
onlyforheros
Highly Voted 9 months, 3 weeks ago
Got it in the exam 13.03.2024. Score: 910. Went with the give answer
upvoted 6 times
...
Mirdwal
Most Recent 1 month, 4 weeks ago
Top Dropdown – responseOverrides This section is used to override responses for certain HTTP status codes (like 401 Unauthorized). Next Dropdown – 401 You want to catch 401 Unauthorized errors, which occur when a user isn't authenticated, and redirect them to login. Redirect Path – /.auth/login/aad This is the correct path to redirect users to Azure Active Directory login for Static Web Apps. Status Code – 302 This means "Found", and it tells the browser to redirect the user to the login page.
upvoted 2 times
...
egaws
10 months, 3 weeks ago
Overrides Aad redirect https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#restrict-access-to-entire-application
upvoted 1 times
...
Ciupaz
1 year ago
HTTP 401 -> Unauthorized
upvoted 4 times
...
bgbgvfvf
1 year ago
answer is correct https://learn.microsoft.com/en-us/azure/static-web-apps/configuration
upvoted 1 times
...
trueinam
1 year ago
This question was on exam 2023-12-21.
upvoted 3 times
...
arunkuml
1 year ago
Got it in the exam 14/12/23. Went with given answer. All questions are from ExamTopics. Case study - VanArsdel, Ltd (11 questions)
upvoted 2 times
...
dddddd111
1 year, 1 month ago
FYI Azure Active Directory (aad) is replaced with MS Entra ID as of Nov14,2023.
upvoted 2 times
dddddd111
1 year, 1 month ago
Acronym usage is not encouraged, but if you must replace AAD with an acronym due to space limitations, use ME-ID. https://learn.microsoft.com/en-us/entra/fundamentals/new-name
upvoted 1 times
...
...
p2006
1 year, 3 months ago
Got on 9/25/2023 responseoverrides 401 aad .referrer
upvoted 5 times
...
RuffBoii
1 year, 3 months ago
Had this on my exam today. Went with the given answer.
upvoted 1 times
...
mihailos
1 year, 4 months ago
Got it in exam 28/08/23. Went with proposed answer. Scored 912
upvoted 2 times
Masood07
1 year, 1 month ago
How do you all copy during the exam. please mention.
upvoted 2 times
...
...
ReyPirata
1 year, 4 months ago
This was on the exam (08/20/2023). Went with proposed. Scored 925
upvoted 2 times
...
juanckar
1 year, 6 months ago
This was on the exam (July 2023). Went with proposed. Scored 917
upvoted 4 times
...
deathRac3
1 year, 7 months ago
Question was there for me on 29th May 2023
upvoted 4 times
...
narenazure
1 year, 8 months ago
https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#restrict-access-to-entire-application "responseOverrides": { "401": { "statusCode": 302, "redirect": "/.auth/login/aad" }
upvoted 4 times
...
ucskips
1 year, 10 months ago
add is meant to be aad. For Azure Active Directory Response overrides make a custom response instead of error codes 400, 401, 403, 404
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 ...