Microsoft Azure Developer Associate AZ-204 Practice Question
You manage an Azure API Management instance that contains a product named Public and an API named Weather that is associated with the product. Every operation in API Management currently requires an Ocp-Apim-Subscription-Key header. You are migrating the Weather API to use Azure AD OAuth 2.0 bearer tokens instead of subscription keys. Calls to Weather must succeed when a valid Azure AD token is supplied even if no subscription key is present, and the requirement must not affect the other APIs in the Public product. What should you do in the Azure portal to meet the requirement?
Enable the global "Bypass subscription key" setting for the API Management gateway.
In the Settings blade of the Public product, clear the "Subscription required" option and save the change.
Add a validate-jwt policy to the inbound section of the Weather API.
In the Settings blade of the Weather API, clear the "Subscription required" option and save the change.
The Weather API must be exempt from the subscription-key check while the rest of the APIs in the Public product keep their current setting. Setting the Subscription required option to Off for the Weather API removes the need for callers to pass the Ocp-Apim-Subscription-Key header or query parameter for that API only. Disabling the requirement at the product level would also disable it for every other API in the Public product. Adding a validate-jwt policy enforces token validation but does not override the key requirement, so requests without a key would still be rejected. There is no global "Bypass subscription key" switch in API Management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the 'Subscription required' option in Azure API Management?
Open an interactive chat with Bash
How does Azure AD OAuth 2.0 bearer token authentication work?
Open an interactive chat with Bash
What is the role of the 'validate-jwt' policy in Azure API Management?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Connect to and consume Azure services and third-party services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .