Courseiva
Develop for Azure storagemediumDrag & DropObjective-mapped

AZ-204 Develop for Azure storage Practice Question

Arrange the steps to secure an Azure API Management API using OAuth 2.0 with Azure AD in the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

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

Register an application in Azure AD, then configure API Management to use OAuth 2.0, then add the validate-jwt policy to the API, then configure the product to require OAuth 2.0, then test the setup.

First register app in Azure AD, configure API Management with OAuth, add validate-jwt policy, configure product, test.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Register an application in Azure AD, then configure API Management to use OAuth 2.0, then add the validate-jwt policy to the API, then configure the product to require OAuth 2.0, then test the setup.

    Why this is correct

    This is the correct order because the app must be registered first to obtain the necessary credentials and endpoints. Then API Management must be configured to trust that app as an OAuth authority. The validate-jwt policy is added to enforce token validation. The product is configured to require OAuth to control access. Finally, testing verifies the entire flow.

  • Configure API Management to use OAuth 2.0, then register an application in Azure AD, then add the validate-jwt policy to the API, then configure the product to require OAuth 2.0, then test the setup.

    Why it's wrong here

    This sequence is incorrect because configuring API Management's OAuth 2.0 provider necessitates specific details obtained from an Azure AD application registration. Essential parameters like the Client ID (Application ID), Authorization endpoint URL, and Token endpoint URL are generated when the application is registered in Azure AD. Attempting to configure API Management's OAuth settings before these values exist would lead to an incomplete or invalid configuration, preventing successful token acquisition and validation.

  • Register an application in Azure AD, then add the validate-jwt policy to the API, then configure API Management to use OAuth 2.0, then configure the product to require OAuth 2.0, then test the setup.

    Why it's wrong here

    This is incorrect because the validate-jwt policy requires the OAuth configuration to be in place, as it references the issuer and audience values that are set during the API Management OAuth configuration. Adding the policy before configuring OAuth would result in invalid or missing parameters.

  • Register an application in Azure AD, then configure API Management to use OAuth 2.0, then configure the product to require OAuth 2.0, then add the validate-jwt policy to the API, then test the setup.

    Why it's wrong here

    This is incorrect because the validate-jwt policy must be added before testing, as it is the mechanism that actually validates the OAuth token. Without it, the API would not enforce token validation, and the test would not reflect the secure configuration. Additionally, the product configuration typically comes after the policy is in place.

About these practice questions

This AZ-204 question is part of Courseiva's 881-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.