The correct answer is that this configuration allows cross-origin requests from app.contoso.com and portal.contoso.com without credentials. This is because the ARM template snippet sets `allowedOrigins` to those two specific domains while explicitly setting `supportCredentials` to `false`. According to the CORS specification, when `supportCredentials` is false, the browser will permit the cross-origin HTTP requests from the listed origins, but it will not include any cookies, HTTP authentication headers, or client-side certificates in those requests, effectively treating them as anonymous. On the Microsoft Azure Developer Associate AZ-204 exam, this scenario tests your understanding of how CORS interacts with credential propagation in App Services, often appearing as a trap where candidates mistakenly assume that setting `allowedOrigins` alone implies credential support. A common memory tip is to think of `supportCredentials` as the "cookie gatekeeper": when it's false, the gate stays closed, so even though the origins are allowed through, no credentials can follow.
AZ-204 Develop Azure compute solutions Practice Question
This AZ-204 practice question tests your understanding of develop azure compute solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Allows cross-origin requests from app.contoso.com and portal.contoso.com without credentials.
Option A is correct because the ARM template snippet sets `allowedOrigins` to specific domains (`app.contoso.com` and `portal.contoso.com`) and `supportCredentials` to `false`. This configuration allows cross-origin requests from those two origins but does not include credentials (cookies, HTTP authentication, or client-side certificates) in the requests, as per the CORS specification.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✓
Allows cross-origin requests from app.contoso.com and portal.contoso.com without credentials.
Why this is correct
CORS allows listed origins, and supportCredentials: false prevents credentials.
Related concept
Read the scenario before looking for a memorised answer.
✗
Configures the App Service to require authentication for cross-origin requests.
Why it's wrong here
CORS settings do not enforce authentication.
✗
Enables CORS for all origins by setting allowedOrigins to a wildcard.
Why it's wrong here
The snippet uses specific origins, not a wildcard.
✗
Blocks all cross-origin requests because supportCredentials is false.
Why it's wrong here
supportCredentials false does not block all origins.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse `supportCredentials: false` with blocking all cross-origin requests, when in fact it only disallows credentials while still allowing non-credentialed requests from the specified origins.
Detailed technical explanation
How to think about this question
Under the hood, the App Service CORS feature adds the `Access-Control-Allow-Origin` header to responses for allowed origins, and `supportCredentials` controls the `Access-Control-Allow-Credentials` header. When `supportCredentials` is `false`, the browser will not send credentials (e.g., cookies) with the cross-origin request, even if the origin is allowed. A real-world scenario is a public API that needs to be consumed by specific front-end apps without exposing user-specific data via cookies.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this AZ-204 question in full detail.
Develop Azure compute solutions — This question tests Develop Azure compute solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Allows cross-origin requests from app.contoso.com and portal.contoso.com without credentials. — Option A is correct because the ARM template snippet sets `allowedOrigins` to specific domains (`app.contoso.com` and `portal.contoso.com`) and `supportCredentials` to `false`. This configuration allows cross-origin requests from those two origins but does not include credentials (cookies, HTTP authentication, or client-side certificates) in the requests, as per the CORS specification.
What should I do if I get this AZ-204 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.