Cert Rehearsal

Microsoft Azure AI Cloud Developer Associate (AI-200) practice test

Built for exam AI-200, the exam for the Microsoft Certified: Azure AI Cloud Developer Associate certification that replaced AZ-204 in 2026, from the skills Microsoft lists in its study guide: containers on Azure Container Registry, App Service, Container Apps and AKS; Azure Cosmos DB, Azure Database for PostgreSQL and Azure Managed Redis, including vector search and retrieval-augmented generation; Service Bus, Event Grid and Azure Functions; and Key Vault, App Configuration, OpenTelemetry and KQL. Code in the questions is Python, the exam's language. Every question is original, with an explanation of why the right answer is right.

Try the free sample Buy the full set, $12 once

The free sample is 10 questions, graded, with no sign-up. Or get All-access for $9/month: every test on the site. An account keeps your progress on every device.

What the full set includes

Topics covered

Sample questions

Question 1

A build agent has no Docker engine installed. A developer needs to build an image from a Dockerfile in the current folder and store it in an Azure Container Registry in one step. Which command does this?

  1. az acr login
  2. az acr build
  3. az acr repository update
  4. az acr import
Show the answer

B. az acr build. az acr build is an ACR Tasks quick task: it sends the build context to Azure, builds the image there and pushes it to the registry, so no local Docker engine is needed. az acr import copies an existing image from another registry, and az acr login only authenticates a local Docker client.

Question 2

A container app runs in single revision mode. Which change causes Azure Container Apps to create a new revision?

  1. Changing the value of an existing secret
  2. Adding a custom domain name
  3. Changing the container image in the template
  4. Changing the ingress traffic weights
Show the answer

C. Changing the container image in the template. A new revision is created by a revision-scope change, which is a change to the template: containers, images, environment variables, or scale rules. Secrets, ingress settings and custom domains are application-scope settings and do not create a revision.

Question 3

A Python service connects to Azure Cosmos DB for NoSQL with CosmosClient and DefaultAzureCredential. Its managed identity has the Contributor role on the account, yet every read fails with a forbidden error. What is missing?

  1. A firewall rule on the account that allows requests from the Azure portal's addresses
  2. The Owner role on the resource group
  3. A Cosmos DB data plane role, such as Cosmos DB Built-in Data Contributor
  4. The account's primary key in an environment variable
Show the answer

C. A Cosmos DB data plane role, such as Cosmos DB Built-in Data Contributor. Azure roles such as Contributor manage the account but grant no access to its data. Reading and writing items with Microsoft Entra ID needs a Cosmos DB data plane role assignment, such as Cosmos DB Built-in Data Contributor or Data Reader.

Not affiliated with or endorsed by Microsoft. Microsoft and Azure are trademarks of the Microsoft group of companies. The questions here are original practice material and are not the official exam, a Microsoft Practice Assessment or any Microsoft product.