Azure AI Cloud Developer (AI-200) Practice Exam
Practice questions for the Microsoft Certified: Azure AI Cloud Developer Associate exam (AI-200: Developing AI Cloud Solutions on Azure), covering containerized solutions with Azure Container Registry and ACR Tasks, App Service containers, Azure Container Apps revisions, ingress and KEDA scaling, and AKS manifests and troubleshooting; AI data solutions with Azure Cosmos DB for NoSQL (SDK queries, indexing policies, consistency levels, vector search and the change feed processor), Azure Database for PostgreSQL (pgvector and DiskANN indexes, RAG with metadata filters, compute sizing, Entra authentication and PgBouncer pooling) and Azure Managed Redis (caching, expiration, invalidation and vector similarity search); messaging and eventing with Azure Service Bus and Azure Event Grid; Azure Functions triggers, bindings, hosting plans including Flex Consumption and the isolated worker model; and securing, monitoring and troubleshooting with Azure Key Vault, Azure App Configuration, OpenTelemetry tracing with Application Insights, and KQL. Every question includes a written explanation.
100 questions · 12 free preview
Studying more than one? All Microsoft Azure exams for $29 · every exam for $79
Free sample questions
- Sample · question 1 · Importing a public image into ACR
Dovecote Systems wants its AKS workloads to stop pulling a base Redis image from Docker Hub and to pull an identical copy from its own registry, dovecoteacr, instead. Nobody on the team has Docker installed. Which command copies the image directly?
- A.az acr import --name dovecoteacr --source docker.io/library/redis:7.4 --image redis:7.4correct
- B.az acr build --registry dovecoteacr --image redis:7.4 --file Dockerfile docker.io/library/redis
- C.az acr replication create --registry dovecoteacr --location docker.io
- D.az acr task run --name redis --registry dovecoteacr --source docker.io
Why: az acr import copies an image from a public registry or another Azure registry into the target registry as a server-side operation, so no local Docker client is needed. az acr build builds from a Dockerfile and build context rather than copying an existing image. Replications add Azure regions to a Premium registry and can't point at Docker Hub, and task run executes an existing task rather than importing.
Open this question on its own page → - Sample · question 2 · Event-driven Container Apps job
Each upload notification on a Storage queue at Pellucid Maps should start one container that converts a map tile set and then exits. No container should run while the queue is empty. Which Azure Container Apps resource fits best?
- A.A container app with ingress enabled and an HTTP scale rule
- B.A Container Apps job with a manual trigger that an operator starts from the portal after each upload
- C.A container app with minReplicas set to 1 and a CPU scale rule
- D.A Container Apps job with an event-driven trigger that uses the azure-queue scalercorrect
Why: Container Apps jobs run containers that do a finite piece of work and then stop. An event-driven job uses a KEDA scaler, such as azure-queue, to start executions when messages arrive and runs nothing when the queue is empty. A container app is meant for long-running processes, HTTP rules don't react to queue messages, and minReplicas 1 keeps a container running at all times. Manual triggers don't respond to events.
Open this question on its own page → - Sample · question 3 · Horizontal Pod Autoscaler on CPU
The tokenizer Deployment on AKS at Ambleside Labs should automatically run between 2 and 12 pods, adding pods when average CPU use exceeds 60% of the requested CPU. Which command sets this up?
- A.az aks nodepool update --enable-cluster-autoscaler --min-count 2 --max-count 12
- B.kubectl scale deployment tokenizer --replicas=12
- C.kubectl autoscale deployment tokenizer --cpu-percent=60 --min=2 --max=12correct
- D.kubectl set resources deployment tokenizer --limits=cpu=60%
Why: kubectl autoscale creates a HorizontalPodAutoscaler that adjusts the Deployment's replica count between the minimum and maximum based on average CPU utilization relative to the pods' requests. kubectl scale sets a fixed count once. The cluster autoscaler changes the number of nodes, not pods. kubectl set resources edits requests or limits and doesn't take percentages.
Open this question on its own page → - Sample · question 4 · Container TTL for chat history
Chat transcripts at Wildmoor Tutors are stored in a Cosmos DB container and must be removed automatically 30 days after their last update, without a cleanup job. What should the developers configure?
- A.Create a change feed processor that deletes old items each night
- B.Set the container's default time to live to 2592000 secondscorrect
- C.Add a composite index on _ts so that old items are removed faster
- D.Set the item's partition key to the creation date and drop old partitions
Why: Time to live in Cosmos DB deletes items automatically once the configured number of seconds has passed since the item's last modification time (_ts); 30 days is 2,592,000 seconds. Expired items are removed in the background with leftover throughput. A nightly processor is the custom job the team wants to avoid, indexes don't delete data, and Cosmos DB has no command to drop a logical partition.
Open this question on its own page → - Sample · question 5 · Optimistic concurrency with ETag
Two instances of a profile service at Corriedale Bank sometimes overwrite each other's updates to the same Cosmos DB item. The team wants an update to fail if the item changed after it was read. How should the Python code replace the item?
- A.container.upsert_item(body) inside a try block that retries five times
- B.container.replace_item(item, body, etag=item['_etag'], match_condition=MatchConditions.IfNotModified)correct
- C.container.replace_item(item, body) after switching the account to Strong consistency
- D.container.patch_item(item, partition_key, patch_operations=[]) to take an exclusive lock on the item before replacing it
Why: Cosmos DB supports optimistic concurrency through the item's _etag: passing the ETag with an if-not-modified match condition makes the write fail with HTTP 412 if another writer changed the item, so the caller can re-read and retry. Retried upserts still overwrite blindly. Strong consistency controls read visibility, not write conflicts, and an empty patch doesn't lock anything.
Open this question on its own page → - Sample · question 6 · IVFFlat lists and probes tuning
Fenwick Cartography built an IVFFlat index on a fully loaded embeddings table in Azure Database for PostgreSQL. Searches are fast but miss relevant neighbors. Which setting improves recall at query time?
- A.Raise random_page_cost so that the planner prefers the IVFFlat index over a sequential scan
- B.Lower the lists value and keep probes at 1 without rebuilding
- C.Raise ivfflat.probes so that more lists are searched for each querycorrect
- D.Set maintenance_work_mem to a smaller value
Why: An IVFFlat index divides vectors into lists, and ivfflat.probes controls how many of them a query examines; the default is 1, and raising it increases recall at the cost of speed. lists is set at build time, so changing it means rebuilding the index. random_page_cost influences plan choice rather than recall within the index, and maintenance_work_mem affects builds only.
Open this question on its own page → - Sample · question 7 · Entra ID connection to Azure Managed Redis
A Python service at Juniper Grove connects to an Azure Managed Redis instance where access keys are disabled. The instance uses the default port. How should the client connect?
- A.Use TLS on port 10000 with an Entra token for the app's managed identitycorrect
- B.Use plain TCP on port 6379 with the primary access key
- C.Use TLS on port 6380 and authenticate with the storage account key
- D.Use port 10000 without TLS and with no authentication because keys are disabled
Why: Azure Managed Redis endpoints listen on port 10000 with TLS. When access keys are disabled, clients authenticate with Microsoft Entra ID tokens (scope https://redis.azure.com/.default) for an identity that has been added as a Redis user on the cache's Microsoft Entra Authentication page; such users get full access by default unless custom data access permissions are configured. Ports 6379 and 6380 belong to the older Azure Cache for Redis service, access keys are disabled here, and turning keys off doesn't allow unauthenticated access.
Open this question on its own page → - Sample · question 8 · Deferring Service Bus messages
A workflow at Brackwater Insurance receives a payment-confirmed message before the order-created message it depends on. The worker wants to set the payment message aside in the queue and fetch it later by ID. Which Service Bus feature supports this?
- A.Scheduled messages: resend the payment message with a future enqueue time
- B.Message deferral: defer the message, keep its sequence number and later receive it with receive_deferred_messagescorrect
- C.Auto-forwarding: forward the message to another queue
- D.Dead-lettering: move it to the dead-letter queue and read it back later
Why: Deferral leaves a message in the queue but hides it from normal receives; the receiver keeps the sequence number and retrieves the message explicitly with receive_deferred_messages when it's ready. Rescheduling creates a new message and guesses at timing. Auto-forwarding moves all messages between entities. The dead-letter queue is for messages that can't be processed, not workflow ordering.
Open this question on its own page → - Sample · question 9 · Event Grid system topic for storage events
Hartwell Studios wants a function to run whenever a blob is created in an existing storage account, without writing any code that publishes events. Which Event Grid resource receives these events?
- A.An Event Grid namespace topic that polls the storage account
- B.A custom topic that the storage account is configured to post its blob events to through a diagnostic setting
- C.A system topic for the storage account, with an event subscription filtered to Microsoft.Storage.BlobCreatedcorrect
- D.A partner topic registered for the storage account
Why: Azure services such as Storage publish their events to system topics that Azure manages; you create an event subscription on the system topic, here filtered to BlobCreated, and nothing has to publish events manually. Custom topics are for events your own applications publish. Event Grid doesn't poll storage accounts, and partner topics carry events from third-party SaaS providers.
Open this question on its own page → - Sample · question 10 · NCRONTAB timer trigger schedule
A function at Ledbury Analytics must refresh embeddings at 02:30 every day. Which schedule expression should the timer trigger use?
- A.0 30 2 * * *correct
- B.30 2 * * *
- C.*/30 2 * * * *
- D.0 2 30 * * *
Why: Azure Functions timer triggers use NCRONTAB expressions with six fields: second, minute, hour, day, month and day of week. 0 30 2 * * * runs at second 0, minute 30, hour 2 every day. The five-field form omits the seconds field. */30 in the first field means every 30 seconds during hour 2, and 0 2 30 * * * would mean minute 2 of hour 30, which is invalid.
Open this question on its own page → - Sample · question 11 · User-assigned identity shared by apps
Seven container apps at Quenby Logistics need the same read access to one Key Vault and one storage account. The team wants to grant access once and keep it when apps are deleted and recreated. What should they use?
- A.The vault's access keys, copied into each app as secrets
- B.A system-assigned managed identity on each app, with the roles assigned seven times
- C.A single service principal whose client secret is stored in each app's environment variables and rotated by hand
- D.A user-assigned managed identity attached to all seven apps, with the roles assigned to that identitycorrect
Why: A user-assigned managed identity is a standalone Azure resource that can be attached to many apps; role assignments made to it apply to every app that uses it and survive when an app is deleted. System-assigned identities are tied to each app's lifecycle, so access has to be granted per app and again on recreation. A service principal secret has to be stored and rotated, and Key Vault has no access keys.
Open this question on its own page → - Sample · question 12 · KQL distinct counts with dcount
Product analysts at Ellwood Games want two numbers from Application Insights for the last 7 days: total page views and the approximate number of distinct users. Which two aggregations should the summarize clause use? (Select TWO.)
- A.sum(user_Id)
- B.count()correct
- C.max(timestamp)
- D.make_list(user_Id)
- E.dcount(user_Id)correct
Why: count() returns the number of rows, which is the number of page views, and dcount() returns an estimated count of distinct values, here unique users. sum can't be applied to a string identifier, max(timestamp) returns the most recent time, and make_list builds an array of values rather than a number.
Open this question on its own page →
Like the sample?
Other practice exams
- AnthropicClaude Certified Architect — Foundations100 questions · $19
- AnthropicClaude Certified Architect — Professional100 questions · $19
- CompTIACompTIA Security+ (SY0-701)100 questions · $19
- CompTIACompTIA Network+ (N10-009)100 questions · $19
- ISC2CISSP100 questions · $19
- DatabricksDatabricks Data Engineer Associate100 questions · $19
- DatabricksDatabricks Data Engineer Professional100 questions · $19
- DatabricksDatabricks Generative AI Engineer Associate100 questions · $19
- Google CloudGoogle Cloud Associate Cloud Engineer100 questions · $19
- Google CloudGoogle Cloud Professional Cloud Architect100 questions · $19
- Google CloudGoogle Cloud Professional Data Engineer100 questions · $19
- Google CloudGoogle Cloud Professional Machine Learning Engineer100 questions · $19
- HashiCorpTerraform Associate (004)100 questions · $19
- CNCFCertified Kubernetes Administrator (CKA)100 questions · $19
- CNCFCertified Kubernetes Application Developer (CKAD)100 questions · $19
- PalantirPalantir Data Engineer Associate100 questions · $19
- PalantirPalantir AI Engineer Associate100 questions · $19
- NVIDIANVIDIA Generative AI LLMs Associate (NCA-GENL)100 questions · $19
- Microsoft Power BI & FabricPower BI Data Analyst (PL-300)100 questions · $19
- Microsoft Power BI & FabricFabric Analytics Engineer (DP-600)100 questions · $19
- Microsoft Power BI & FabricFabric Data Engineer (DP-700)100 questions · $19
- SnowflakeSnowPro Core (COF-C03)250 questions · $19
- SnowflakeSnowPro Advanced: Data Engineer100 questions · $19
- SnowflakeSnowPro Advanced: Architect100 questions · $19
- AWSAWS Cloud Practitioner (CLF-C02)100 questions · $19
- AWSAWS Solutions Architect Associate (SAA-C03)100 questions · $19
- AWSAWS AI Practitioner (AIF-C01)100 questions · $19
- AWSAWS Developer Associate (DVA-C03)100 questions · $19
- AWSAWS Solutions Architect Professional (SAP-C03)100 questions · $19
- AWSAWS Data Engineer Associate (DEA-C01)100 questions · $19
- AWSAWS Machine Learning Engineer Associate (MLA-C02)100 questions · $19
- AWSAWS Generative AI Developer Professional (AIP-C01)100 questions · $19
- Microsoft AzureAzure Fundamentals (AZ-900)100 questions · $19
- Microsoft AzureAzure Administrator (AZ-104)100 questions · $19
- Microsoft AzureAzure AI Fundamentals (AI-901)100 questions · $19
- Microsoft AzureAzure Solutions Architect Expert (AZ-305)100 questions · $19