Skip to main content

AI-200 practice question · Connect to and Consume Azure Services

A team calls an Azure OpenAI provisioned deployment through the OpenAI Python SDK.

A team calls an Azure OpenAI provisioned deployment through the OpenAI Python SDK. Under peak load, the service returns HTTP 429 responses with retry-after and retry-after-ms headers. What does the SDK do with these responses by default?

  • AIt retries 429 responses automatically, waiting the retry-after time; the max_retries client option tunes or disables this
  • BIt raises every 429 immediately as an exception, so the team must parse retry-after and write its own retry loop
  • CIt retries 429 responses immediately without waiting, so the team must add a delay that reads retry-after-ms
  • DIt retries only 5xx server errors, because a 429 indicates a quota misconfiguration that retrying can't resolve
Show the answer and explanation

Correct answer: A) It retries 429 responses automatically, waiting the retry-after time; the max_retries client option tunes or disables this

The OpenAI SDKs used with Azure OpenAI retry HTTP 429 responses by default, respecting the retry-after time. Use the max_retries option to change or disable this behavior.

Why each option is right or wrong

  • A) Correct. The OpenAI SDKs retry 429 responses by default and respect the retry-after time. The max_retries option, set on the client or per request, changes or disables this behavior. The default is 2 retries.
  • B) Incorrect. A custom retry loop is optional. The SDK already retries 429 responses by default, respecting retry-after.
  • C) Incorrect. The SDK's built-in retries respect the retry-after time instead of retrying immediately.
  • D) Incorrect. 429 is one of the status codes the SDK retries by default. On a provisioned deployment, a 429 is a temporary traffic-management signal, not a configuration error.
Exam domain
Connect to and Consume Azure Services · 25% of AI-200
Question type
Multiple choice (one answer)

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.