Microsoft AI-200 Practice Test 23 - Prepaway
Practice Exams:

Pass Microsoft AI-200 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers!

30 Days Free Updates, Instant Download!

Verified By Experts
Premium Bundle
$14.99
$94.99 $109.98

AI-200 Premium Bundle


  • Premium File 174 Questions & Answers. Last update: Nov 28, 2026
  • Study Guide 153 Pages

Microsoft AI-200 Practice Test 23

Question 220

A worker receives a Service Bus message in PeekLock mode, then crashes before completing it; the operator incorrectly assumes it was removed. Which TWO choices together identify the recommended action and a meaningful success test?

  1. Publish a well-defined custom Event Grid event using a supported topic or namespace mechanism with schema and identity controls.
  2. Subscribe to the appropriate Event Grid storage events and deliver them to an authenticated function or event handler.
  3. Make the handler idempotent and complete messages only after durable work succeeds, renewing locks for long processing.
  4. A deliberately failed test event appears in the designated dead-letter storage for controlled replay.
  5. A deliberate crash causes safe redelivery and one logical output record.

Explanation

Correct Answers

C:

Make the handler idempotent and complete messages only after durable work succeeds, renewing locks for long processing. The diagnostic evidence is: Delivery history shows the same message reappears after its lock expires without settlement.

E:

A deliberate crash causes safe redelivery and one logical output record. The diagnostic evidence is: Delivery history shows the same message reappears after its lock expires without settlement.

Incorrect Answers

A:

Publish a well-defined custom Event Grid event using a supported topic or namespace mechanism with schema and identity controls. The diagnostic evidence is: Delivery history shows the same message reappears after its lock expires without settlement. Make the handler idempotent and complete messages only after durable work succeeds, renewing locks for long processing.

B:

Subscribe to the appropriate Event Grid storage events and deliver them to an authenticated function or event handler. The diagnostic evidence is: Delivery history shows the same message reappears after its lock expires without settlement. Make the handler idempotent and complete messages only after durable work succeeds, renewing locks for long processing.

D:

A deliberately failed test event appears in the designated dead-letter storage for controlled replay. The diagnostic evidence is: Delivery history shows the same message reappears after its lock expires without settlement. Make the handler idempotent and complete messages only after durable work succeeds, renewing locks for long processing.

Question 221

Each uploaded transcript should initiate one bounded processing task, but the current Container Apps service requires a manual start. What should the Azure developer recommend FIRST in this situation?

  1. Move the password to a protected Kubernetes Secret or supported external secret provider and use the ConfigMap only for non-secret settings.
  2. Tune Container Apps min and max replica settings and a supported event-driven scaling rule for the backing queue.
  3. Configure a readiness probe that reflects actual dependency readiness and verify deployment rollout settings.
  4. Configure a Container Apps event-driven Job with a supported scale trigger and idempotent processing.

Explanation

Correct Answer

D:

Configure a Container Apps event-driven Job with a supported scale trigger and idempotent processing. The case reports: Each uploaded transcript should initiate one bounded processing task, but the current Container Apps service requires a manual start.

Incorrect Answers

A:

Move the password to a protected Kubernetes Secret or supported external secret provider and use the ConfigMap only for non-secret settings. The case reports: Each uploaded transcript should initiate one bounded processing task, but the current Container Apps service requires a manual start. Configure a Container Apps event-driven Job with a supported scale trigger and idempotent processing.

B:

Tune Container Apps min and max replica settings and a supported event-driven scaling rule for the backing queue. The case reports: Each uploaded transcript should initiate one bounded processing task, but the current Container Apps service requires a manual start. Configure a Container Apps event-driven Job with a supported scale trigger and idempotent processing.

C:

Configure a readiness probe that reflects actual dependency readiness and verify deployment rollout settings. The case reports: Each uploaded transcript should initiate one bounded processing task, but the current Container Apps service requires a manual start. Configure a Container Apps event-driven Job with a supported scale trigger and idempotent processing.

Question 222

A container build passes a database password through a Dockerfile ARG and leaves its value exposed in image build history. Which recorded observation would most clearly support the suspected issue?

  1. The registry has manual builds but no scheduled task runs during the required compliance window.
  2. Role assignments grant broad registry modification rights to a read-only deployment principal.
  3. The built image history includes an argument value matching the application's database credential.
  4. Two manually built images carry the same release label but have different package inventories.

Explanation

Correct Answer

C:

The built image history includes an argument value matching the application's database credential. Build-time secrets must not be persisted in container layers or exposed in image metadata.

Incorrect Answers

A:

The registry has manual builds but no scheduled task runs during the required compliance window. Build-time secrets must not be persisted in container layers or exposed in image metadata. The built image history includes an argument value matching the application's database credential.

B:

Role assignments grant broad registry modification rights to a read-only deployment principal. Build-time secrets must not be persisted in container layers or exposed in image metadata. The built image history includes an argument value matching the application's database credential.

D:

Two manually built images carry the same release label but have different package inventories. Build-time secrets must not be persisted in container layers or exposed in image metadata. The built image history includes an argument value matching the application's database credential.

Question 223

A serverless backend stores a long-lived PostgreSQL administrator password in source code to authenticate every query. What is the BEST next action for the specific Azure environment described?

  1. Measure CPU, memory, storage IOPS, connection activity, and query plans before selecting a compute or indexing scale adjustment.
  2. Use a supported Microsoft Entra authentication or managed identity pattern with minimum database privileges and secure pooling.
  3. Check documented index dimension limits and choose a compatible embedding, dimensionality reduction, or supported index approach.
  4. Use an appropriate transaction and referential constraints to commit related relational and vector records atomically.

Explanation

Correct Answer

B:

Use a supported Microsoft Entra authentication or managed identity pattern with minimum database privileges and secure pooling.

Incorrect Answers

A:

Measure CPU, memory, storage IOPS, connection activity, and query plans before selecting a compute or indexing scale adjustment. Use a supported Microsoft Entra authentication or managed identity pattern with minimum database privileges and secure pooling.

C:

Check documented index dimension limits and choose a compatible embedding, dimensionality reduction, or supported index approach. Use a supported Microsoft Entra authentication or managed identity pattern with minimum database privileges and secure pooling.

D:

Use an appropriate transaction and referential constraints to commit related relational and vector records atomically. Use a supported Microsoft Entra authentication or managed identity pattern with minimum database privileges and secure pooling.

Question 224

An AI service secret was accessed unexpectedly, but the security team has no record of which principal requested it. What concept is most relevant to understanding the decision?

  1. App Configuration centralizes settings; Key Vault remains the appropriate service for protected secret values.
  2. Configuration services should be accessed by scoped workload identity where supported.
  3. External secret-store integration must combine workload identity, retrieval permissions, and lifecycle management.
  4. Secret storage security includes evidence of use, not only whether reads are allowed.

Explanation

Correct Answer

D:

Secret storage security includes evidence of use, not only whether reads are allowed.

Incorrect Answers

A:

App Configuration centralizes settings; Key Vault remains the appropriate service for protected secret values. Secret storage security includes evidence of use, not only whether reads are allowed.

B:

Configuration services should be accessed by scoped workload identity where supported. Secret storage security includes evidence of use, not only whether reads are allowed.

C:

External secret-store integration must combine workload identity, retrieval permissions, and lifecycle management. Secret storage security includes evidence of use, not only whether reads are allowed.

Question 225

A RAG service runs a full-collection query over many tenants to retrieve a single customer's recent feedback and consumes excessive Request Units. Which TWO choices together identify the recommended action and a meaningful success test?

  1. A tenant-scoped query returns the same authorized items with lower measured RU usage.
  2. A valid index is created for the selected dimensions and a controlled nearest-neighbor query succeeds.
  3. Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval.
  4. Evaluate autoscale throughput settings, partition distribution, and retry handling against observed request patterns.
  5. Choose a supported diskANN vector index for the relevant path and validate approximate recall and RU trade-offs.

Explanation

Correct Answers

A:

A tenant-scoped query returns the same authorized items with lower measured RU usage. Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval.

C:

Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval. A tenant-scoped query returns the same authorized items with lower measured RU usage.

Incorrect Answers

B:

A valid index is created for the selected dimensions and a controlled nearest-neighbor query succeeds. A tenant-scoped query returns the same authorized items with lower measured RU usage.

D:

Evaluate autoscale throughput settings, partition distribution, and retry handling against observed request patterns. Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval.

E:

Choose a supported diskANN vector index for the relevant path and validate approximate recall and RU trade-offs. Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval.

Question 226

A Functions app update requires a quick rollback plan, but the team assumes every hosting plan supports identical deployment-slot behavior. What evidence should be examined to narrow the cause?

  1. Invocation completes successfully while writes appear in an unexpected destination container.
  2. Application Insights shows execution durations approaching the configured function timeout.
  3. The environment's plan does not provide the slot capability expected by the release script.
  4. The monolithic function loses progress after restarts and must repeat expensive completed steps.

Explanation

Correct Answer

C:

The environment's plan does not provide the slot capability expected by the release script. Serverless deployment features and limits depend on the selected Functions hosting plan.

Incorrect Answers

A:

Invocation completes successfully while writes appear in an unexpected destination container. Serverless deployment features and limits depend on the selected Functions hosting plan. The environment's plan does not provide the slot capability expected by the release script.

B:

Application Insights shows execution durations approaching the configured function timeout. Serverless deployment features and limits depend on the selected Functions hosting plan. The environment's plan does not provide the slot capability expected by the release script.

D:

The monolithic function loses progress after restarts and must repeat expensive completed steps. Serverless deployment features and limits depend on the selected Functions hosting plan. The environment's plan does not provide the slot capability expected by the release script.

Question 227

A function uses a long-lived storage account connection string and a compliance policy forbids embedded keys. Which design change MOST directly addresses the organization's stated security requirement?

  1. Mark environment-specific connection settings appropriately and verify swap behavior on the supported hosting configuration.
  2. Configure supported identity-based storage connection settings and grant the function identity only required data roles.
  3. Repair the required host storage configuration using a supported connection or identity-based setup and verify permissions.
  4. Configure supported retry and poison or dead-letter handling while logging the source event and sanitized error.

Explanation

Correct Answer

B:

Configure supported identity-based storage connection settings and grant the function identity only required data roles. The case reports: A function uses a long-lived storage account connection string and a compliance policy forbids embedded keys.

Incorrect Answers

A:

Mark environment-specific connection settings appropriately and verify swap behavior on the supported hosting configuration. The case reports: A function uses a long-lived storage account connection string and a compliance policy forbids embedded keys. Configure supported identity-based storage connection settings and grant the function identity only required data roles.

C:

Repair the required host storage configuration using a supported connection or identity-based setup and verify permissions. The case reports: A function uses a long-lived storage account connection string and a compliance policy forbids embedded keys. Configure supported identity-based storage connection settings and grant the function identity only required data roles.

D:

Configure supported retry and poison or dead-letter handling while logging the source event and sanitized error. The case reports: A function uses a long-lived storage account connection string and a compliance policy forbids embedded keys. Configure supported identity-based storage connection settings and grant the function identity only required data roles.

Question 228

A custom Python API listens on port 5000 in its container but Azure App Service repeatedly reports that the container did not respond to HTTP pings. Which security principle best explains why the proposed response fits the case?

  1. Scheduled image builds are independent of commits and base-image change triggers.
  2. Container hosting requires agreement between the application's listener and the platform's ingress configuration.
  3. Central image builds make provenance easier to validate, though pinning and scanning are still needed.
  4. Least privilege in a shared registry should align identities to required repositories and operations.

Explanation

Correct Answer

B:

Container hosting requires agreement between the application's listener and the platform's ingress configuration.

Incorrect Answers

A:

Scheduled image builds are independent of commits and base-image change triggers. Container hosting requires agreement between the application's listener and the platform's ingress configuration.

C:

Central image builds make provenance easier to validate, though pinning and scanning are still needed. Container hosting requires agreement between the application's listener and the platform's ingress configuration.

D:

Least privilege in a shared registry should align identities to required repositories and operations. Container hosting requires agreement between the application's listener and the platform's ingress configuration.

Question 229

A vector metadata service should be reachable by other AKS pods only, but its Kubernetes Service exposes an internet-facing load balancer. Which implementation choice most directly resolves this service problem?

  1. Move the password to a protected Kubernetes Secret or supported external secret provider and use the ConfigMap only for non-secret settings.
  2. Apply a supported AKS network-policy engine and explicit allowed ingress and egress paths for selected pods.
  3. Use an internal ClusterIP Service and route only the authorized in-cluster consumers to it.
  4. Use an Azure Container Apps Job with a scheduled trigger and explicit execution completion behavior.

Explanation

Correct Answer

C:

Use an internal ClusterIP Service and route only the authorized in-cluster consumers to it. The case reports: A vector metadata service should be reachable by other AKS pods only, but its Kubernetes Service exposes an internet-facing load balancer.

Incorrect Answers

A:

Move the password to a protected Kubernetes Secret or supported external secret provider and use the ConfigMap only for non-secret settings. The case reports: A vector metadata service should be reachable by other AKS pods only, but its Kubernetes Service exposes an internet-facing load balancer. Use an internal ClusterIP Service and route only the authorized in-cluster consumers to it.

B:

Apply a supported AKS network-policy engine and explicit allowed ingress and egress paths for selected pods. The case reports: A vector metadata service should be reachable by other AKS pods only, but its Kubernetes Service exposes an internet-facing load balancer. Use an internal ClusterIP Service and route only the authorized in-cluster consumers to it.

D:

Use an Azure Container Apps Job with a scheduled trigger and explicit execution completion behavior. The case reports: A vector metadata service should be reachable by other AKS pods only, but its Kubernetes Service exposes an internet-facing load balancer. Use an internal ClusterIP Service and route only the authorized in-cluster consumers to it.

Question 230

An embeddings service uses VectorDistance in a query without a result limit and its Request Unit consumption spikes with corpus size. What is the BEST next action for the specific Azure environment described?

  1. Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval.
  2. Use SDK-supported parameterized queries with an explicit partition scope and validate authorized inputs.
  3. Add an appropriate SELECT TOP N limit, partition and metadata filters where justified, and benchmark the query.
  4. Choose a supported diskANN vector index for the relevant path and validate approximate recall and RU trade-offs.

Explanation

Correct Answer

C:

Add an appropriate SELECT TOP N limit, partition and metadata filters where justified, and benchmark the query. The case reports: An embeddings service uses VectorDistance in a query without a result limit and its Request Unit consumption spikes with corpus size.

Incorrect Answers

A:

Use an appropriate tenant partition key and a scoped query predicate or point-read pattern for customer-specific retrieval. The case reports: An embeddings service uses VectorDistance in a query without a result limit and its Request Unit consumption spikes with corpus size. Add an appropriate SELECT TOP N limit, partition and metadata filters where justified, and benchmark the query.

B:

Use SDK-supported parameterized queries with an explicit partition scope and validate authorized inputs. The case reports: An embeddings service uses VectorDistance in a query without a result limit and its Request Unit consumption spikes with corpus size. Add an appropriate SELECT TOP N limit, partition and metadata filters where justified, and benchmark the query.

D:

Choose a supported diskANN vector index for the relevant path and validate approximate recall and RU trade-offs. The case reports: An embeddings service uses VectorDistance in a query without a result limit and its Request Unit consumption spikes with corpus size. Add an appropriate SELECT TOP N limit, partition and metadata filters where justified, and benchmark the query.

Developing AI Cloud Solutions on Azure (AI-200) Practice Tests