Microsoft Azure Developer Associate AZ-204 Practice Question
You manage an Azure API Management instance that exposes several APIs to tenants who authenticate with a subscription key. The solution must block a tenant that makes more than 50 requests within any 60-second window, but never throttle requests originating from the corporate VNet (10.0.0.0/16). Which policy configuration meets the requirement?
Configure a validate-subscription policy in the outbound section and use a header transform rule to return HTTP 429 after 50 calls.
Apply a rate-limit policy with calls set to 50 and renewal-period set to 60 seconds in the backend section of the API.
Add an ip-filter policy that allows 10.0.0.0/16, followed by a rate-limit-by-key policy with calls set to 50, renewal-period set to 60 seconds, and counter-key set to the subscription key.
Add an ip-filter policy that allows 10.0.0.0/16, followed by a quota-by-key policy with calls set to 50, renewal-period set to 60 seconds, and counter-key set to the subscription key.
The ip-filter policy must run first to exempt traffic from the internal address space. The rate-limit-by-key policy is designed for short-term rolling windows and evaluates each request against a moving counter keyed to a value such as the caller's subscription key. When calls exceed the configured limit (50) inside the renewal period (60 seconds), API Management automatically returns HTTP 429 to the offending caller. The quota-by-key policy is intended for longer-term usage quotas, a simple rate-limit policy cannot distinguish tenants, and header manipulation alone does not enforce throttling.
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 purpose of the ip-filter policy in the context of Azure API Management?
Open an interactive chat with Bash
How does the rate-limit-by-key policy work in Azure API Management?
Open an interactive chat with Bash
Why is quota-by-key policy not suitable for short-term limits?
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 .