Microsoft Azure Developer Associate AZ-204 Practice Question
Your company exposes several internal APIs through an Azure API Management (APIM) instance named ContosoApi. An Orders API must be callable from the on-premises network (CIDR 10.0.0.0/16) without using an Ocp-Apim-Subscription-Key header, but external callers must still provide a valid subscription key. You need to configure APIM to meet these requirements while following Microsoft recommended practices and keeping management overhead low. What should you do?
Add an inbound policy to the Orders API that allows traffic from 10.0.0.0/16 and, for other addresses, checks for the Ocp-Apim-Subscription-Key header.
Place the Orders API in two products: an Internal product that has Require subscription disabled and is protected by an ip-filter policy allowing 10.0.0.0/16, and a Public product that keeps Require subscription enabled for all other callers.
Enable OAuth 2.0 user authorization and configure a delegation endpoint that issues special tokens to internal callers so that APIM ignores missing subscription keys.
Disable subscription key validation at the APIM instance level and use an Azure Front Door WAF rule to require the key except for 10.0.0.0/16.
An API can belong to more than one product. Create two separate products that both contain the Orders API. In the Internal product, clear the Require subscription setting so calls are accepted without a key, then add an ip-filter policy that allows only 10.0.0.0/16. Publish another product (Public) that keeps Require subscription enabled; external callers obtain a subscription to this product and must send their key. Because subscription enforcement happens before policies run, disabling the setting-not a policy- is the only supported way to bypass key validation for a subset of callers, and using products avoids duplicating the API configuration.
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.
Why are products used in Azure API Management to separate access for internal and external callers?
Open an interactive chat with Bash
What is an ip-filter policy, and how is it used in Azure API Management?
Open an interactive chat with Bash
How does subscription key validation work and why is it disabled in this scenario for internal callers?
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 .