AI-200 practice question · Secure, Monitor, and Troubleshoot Azure Solutions
A team's application calls Azure OpenAI through an Azure API Management (APIM) gateway.
A team's application calls Azure OpenAI through an Azure API Management (APIM) gateway. Before an expected traffic spike, they want to confirm in a test environment that the client's retry-with-exponential-backoff code handles HTTP 429 (Too Many Requests) responses correctly. What should they do?
- AAdd a mock-response policy to the operation in a test APIM instance that returns the Too Many Requests status code to callers
- BRaise the tokens-per-minute quota on the test deployment so the client can send enough traffic to exercise its retry path
- CEnable diagnostic settings on the Azure OpenAI resource and query Log Analytics for requests that returned a 429 status
- DAdd a retry policy with exponential intervals to the test APIM instance so the gateway resends calls that the backend throttles
Show the answer and explanation
Correct answer: A) Add a mock-response policy to the operation in a test APIM instance that returns the Too Many Requests status code to callers
To test client retry and backoff logic, the team must produce throttling responses on purpose. An APIM mock-response policy in a test instance returns mocked 429 responses on demand. Raising quotas, querying logs, or retrying inside the gateway doesn't send 429s to the client.
Why each option is right or wrong
- A) Correct. The mock-response policy cancels normal pipeline execution and returns a mocked response with the status code you specify. In a test instance, this sends throttling responses to the client on demand, so the team can watch its retry and backoff path run without exhausting a real quota.
- B) Incorrect. A higher quota makes 429 responses less likely, so the client's retry and backoff code would probably never run. That works against the goal of the test.
- C) Incorrect. Diagnostic logs only record throttling that has already happened. They don't produce 429 responses, so they can't trigger the client code path the team needs to test.
- D) Incorrect. The APIM retry policy re-runs requests inside the gateway, which tests the gateway's retries, not the client's. If those retries succeed, the client never sees the 429 responses its own backoff logic needs to handle.
- Exam domain
- Secure, Monitor, and Troubleshoot Azure Solutions · 25% of AI-200
- Question type
- Multiple choice (one answer)
Related AI-200 questions
- Every quarter, a team needs reviewers to confirm who still needs each Azure RBAC role assignment on a production Azure…Secure, Monitor, and Troubleshoot Azure Solutions
- A company's AI chatbot stores each user's conversation history in Azure Cosmos DB and stores embeddings of those…Secure, Monitor, and Troubleshoot Azure Solutions
- A team has attached a custom content filter to their Microsoft Foundry model deployment that blocks content at medium…Secure, Monitor, and Troubleshoot Azure Solutions
- A team's AI application is published at api.contoso.com. The same publicly trusted TLS certificate must be used by an…Secure, Monitor, and Troubleshoot Azure Solutions
All 60 free AI-200 questions by domain · 15 sample questions on one page
Practise the full AI-200 exam
This question is one of a small free sample from the CertRidge AI-200 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.