Question 593 of 997
Implement Azure securitymediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to configure a validate-jwt policy in APIM inbound processing. This is the most efficient approach because it validates the OAuth 2.0 token at the Azure API Management gateway, offloading security enforcement from the backend and centralizing authorization without requiring any code changes to the API itself. On the Microsoft Azure Developer Associate AZ-204 exam, this scenario tests your understanding of policy-based security in APIM, often appearing as a contrast to options like modifying backend code or using Azure AD app roles directly. A common trap is choosing to validate the token in the backend code, which defeats the purpose of using APIM as a security layer. Remember the memory tip: “Validate at the gate, don’t make the backend wait”—the inbound processing section of APIM policies is where token validation belongs for clean, centralized control.

AZ-204 Implement Azure security Practice Question

This AZ-204 practice question tests your understanding of implement azure security. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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.

You are developing an API that processes sensitive personal data. The API is exposed via Azure API Management (APIM). You need to ensure that only authorized applications can call the API, and you want to validate the token at the APIM gateway without modifying the backend code. What is the most efficient approach?

Question 1mediummultiple choice
Study the full multicast explanation →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure a validate-jwt policy in APIM inbound processing

The validate-jwt policy in APIM's inbound processing validates the OAuth 2.0 token at the gateway level, ensuring only authorized applications can call the API without modifying backend code. This is the most efficient approach because it offloads token validation to APIM, reducing backend complexity and centralizing security enforcement.

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.

  • Implement token validation in the backend API code

    Why it's wrong here

    Requires modifying backend; not the most efficient as it doesn't leverage APIM.

  • Use APIM's OAuth 2.0 authorization server

    Why it's wrong here

    This is for the authorization code flow, not for validating incoming tokens.

  • Use subscription keys in APIM

    Why it's wrong here

    Subscription keys provide basic API access control but not token validation.

  • Configure a validate-jwt policy in APIM inbound processing

    Why this is correct

    Validates JWT token at APIM gateway without backend changes.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse APIM's OAuth 2.0 authorization server (which issues tokens) with the validate-jwt policy (which validates tokens), leading them to choose Option B instead of D.

Detailed technical explanation

How to think about this question

The validate-jwt policy extracts the JWT from the Authorization header, validates its signature using the configured OpenID Connect metadata endpoint or explicit signing keys, and checks claims such as issuer, audience, and expiration. Under the hood, APIM caches the OpenID Connect discovery document to reduce latency, and the policy can be combined with rate limiting or IP filtering for layered security. In a real-world scenario, this allows a healthcare API to validate tokens issued by Azure AD B2C without exposing backend services to token parsing logic.

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 cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-204 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-204 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-204 question test?

Implement Azure security — This question tests Implement Azure security — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Configure a validate-jwt policy in APIM inbound processing — The validate-jwt policy in APIM's inbound processing validates the OAuth 2.0 token at the gateway level, ensuring only authorized applications can call the API without modifying backend code. This is the most efficient approach because it offloads token validation to APIM, reducing backend complexity and centralizing security enforcement.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

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.

Loading comments…

Sign in to join the discussion.

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.