AZ-204 Practice Question: APIM rate-limit-by-key policy for per-subscriber…
This AZ-204 practice question tests your understanding of apim rate-limit-by-key policy for per-subscriber…. 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. A key principle to apply: azure API Management. 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.
Backend APIs exposed through Azure API Management are consumed by multiple subscribers. The product owner wants to prevent any single subscriber from sending more than 100 requests per minute, while allowing subscribers with heavier plans to have higher limits configured separately. Which APIM policy implements per-subscriber rate limiting?
Answer choices
Why each option matters
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
Distractor review
Configure a backend circuit breaker policy to return cached responses after 100 calls
Circuit breaker policies detect backend failures and open the circuit to prevent cascading failures — they are not rate-limiting mechanisms. Returning cached responses after 100 calls would change response content, not enforce a per-subscriber call limit.
Best answer
Apply the rate-limit-by-key policy using the subscription key as the counter key, with calls set to 100 and renewal-period to 60
rate-limit-by-key with counter-key='@(context.Subscription.Id)' (or the subscription key header) creates a separate 100-calls/60-second counter per subscriber. When a subscriber's counter reaches 100, APIM returns 429 Too Many Requests for that subscriber while other subscribers continue at full rate.
Distractor review
Apply the quota policy to the product with a total of 100 calls per minute shared across all subscribers
The quota policy enforces a cumulative call limit across all subscribers of the product. If one subscriber uses 90 calls, only 10 remain for all others in that minute. This is a global cap, not a per-subscriber limit.
Distractor review
Apply an ip-filter policy that blocks IP addresses making more than 100 requests per minute
ip-filter allows or denies requests from specific IP ranges — it is an access control policy, not a rate-limiting policy. It cannot count requests per minute and cannot distinguish between subscribers sharing the same egress IP.
Common exam trap
Common exam trap: answer the scenario, not the keyword
Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.
Technical deep dive
How to think about this question
Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.
KKey Concepts to Remember
- Azure API Management
- rate-limit-by-key policy
- per-subscriber throttling
- quota vs rate-limit
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
Azure API Management
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.
More questions from this exam
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
An application stores customer invoices in Azure Blob Storage. Deleted blobs must be recoverable for 14 days. What should be enabled?
Question 2
You are deploying a containerized application to Azure Container Instances. The application requires a custom domain name and SSL/TLS termination. You need to configure these features. Which resource should you create alongside the container group?
Question 3
A developer needs to run a Kusto query against application request data to identify 95th percentile latency by operation. Where should the query be run? The architecture review board prefers a managed AWS-native control.
Question 4
You are developing a web app that authenticates users via Microsoft Entra ID. The app needs to read the user's profile and send emails on their behalf. You want to minimize user consent prompts. Which OAuth 2.0 grant type should you use?
Question 5
You are developing an Azure Function that processes messages from an Azure Service Bus queue. The function uses a Service Bus queue trigger and runs on a Consumption Plan. The queue receives a high volume of messages in bursts. You need to ensure that the function scales out to handle the load but does not exceed 10 concurrent instances. Which configuration should you apply?
Question 6
You are monitoring an Azure App Service using Application Insights. You notice that the server response time is high for certain requests. You need to drill down to see which external dependencies (like databases or APIs) are causing the delay. Which Application Insights feature should you use?
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?
Azure API Management
What is the correct answer to this question?
The correct answer is: Apply the rate-limit-by-key policy using the subscription key as the counter key, with calls set to 100 and renewal-period to 60 — The rate-limit-by-key policy in APIM enforces a call rate limit based on a custom key — typically the subscription key, user ID, or IP address. Each unique key value gets its own counter, so one subscriber's traffic does not consume another's quota. This is different from the rate-limit policy (which applies globally to the product) and the quota policy (which enforces a longer-period call count rather than a per-minute rate).
What should I do if I get this AZ-204 question wrong?
Review azure API Management, then practise related AZ-204 questions on the same topic to reinforce the concept.
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 →
Discussion
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.