Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Microsoft AI-200 Dumps 2026 with Free Practice Questions and Answers

16 original Developing AI Cloud Solutions on Azure exam practice questions with answers and explanations.

Covers Develop AI Solutions By Using Azure Data Management Services, Connect To And Consume Azure Services, Develop Containerized Solutions On Azure and Secure, Monitor, And Troubleshoot Azure Solutions.

Question types: single answer, multiple answers, drag and drop, dropdown and order list. A new question is added every 15 days.

AI-200 Practice Set Details

Vendor
Microsoft
Exam Code
AI-200
Questions On This Page
16
Exam Topics Covered
4 of 4
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
142
Certification
Azure Developer Associate
16 questions

Microsoft AI-200 Exam Questions and Answers by Topic

Develop Containerized Solutions on Azure

20-25% of the exam

4 practice questions on this topicWhat this topic covers

Question 1

Added

Multiple Answers

A build pipeline must create versioned container images from source and push them to Azure Container Registry. Builds must run in Azure so the hosted agent does not need Docker installed, and releases must be able to select an immutable build version rather than a mutable `latest` tag. The registry already exists, and the pipeline has permission to submit builds. Which two actions satisfy the requirements? (Choose two.)

Correct answer: B, D

An ACR Task can build from a submitted context in Azure and push the resulting image to the registry without requiring Docker on the hosted agent. A unique version tag gives releases a specific image reference instead of depending on the mutable `latest` tag. App Service is a hosting service, not the requested remote ACR build mechanism. ACR does not automatically make `latest` immutable. Building and pushing through a public registry adds an unnecessary exposure and does not meet the stated Azure-hosted build requirement.

Question 2

Added

Order List

A web API container is being deployed to Azure App Service. Its database password must be supplied at runtime, must not be baked into the image, and must be retrievable from Key Vault using the app's managed identity. The image is already available in a private Azure Container Registry. Arrange the deployment steps in the order that avoids starting the app without its required secret.

Drag the steps into the correct order, or use the arrows.

  1. Configure the container image and deploy the App Service
  2. Enable a managed identity for the App Service
  3. Grant that identity permission to retrieve the required Key Vault secret
  4. Configure an App Service application setting with a Key Vault reference
Correct answer:
  1. Enable a managed identity for the App Service
  2. Grant that identity permission to retrieve the required Key Vault secret
  3. Configure an App Service application setting with a Key Vault reference
  4. Configure the container image and deploy the App Service

The managed identity must exist before access can be granted. Key Vault authorization must be in place before the app resolves its reference, and the application setting can then reference the secret without embedding its value in the image. Deploying the container after configuration prevents an initial start without the required setting. Granting permissions before the identity exists cannot target that identity, and deploying before configuring the reference can cause startup failure.

Question 3

Added

Drag And Drop

A team is choosing where to run three container workloads. One needs revision-based traffic splitting and scale-to-zero from queue length; one needs Kubernetes APIs and declarative manifests; one is a single web application that should use familiar App Service deployment and configuration features. Match each workload to its best-fit Azure hosting service.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Service requiring Kubernetes API access and manifest-based deployment
Queue worker requiring scale-to-zero based on queue messages
Single web container using App Service deployment settings
Azure App Service
Azure Kubernetes Service
Azure Container Apps with KEDA scaling
Correct answer:
  • Queue worker requiring scale-to-zero based on queue messages → Azure Container Apps with KEDA scaling
  • Service requiring Kubernetes API access and manifest-based deployment → Azure Kubernetes Service
  • Single web container using App Service deployment settings → Azure App Service

Container Apps supports revisions and event-driven scaling through KEDA, including scaling based on queue metrics. AKS provides Kubernetes control-plane capabilities and accepts Kubernetes manifests for workloads requiring that API surface. App Service is the direct fit for a single web container that benefits from App Service deployment and application settings. Functions Premium is oriented to function workloads rather than these specified hosting requirements. Container Instances can run containers but does not provide the stated revision traffic management or Kubernetes API.

Question 4

Added

Single Answer

A Container Apps deployment has two revisions. The new revision starts successfully, but requests routed to it fail when it calls an internal API in another Container Apps app. Both apps are in the same Container Apps environment. The API app is configured as an external ingress app with a public endpoint, but the calling app uses the API's public hostname. Security requires traffic to remain inside the environment and the team wants to avoid exposing the API publicly. What is the best change?

Correct answer: A

Internal ingress makes the API reachable from within the Container Apps environment without exposing it publicly, and callers can use the app's environment-resolvable endpoint. Disabling ingress removes the supported HTTP entry path rather than securing it. External ingress and public DNS continue to expose the API, contrary to the requirement. Separate environments would add networking complexity and would not inherently keep traffic private.

Develop AI Solutions by Using Azure Data Management Services

25-30% of the exam

5 practice questions on this topicWhat this topic covers

Question 5

Added

Single Answer

A customer-support assistant stores conversation turns in Azure Cosmos DB for NoSQL. Each turn includes a vector embedding, and requests must retrieve semantically similar turns for the same customer. The container is partitioned by /customerId, and the application must avoid fan-out across customers while keeping vector indexing separate from ordinary property indexing. Which design best meets these requirements?

Correct answer: A

A vector index on the embedding path supports vector similarity queries, and DiskANN is an approximate-nearest-neighbor index suited to larger vector sets. Supplying the customerId partition-key value scopes the request to that logical partition and avoids a cross-partition search. The flat index performs exhaustive search and is intended for smaller vector sets, not this scale. A composite index does not provide vector similarity ordering for embedding arrays. Full-text indexing and CONTAINS perform lexical matching, not semantic vector search.

Question 6

Added

Single Answer

A product catalog stores one document per item in Azure Cosmos DB for NoSQL. Retrieval requests always include a tenant identifier and item identifier, and the partition key is `/tenantId`. The application also stores vector embeddings and searches for semantically similar items within a tenant. Catalog writes are frequent, and the team needs to limit RU consumption while retaining vector retrieval. Which change is the best fit?

Correct answer: C

The tenant partition key aligns the request scope with Cosmos DB partition routing. A composite index can support the combined tenant and item access pattern, while an appropriate vector index on the embedding path supports vector similarity retrieval. Restricting unnecessary indexing is valuable for write RU usage, but excluding every path would prevent the required metadata query from using an index. An embedding partition key would not co-locate tenant data for tenant-scoped retrieval. Strong consistency and a wildcard index add cost and do not solve the stated indexing needs.

Question 7

Added

Drag And Drop

A multi-tenant AI service uses Azure Database for PostgreSQL with pgvector. Each requirement has a distinct best-fit database design choice; use each target once. Match each requirement to its target.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Store fixed-length model output vectors
Store a tenant identifier used for equality filtering
Accelerate approximate nearest-neighbor distance searches
B-tree index on tenant_id
vector(n) column
HNSW index on the embedding column
Correct answer:
  • Store a tenant identifier used for equality filtering → B-tree index on tenant_id
  • Store fixed-length model output vectors → vector(n) column
  • Accelerate approximate nearest-neighbor distance searches → HNSW index on the embedding column

A B-tree is appropriate for equality predicates on a tenant identifier. The pgvector `vector(n)` type stores embeddings with a declared dimension, allowing vector operators and indexes to work on the values. An HNSW index supports approximate nearest-neighbor search and avoids computing exact distances against every row for suitable workloads. A GIN index is not the natural choice for scalar tenant equality. Serializing embeddings as text prevents native vector operations and index use.

Question 8

Added

Dropdown

A service must process newly inserted or updated Cosmos DB items asynchronously. It needs a durable checkpoint so multiple workers can coordinate and resume after a restart. The application already has a lease container available, and it must not poll the entire container with ad hoc queries. Complete the change feed processor configuration with the correct values.

Choose the correct value for each blank.

Configure the processor with a container, a container, and a unique name for this processor deployment.
Correct answer:

Configure the processor with a monitored container, a lease container, and a unique host name for this processor deployment.

The change feed processor reads changes from the monitored container and uses a lease container to coordinate leases and persist progress across workers and restarts. The processor host name identifies a processor deployment among cooperating instances and must be unique for the intended deployment. A metadata container is not the source of the change feed. The source container is not the lease container, and a checkpoint is processor state rather than the configured container name. Partition and consistency settings do not replace the required host identity.

Question 9

Added

Single Answer

A PostgreSQL-backed retrieval service stores vectors for documents, but its nearest-neighbor queries have become CPU-bound as the corpus grows. Most requests filter by tenant and then return a small number of nearest vectors. The database already has an HNSW index on the embedding column, but the query planner often chooses a sequential scan. The team can change the schema and query shape, but cannot relax tenant isolation or increase the database compute tier this quarter. What should the team do first?

Correct answer: C

A B-tree index on the tenant filter can reduce the candidate rows, while a query expression matching pgvector's supported distance operator and ordering form gives the planner the opportunity to use the HNSW index. Inspecting the execution plan confirms whether the intended indexes are selected. Removing tenant filtering violates isolation and can increase work. GIN is not the pgvector nearest-neighbor index type, and textual ordering or casts do not preserve vector distance semantics or use the vector index.

Connect to and Consume Azure Services

20-25% of the exam

4 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A payment API publishes a message when a transaction is authorized. Several independent consumers need their own copy, and each consumer must be able to retry processing without delaying the others. A consumer that rejects a message after its configured delivery limit must allow operations staff to inspect and replay it. The team already uses Azure Service Bus and requires brokered, durable delivery; adding a separate event routing service is outside the project budget. Which design best meets these requirements?

Correct answer: A

A Service Bus topic with a separate subscription per consumer provides independent copies and delivery state. A message that exceeds the subscription's maximum delivery count is moved to that subscription's dead-letter subqueue, where authorized operators can inspect and resubmit it. A shared queue distributes each message to only one competing consumer, so it does not provide independent copies. Event Grid is a plausible routing choice but violates the stated requirement to use brokered Service Bus delivery and adds an unbudgeted service. Publishing separately to queues requires the API to coordinate multiple sends and a shared dead-letter queue loses subscription-specific failure context.

Question 11

Added

Multiple Answers

An ingestion service emits a custom Event Grid event for every document, but only events whose data identifies a supported document class should start a costly extraction workflow. The event schema is stable and contains a top-level event type plus a `data.class` property. Unsupported classes must not reach the workflow, while transient endpoint failures must be retried by Event Grid. The team cannot change the producer or add filtering code to the workflow, and it wants the smallest configuration change. Which two actions should you take? (Choose two.)

Correct answer: B, C

An advanced filter can evaluate the custom event's `data.class` property and admit only the supported values, without changing the producer or workflow. Event Grid's subscription retry policy controls delivery attempts and retry duration for transient endpoint failures. A subject filter examines the event subject, not the class property specified in the schema. Dead-lettering preserves events that could not be delivered; it does not exclude unsupported classes. Service Bus SQL filters could provide broker-side filtering but would require replacing the existing event transport, a larger change.

Question 12

Added

Order List

A team is deploying an HTTP Azure Function that reads a storage account connection string from an application setting. The function app does not yet exist, and the package is already built. The storage account is in the same subscription, and the deployment must keep the connection string out of source control. Arrange the deployment actions in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Publish the function package to the function app
  2. Invoke the HTTP endpoint and verify the function response
  3. Create the function app in the target hosting plan and region
  4. Configure the connection string as an application setting on the function app
Correct answer:
  1. Create the function app in the target hosting plan and region
  2. Configure the connection string as an application setting on the function app
  3. Publish the function package to the function app
  4. Invoke the HTTP endpoint and verify the function response

The app must exist before its application setting can be configured. Publishing after configuration ensures the deployed function starts with the required setting available, and invoking the endpoint then verifies the deployment and runtime configuration together. Publishing before creating the app is impossible. Publishing before configuring the setting risks an initial invocation failing because the connection string is missing. Verification before publishing would test no deployed function.

Question 13

Added

Single Answer

A document workflow uses an Azure Function triggered by a Service Bus queue. A temporary downstream outage causes repeated processing failures. The team wants failed messages to remain available for later investigation and controlled replay, without adding custom storage code. The queue's maximum delivery count is already configured, and the function must not delete messages until its processing succeeds. What should the team do?

Correct answer: B

Service Bus moves a message to the dead-letter subqueue when its delivery count exceeds the configured maximum, preserving it for investigation and later resubmission. The function should complete the message only after successful processing, so failures allow redelivery. Auto-completion before processing would lose the message on a subsequent failure. Lock expiration causes redelivery rather than immediate dead-lettering. Forwarding every message adds unnecessary coordination and custom handling instead of using the broker's built-in failure path.

Secure, Monitor, and Troubleshoot Azure Solutions

20-25% of the exam

3 practice questions on this topicWhat this topic covers

Question 14

Added

Single Answer

A production service retrieves a database credential from Azure Key Vault at startup. Security requires that the application use managed identity, that secret rotation not require a new container image, and that a newly rotated value become available without waiting for a full redeployment. The application currently reads the secret once into a static field. Which change best meets the requirements while minimizing credential handling?

Correct answer: B

A managed identity avoids distributing an application credential, while retrieving the Key Vault secret at runtime keeps it out of the image. Refreshing the application's cached value according to the rotation policy makes an updated secret available without redeployment; a one-time static read would not. Baking an application setting into an image violates the image constraint. App Configuration is not a substitute for Key Vault secret protection. Managed identities do not require a client secret, and rotating one would add unnecessary credential handling.

Question 15

Added

Dropdown

An operations team needs to find failed dependency calls in an Application Insights workspace, grouped by target, during the last 24 hours. It must exclude successful calls and return the most frequent targets first. Complete the KQL query.

Choose the correct value for each blank.

dependencies | where timestamp > ago(24h) and | summarize failures=count() by | order by failures
Correct answer:

dependencies | where timestamp > ago(24h) and success == false | summarize failures=count() by target | order by failures desc

Application Insights dependency telemetry exposes a `success` field, so filtering on `success == false` selects failed dependency calls. Grouping by `target` reports the remote dependency target, and descending order places the largest failure counts first. `itemCount` is used for sampling-aware counts rather than a success filter. `cloud_RoleName` groups by the calling role, not the dependency target. A successful result code would include successes, and ascending order would place the least frequent targets first.

Question 16

Added

Multiple Answers

A distributed AI request passes through an API, a queue-triggered worker, and a model-serving service. The team needs end-to-end traces across these processes, must preserve correlation through asynchronous message handling, and wants to avoid sending sensitive prompt text as telemetry. The services use .NET and Application Insights-compatible telemetry ingestion. Which two implementation actions are appropriate? (Choose two.)

Correct answer: D, E

OpenTelemetry instrumentation and an Azure Monitor-compatible exporter provide trace collection across the participating services. W3C trace context must cross the queue boundary in message metadata and be extracted by the worker so spans remain correlated across asynchronous processing. Creating unrelated trace IDs breaks end-to-end trace continuity. Prompt text in span names risks exposing sensitive content and creates high-cardinality telemetry. CPU metrics can help diagnose resource pressure but cannot reconstruct distributed trace relationships.

More Microsoft Practice Questions

Get the Full Microsoft AI-200 Dumps as PDF and Practice Test

16 questions are free on this page and the full set has 142. It comes as a PDF and an online practice test, with 90 days of free updates.