Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Microsoft Developing AI Cloud Solutions on Azure AI-200 Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 15 Total 142 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Develop containerized solutions on Azure

Skill tested: Diagnoses Azure Container Apps revision health, ingress connectivity, and scaling behavior.

A retailer deploys a container image to Azure Container Apps with ingress enabled and a minimum replica count of zero. A new revision appears in the portal, but requests to the app's hostname return errors and no replicas start. The container exits shortly after startup when run locally unless the application receives a required setting. The team configured that setting as a revision-scoped environment variable, but the manifest references a different variable name. The retailer needs the quickest reliable diagnosis before changing scaling settings. What should the engineer do first?

Correct Answer: A. Inspect the revision's replica events and container logs, then correct the mismatched environment-variable reference and redeploy.
Explanation:

A failed startup caused by a missing required setting can leave a revision unable to serve traffic; logs and replica events provide the evidence needed to confirm that failure. Correcting the variable-name mismatch and deploying a new revision addresses the known configuration defect. Raising the minimum replica count does not fix startup, while HTTP scaling cannot help an application that has not become healthy. Toggling ingress is unrelated to the container's configuration and would not repair the revision.

Question 2

New Multiple answers

Topic: Develop containerized solutions on Azure

Skill tested: Uses AKS deployment manifests and diagnostics to validate image rollout and pod connectivity.

A software team deploys a new API version to AKS by updating a Deployment manifest to reference a new Azure Container Registry image tag. The Deployment reports available replicas, but a subset of requests still returns the old response. The team must verify that the intended image is running and determine whether service routing includes only ready pods. It cannot delete the namespace or interrupt healthy old replicas during diagnosis. Which TWO actions are most appropriate? Select TWO.

Correct Answer: A. Check pod readiness conditions and events, and verify the Service selector matches the intended Deployment pod labels.; B. Inspect the Deployment's image and rollout status, then inspect pod details to confirm the image actually pulled by each replica.
Explanation:

Deployment rollout status and pod details reveal whether replicas have adopted the desired image or are still running another image. Readiness conditions and events help identify pods that should not receive traffic, while checking the Service selector verifies that it targets the intended set of pods. Deleting all pods risks disrupting healthy capacity and does not diagnose the rollout. A LoadBalancer does not select pods by version, and a standalone Pod bypasses the Deployment's rollout and replica management.

Question 3

New Single answer

Topic: Develop containerized solutions on Azure

Skill tested: Selects immutable image references to make AKS rollouts reproducible and observable.

A financial-services team deploys a containerized worker to AKS from Azure Container Registry. Its manifest uses the mutable tag `production`. During an incident, the team cannot determine which image digest is running on each node, and restarting a pod may pull a different build than the one that was originally tested. Deployments must remain automated and support safe rolling updates. Which change best addresses the problem?

Correct Answer: A. Use a unique immutable build tag in the Deployment and record the associated image digest in the release process.
Explanation:

A unique immutable tag, ideally accompanied by the resolved digest, makes the artifact in a rollout identifiable and reproducible. Updating the Deployment's image reference then triggers a controlled rollout while preserving the ability to inspect which build is running. `Always` with a mutable tag makes restarts less predictable, not more. `Never` depends on manually preloading every node, and `latest` remains mutable; increasing surge only changes rollout capacity, not artifact identity.

Question 4

New Single answer

Topic: Develop AI solutions by using Azure data management services

Skill tested: Chooses Cosmos DB vector indexing and partitioning to support embedding similarity retrieval.

A document-search application stores one embedding vector and metadata record per document in Azure Cosmos DB for NoSQL. Each search must retrieve semantically similar documents and then apply a tenant filter. The collection is expected to grow substantially, and the team wants vector queries to avoid scanning every document while preserving tenant isolation in its data model. Which design is most appropriate?

Correct Answer: C. Store embeddings as arrays, configure a supported vector index on the embedding path, and partition data using a tenant-oriented key aligned with the query pattern.
Explanation:

Cosmos DB vector search requires embedding values in a supported vector representation and an explicitly configured vector index for the embedding path; a vector index is not created merely by enabling default indexing. A partition key chosen around tenant access helps align tenant-filtered workloads with data distribution, though the precise key should reflect scale and query patterns. JSON strings cannot be used as numeric vectors for similarity search. Client-side similarity over a full scan, an unpartitioned container, or one container per document fails the stated scale and operational goals.

Question 5

New Multiple answers

Topic: Develop AI solutions by using Azure data management services

Skill tested: Evaluates Cosmos DB RU consumption and latency when tuning vector and metadata indexing.

A support platform performs vector similarity searches in Azure Cosmos DB for NoSQL. After adding metadata fields and broadening the indexing policy, the team observes higher request-unit consumption and inconsistent query latency. It must preserve the vector retrieval experience and continue filtering on two frequently used metadata properties. The team wants evidence before changing the schema or index configuration. Which TWO actions are most appropriate? Select TWO.

Correct Answer: D. Review the indexing policy and vector index configuration against the actual vector and metadata query paths, then test a narrower policy.; E. Compare request charge and latency for representative queries before and after the indexing change, keeping partition and result-size conditions consistent.
Explanation:

A controlled comparison of request charge and latency isolates the impact of indexing changes; query shape, partition scope, and result size should remain comparable. Reviewing the policy against actual query paths can identify unnecessary indexing work while retaining the vector index and coverage needed for the two metadata filters. A full scan is not an appropriate production remedy, and a longer client timeout masks symptoms without improving efficiency. RU charge is a useful measure of the work a Cosmos DB request consumes.

Question 6

New Single answer

Topic: Develop AI solutions by using Azure data management services

Skill tested: Selects PostgreSQL vector indexing based on embedding distance and query requirements.

A recommendation service stores embeddings in Azure Database for PostgreSQL using the `pgvector` extension. The dataset has grown beyond the point where a sequential scan meets the latency objective. Queries use a cosine-distance operator, and the team wants an approximate nearest-neighbor index while retaining the ability to tune the recall-versus-speed tradeoff. Which approach should the team take?

Correct Answer: D. Create a `pgvector` HNSW index using the cosine operator class, then evaluate recall and latency with representative queries.
Explanation:

An HNSW index provided by `pgvector`, configured with the cosine-distance operator class that matches the query, supports approximate nearest-neighbor retrieval and can be evaluated for its recall and latency tradeoff. A B-tree or hash index does not provide the required distance ordering for vector similarity. Converting vectors to text changes their representation and full-text search does not implement cosine nearest-neighbor search. The index and query operator must be compatible for the index to assist the search.

Question 7

New Single answer

Topic: Connect to and consume Azure services

Skill tested: Configures Service Bus dead-letter handling and safe message processing in an event-driven workflow.

An order-processing Function uses an Azure Service Bus queue trigger. A message that repeatedly fails because its payload is permanently invalid should not block useful work, and operators must be able to inspect and replay it after correcting the underlying data. The processing function can be retried for transient dependency failures, but the system must avoid silently discarding messages. Which design best meets these requirements?

Correct Answer: D. Allow failed processing attempts to reach the queue's configured maximum delivery count, then inspect and manage the message in the dead-letter queue.
Explanation:

Service Bus moves a message to the dead-letter subqueue when its delivery count exceeds the configured maximum, allowing operators to inspect and later resubmit or otherwise manage poison messages. Transient failures can be retried through normal delivery behavior, while the dead-letter path prevents a permanently invalid message from being silently lost. Catching errors and returning success completes the message. A delivery count of one can dead-letter transient failures prematurely, and an unrelated Event Grid topic does not provide the required Service Bus dead-letter workflow.

Question 8

New Multiple answers

Topic: Connect to and consume Azure services

Skill tested: Designs Event Grid filtering and Azure Function retry behavior for event-driven processing.

A logistics company publishes shipment events to an Event Grid topic. Two Azure Functions subscribe: one processes only `shipment.delayed` events for a specific region, and another handles all shipment event types. Occasional downstream timeouts should be retried, while unrelated event types should not invoke the regional function. The company also needs failed deliveries to be observable rather than treated as successful processing. Which TWO configuration choices best satisfy these requirements? Select TWO.

Correct Answer: A. Configure the Function's Event Grid-trigger processing to fail on transient errors so Event Grid can apply its delivery retry behavior.; E. Configure an Event Grid subscription filter for the regional function using the event type and relevant subject or data criteria.
Explanation:

Event Grid subscription filters limit which events are delivered to a subscriber, avoiding unnecessary Function invocations for unrelated types or regions. When processing fails, the handler must report failure rather than acknowledge success so Event Grid's delivery retry behavior can operate; delivery and retry policy should also be monitored and configured for the workload. Filtering inside the function wastes invocations. Returning success after a timeout prevents a retry, and a Service Bus trigger cannot consume a topic event without a valid delivery integration.

Question 9

New Multiple answers

Topic: Connect to and consume Azure services

Skill tested: Uses Service Bus message properties and subscription rules to route events without duplicate processing.

A billing platform sends several event types to a Service Bus topic. One subscription should receive only `InvoiceApproved` messages, while a second subscription receives all event types for auditing. Publishers already set a stable `EventType` application property. The system must avoid changing publishers and must not create separate topics for each consumer. Which TWO actions should the engineer take? Select TWO.

Correct Answer: B. Configure the audit subscription to retain its default match-all rule, removing any unintended restrictive rules.; C. Add a SQL filter rule to the first subscription that matches the `EventType` application property to `InvoiceApproved`.
Explanation:

A subscription rule using a SQL filter can match the existing application property, so the first consumer receives only approved-invoice messages without publisher changes. The audit subscription must remain match-all to receive every event; if custom rules exist, the default rule may need to be removed or restored appropriately to ensure the intended result. Filtering the audit subscription contradicts its requirement. Duplicate detection is not per-subscription event routing, and separate queues would require the publisher changes the scenario excludes.

Question 10

New Single answer

Topic: Secure, monitor, troubleshoot Azure solutions

Skill tested: Uses managed identity and Key Vault authorization for secure application secret retrieval.

A web application running on an Azure virtual machine needs a database password stored in Azure Key Vault. Security policy prohibits secrets in deployment scripts, VM configuration, and source code. The application must retrieve the secret at runtime, and administrators want to avoid distributing long-lived credentials to the VM. Which approach is most appropriate?

Correct Answer: C. Enable a managed identity for the virtual machine, grant it the minimum required Key Vault secret permission through the configured authorization model, and use that identity to retrieve the secret.
Explanation:

A VM managed identity gives the application an Azure identity without embedding or distributing a client secret. Granting that identity only the required Key Vault secret access allows runtime retrieval while preserving centralized authorization and auditability. An encrypted setting or startup script still places sensitive material in the VM environment, and a service-principal secret creates another credential that must be protected and rotated. Plain-text App Configuration with anonymous access does not meet the secret-management requirement.

Question 11

New Single answer

Topic: Secure, monitor, troubleshoot Azure solutions

Skill tested: Separates application configuration from secrets using Azure App Configuration and Key Vault references.

A team hosts several Azure Functions that share nonsecret feature flags and service endpoints, while each environment has distinct credentials kept in Key Vault. The team wants centralized configuration updates without redeploying code and must ensure that secret values remain in Key Vault rather than being copied into ordinary configuration storage. Which design best meets these goals?

Correct Answer: D. Store nonsecret settings in Azure App Configuration and use Key Vault references for secrets, granting the Function identities appropriate access to both services.
Explanation:

Azure App Configuration centralizes nonsecret settings such as feature flags and endpoints, while Key Vault references keep secret values in Key Vault and allow authorized applications to resolve them. The Function identities need appropriate access to App Configuration and to the referenced secrets. Storing credential values directly in App Configuration violates the stated separation, even with access controls. Keeping every setting in Key Vault and redeploying for flag changes adds avoidable operational friction; placing secrets in App Configuration as plain values is also unsuitable.

Question 12

New Single answer

Topic: Secure, monitor, troubleshoot Azure solutions

Skill tested: Correlates distributed traces with KQL telemetry to locate latency across a request path.

A customer request passes through an API, an Azure Function, and a database call. Users report intermittent delays, but aggregate request-duration metrics do not reveal which dependency is responsible. The services emit OpenTelemetry traces with a shared trace context, and telemetry is available in Application Insights. The team needs to identify the slow span for affected requests before changing timeouts or scaling. What should the engineer do next?

Correct Answer: A. Use the Application Insights transaction details or distributed-trace view to follow a slow request across services, then query correlated request and dependency telemetry with KQL.
Explanation:

Distributed trace context links the API request, Function operation, and dependency spans, allowing the team to isolate latency on a particular request path. Application Insights transaction details and KQL queries over correlated request and dependency telemetry provide evidence for the slow component. Raising all timeouts may mask a bottleneck and does not identify its cause. Disabling propagation destroys useful correlation, while restarts and CPU-only comparisons do not diagnose latency across the complete request path.