Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu
Microsoft Azure, associate

AI-200 practice test and mock exam

For the Developing AI Cloud Solutions on Azure exam. Original practice questions and timed mock exams for AI-200, built from the official skills outline. Practice questions on all 27 topics listed below, with every answer explained.

Ten free questions a day, no card. Full access to every exam is one pass: $29.99 a year.

AI-200 mock exam and practice questions

Practice questions
On all 27 topics listed
Mock exam
50 questions, 100 min
Pass mark in our mocks
70%
Kept up to date
Updated every week
Pass guarantee
With the yearly pass

AI-200 sample questions with answers explained

Three free AI-200 practice questions, each with the right answer, why it is right and the official page it comes from. For more, try 5 questions. No account needed.

Sample question 1Multiple answers

You are building a Python v2 function that processes document analysis jobs. Job messages arrive in an Azure Service Bus queue named document-jobs.

Requirements:

  • The function must start when a job message arrives in document-jobs.
  • The function must call Azure AI Document Intelligence to analyze each document.
  • Document Intelligence client setup must not be repeated on every invocation.
  • Results must be saved as JSON files in Blob Storage without writing Storage SDK client code.

Which three actions should you perform? Each correct answer presents part of the solution.

Choose 3 answers.
Why

The Service Bus queue trigger starts the function for each job message, and a Blob Storage output binding saves results without Storage SDK code. Document Intelligence has no dedicated binding, so the function needs an SDK client. Creating that client at module level, outside the handler, avoids repeating the setup on every invocation. The wrong options fail different requirements: the wrong trigger source, client setup on every call, or Storage SDK code.

Sample question 2Single answer

An AI application runs on several instances and connects to Azure Cosmos DB with the account's primary key. The key is stored in Azure Key Vault as the secret cosmosdb-key, and each instance refetches the secret from Key Vault periodically. You must rotate the key. Requirements:

  • No application instance can experience an authentication failure during the rotation.
  • The previous key value must remain retrievable from Key Vault as an earlier version of the same secret.

Which rotation sequence should you use?

Choose one answer
Why

Azure Cosmos DB supports two active keys, so the rotation can bring in the new secondary key before the old primary key is invalidated. Storing the new key with set_secret() under the same name adds a version and keeps the earlier one. Waiting until every instance has the new value before regenerating the primary key means one valid credential is always available.

  • Not correct: Generate a new secondary key, delete the secret and recreate it with the new key, wait for all instances to pick it up, and then regenerate the old primary key. Deleting the secret removes it and its existing versions. The previous key value would not be kept as an earlier version.
  • Correct: Generate a new secondary key, store it as a new secret version, wait for all instances to pick up the new value, and then regenerate the old primary key. This is the dual-credential rotation order. At least one valid key always exists, and storing a new version keeps the previous version in Key Vault.
  • Not correct: Regenerate the old primary key, store it as a new secret version, wait for all instances to pick up the new value, and then generate a new secondary key. Regenerating the primary key first invalidates the credential that instances are still using. They fail until they refetch the secret.
  • Not correct: Generate a new secondary key, store it as a new secret version, regenerate the old primary key, and then wait for all instances to pick up the new value. The old primary key is regenerated before every instance has moved to the new value. Instances still using the old key fail authentication.
Sample question 3Single answer

An application reads the secret cosmosdb-connection-string from Azure Key Vault by using the Python SecretClient. You rotated the credential by storing a new version of the secret. Some older components still reference the previous version by its version identifier. You must ensure that the previous version can no longer be retrieved, even by its version identifier, while the new version stays available to all callers.

Which action should you take?

Choose one answer
Why

After a rotation, the way to stop use of an older version is to disable it with update_secret_properties() and enabled=False. A disabled version cannot be retrieved even by its version identifier. Setting an expiration date does not block access, because expired secrets can still be read. Deleting the secret would also remove the current credential.

  • Not correct: Call begin_delete_secret() for the cosmosdb-connection-string secret name. begin_delete_secret() deletes the secret by name, not a single version. The new version would also become unavailable.
  • Correct: Call update_secret_properties() for the previous version with enabled=False. Disabling a version with enabled=False stops that version from being retrieved, even when it is referenced by version identifier. The new version is not affected.
  • Not correct: Call set_secret() again with the new value to create another secret version. set_secret() only adds another version. Previous versions remain accessible until they are explicitly disabled or deleted.
  • Not correct: Call update_secret_properties() for the previous version with a past expires_on date. Expiration is informational. Expired secrets can still be retrieved through get_secret(), so the old version would stay readable.
Try 5 free AI-200 questions, no account

What the AI-200 exam covers

The AI-200 topics

Develop containerized solutions on Azure (7 topics)
Develop AI solutions by using Azure data management services (12 topics)
Connect to and consume Azure services (4 topics)
Secure, monitor, and troubleshoot Azure solutions (4 topics)

AI-200 practice test: frequently asked questions

Is there a free AI-200 practice test?

Yes. 5 AI-200 questions need no account, and every answer is explained after you pick it. The free plan adds ten questions a day, and there is a free AI-200 question of the day.

Are these real AI-200 exam questions?

No. The questions are our own, written from Microsoft Azure's official documentation. Each answer links the page it comes from, so you can check it.

How long is the AI-200 mock exam?

50 questions in 100 minutes, the exam time Microsoft Azure publishes. Each domain is weighted as on the real exam, and the mock is timed so you practise pace as well as content.

What score do I need to pass AI-200?

In our mocks the pass line is 70%. Microsoft Azure marks the real exam on its own scaled score, so treat a practice percentage as a guide to readiness, not a prediction. The official study guide lists the real passing score.

How current are the AI-200 questions?

The question bank is updated every week, and every answer cites an official Microsoft Learn page, so you can see where the explanation comes from.

The pass guarantee covers AI-200

Reach 90% on every skill, keep it fresh within 14 days of your exam, and still fail? Your money back or a free extra year.

Read the conditions

Start your AI-200 streak today.

Try AI-200 free