Microsoft AI-200 Practice Test 5
Question 40
Northwind Learning is reviewing an Azure AI workload: A semantic response cache needs to find similar questions rather than exact identical key strings. The business goal is to enable vector similarity retrieval in the managed Redis service. A change is being evaluated before rollout. The team has documented application and data boundaries. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
- Invalidate affected cache keys or use versioned namespaces whenever source documents change.
- Create a supported Redis vector search index with correct vector field type and distance metric.
- Build an HNSW index with the appropriate vector_cosine_ops operator class where supported.
Explanation
Correct Answer
C:
The service requires a supported Redis search/vector index with consistent embedding dimensions. Create a supported Redis vector search index with correct vector field type and distance metric.
Incorrect Answers
A:
“Implement cache-aside lookup with a bounded TTL and version-aware key names.” is a design or implementation response to the condition: It currently bypasses Redis and stores no expiration for cacheable responses. This question instead requires an action that can enable vector similarity retrieval in the managed Redis service. The service requires a supported Redis search/vector index with consistent embedding dimensions. Create a supported Redis vector search index with correct vector field type and distance metric.
B:
“Invalidate affected cache keys or use versioned namespaces whenever source documents change.” is a design or implementation response to the condition: A human editor corrects a confidential knowledge article but AI responses keep reading the previous cached chunk. This question instead requires an action that can enable vector similarity retrieval in the managed Redis service. The service requires a supported Redis search/vector index with consistent embedding dimensions. Create a supported Redis vector search index with correct vector field type and distance metric.
D:
“Build an HNSW index with the appropriate vector_cosine_ops operator class where supported.” is a design or implementation response to the condition: The vector column has no suitable approximate nearest neighbor index for the cosine operator. This question instead requires an action that can enable vector similarity retrieval in the managed Redis service. The service requires a supported Redis search/vector index with consistent embedding dimensions. Create a supported Redis vector search index with correct vector field type and distance metric.
Question 41
At Seabright Media, an Azure Key Vault permission grant has no effect because the team mixed RBAC role assignments with old access policies. Evidence: The vault is configured to use the Azure RBAC permission model for data-plane authorization. The objective is to apply permissions in the active Key Vault authorization model. Validate in a disposable environment before applying production changes. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor purge attempts, deleted-object inventory and retention exceptions.
- Monitor mislabeled key values and unexpected cross-environment feature settings.
- Monitor malformed JSON events and schema field name drift.
- Monitor permission model changes and broad secret officer assignments.
Explanation
Correct Answer
D:
The vault is configured to use the Azure RBAC permission model for data-plane authorization. Monitor permission model changes and broad secret officer assignments.
Incorrect Answers
A:
“Monitor purge attempts, deleted-object inventory and retention exceptions.” monitors this signal: The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. This question instead requires an action that can apply permissions in the active Key Vault authorization model. The vault is configured to use the Azure RBAC permission model for data-plane authorization. Monitor permission model changes and broad secret officer assignments.
B:
“Monitor mislabeled key values and unexpected cross-environment feature settings.” monitors this signal: The team created labeled keys yet the SDK filter does not select the requested environment label. This question instead requires an action that can apply permissions in the active Key Vault authorization model. The vault is configured to use the Azure RBAC permission model for data-plane authorization. Monitor permission model changes and broad secret officer assignments.
C:
“Monitor malformed JSON events and schema field name drift.” monitors this signal: The relevant correlation key is nested inside JSON rather than a top-level column. This question instead requires an action that can apply permissions in the active Key Vault authorization model. The vault is configured to use the Azure RBAC permission model for data-plane authorization. Monitor permission model changes and broad secret officer assignments.
Question 42
At Summit Finance, a support search engine needs to match exact product codes as well as semantic descriptions. Evidence: Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. The objective is to combine keyword and vector retrieval with controlled ranking and metadata filters. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which acceptance result most strongly demonstrates the requirement is met?
- Confirm unready documents remain hidden and a retry safely completes the record.
- Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.
- Verify only approved published documents are returned regardless of vector similarity.
- Confirm each change batch is processed and checkpoints advance without permanent gaps.
Explanation
Correct Answer
B:
Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.
Incorrect Answers
A:
“Confirm unready documents remain hidden and a retry safely completes the record.” validates an outcome in a case where the evidence is: The database stores document status and embeddings in related rows without a reliable completion boundary. This question instead requires an action that can combine keyword and vector retrieval with controlled ranking and metadata filters. Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.
C:
“Verify only approved published documents are returned regardless of vector similarity.” validates an outcome in a case where the evidence is: The vector table and document ACL table are normalized with a shared document_id. This question instead requires an action that can combine keyword and vector retrieval with controlled ranking and metadata filters. Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.
D:
“Confirm each change batch is processed and checkpoints advance without permanent gaps.” validates an outcome in a case where the evidence is: The change feed processor relies on a shared lease container and correct start position. This question instead requires an action that can combine keyword and vector retrieval with controlled ranking and metadata filters. Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.
Question 43
At Atlas Support, an ingestion job writes metadata before embedding generation finishes, exposing documents with empty vectors. Evidence: The database stores document status and embeddings in related rows without a reliable completion boundary. The objective is to prevent partially ingested documents from appearing as searchable content. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect foreign keys, join predicates, publication flags and query plan.
- Inspect index DDL and EXPLAIN plan for the actual cosine distance ORDER BY.
- Inspect transaction boundaries, status updates, retry logic and failed embedding batches.
- Inspect durability, failover behavior, key eviction settings and source-of-truth design.
Explanation
Correct Answer
C:
The database stores document status and embeddings in related rows without a reliable completion boundary. Inspect transaction boundaries, status updates, retry logic and failed embedding batches.
Incorrect Answers
A:
“Inspect foreign keys, join predicates, publication flags and query plan.” is a diagnostic step for the reported condition: The vector table and document ACL table are normalized with a shared document_id. This question instead requires an action that can prevent partially ingested documents from appearing as searchable content. The database stores document status and embeddings in related rows without a reliable completion boundary. Inspect transaction boundaries, status updates, retry logic and failed embedding batches.
B:
A pgvector cosine operator-class mismatch affects similarity-search index use; it does not make a partially written document and its embeddings atomic. Transactionally coordinate ingest and visibility so incomplete records are not searchable.
D:
“Inspect durability, failover behavior, key eviction settings and source-of-truth design.” is a diagnostic step for the reported condition: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can prevent partially ingested documents from appearing as searchable content. The database stores document status and embeddings in related rows without a reliable completion boundary. Inspect transaction boundaries, status updates, retry logic and failed embedding batches.
Question 44
At Harbor Technology, a document ingestion service sends independent jobs to one worker pool but the architect proposes publishing every job to a topic with multiple subscriptions. Evidence: Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. The objective is to choose the messaging pattern that matches competing consumers rather than broadcast subscribers. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect Content-Type, event schema, id, source, type, subject and data structure.
- Inspect number of independent subscribers, required delivery semantics and how work is partitioned.
- Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.
- Inspect the Event Grid subscription endpoint, trigger binding and event filters.
Explanation
Correct Answer
B:
Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. Inspect number of independent subscribers, required delivery semantics and how work is partitioned.
Incorrect Answers
A:
“Inspect Content-Type, event schema, id, source, type, subject and data structure.” is a diagnostic step for the reported condition: The Python function expects the older Event Grid event wrapper and reads nonexistent fields. This question instead requires an action that can choose the messaging pattern that matches competing consumers rather than broadcast subscribers. Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. Inspect number of independent subscribers, required delivery semantics and how work is partitioned.
C:
“Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.” is a diagnostic step for the reported condition: If the database transaction fails afterward the work is lost because the message was already removed. This question instead requires an action that can choose the messaging pattern that matches competing consumers rather than broadcast subscribers. Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. Inspect number of independent subscribers, required delivery semantics and how work is partitioned.
D:
“Inspect the Event Grid subscription endpoint, trigger binding and event filters.” is a diagnostic step for the reported condition: The Event Grid event subscription points to an outdated function endpoint and event type. This question instead requires an action that can choose the messaging pattern that matches competing consumers rather than broadcast subscribers. Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. Inspect number of independent subscribers, required delivery semantics and how work is partitioned.
Question 45
At Seabright Media, a container host with no public internet route cannot resolve its private registry to a reachable address. Evidence: The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. The objective is to use a private registry network path without re-enabling public access. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Configure an ACR Task trigger for supported base-image updates with tests before promotion.
- Introduce a signed artifact verification gate before release using a supported image-signing workflow.
- Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.
- Deploy an event-driven Container Apps Job with scoped queue trigger and concurrency limits.
Explanation
Correct Answer
C:
The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.
Incorrect Answers
A:
“Configure an ACR Task trigger for supported base-image updates with tests before promotion.” is a design or implementation response to the condition: The pipeline rebuilds only when developers push code and never tracks upstream base image updates. This question instead requires an action that can use a private registry network path without re-enabling public access. The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.
B:
“Introduce a signed artifact verification gate before release using a supported image-signing workflow.” is a design or implementation response to the condition: An engineer can push an image directly to the registry without required provenance checks. This question instead requires an action that can use a private registry network path without re-enabling public access. The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.
D:
“Deploy an event-driven Container Apps Job with scoped queue trigger and concurrency limits.” is a design or implementation response to the condition: A nightly AI enrichment task needs a container that starts on queued work and exits when finished. This question instead requires an action that can use a private registry network path without re-enabling public access. The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.
Question 46
At Cobalt Research, a billing assistant writes the only copy of user preferences to an eviction-prone Redis cache. Evidence: The configured eviction policy can discard keys when memory pressure rises. The objective is to keep authoritative records in durable storage while treating Redis as reconstructible cache. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Use bounded single-flight locking or stale-while-revalidate with TTL jitter where safe.
- Persist authoritative user data in a durable database and populate Redis from that source.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
- Tune ef_search or probes and preserve an exact-query benchmark for measured recall.
Explanation
Correct Answer
B:
Store the authoritative preference record in durable storage and treat Redis as a reconstructible cache with appropriate expiration and access controls. Because eviction can discard cache keys under memory pressure, a preference must still be recoverable from the database; a longer TTL or different eviction rule alone cannot turn Redis into the only durable source of truth.
Incorrect Answers
A:
“Use bounded single-flight locking or stale-while-revalidate with TTL jitter where safe.” is a design or implementation response to the condition: A frequently requested retrieval answer expires every hour and triggers a sudden spike in model API calls. This question instead requires an action that can keep authoritative records in durable storage while treating Redis as reconstructible cache. Store the authoritative preference record in durable storage and treat Redis as a reconstructible cache with appropriate expiration and access controls. Because eviction can discard cache keys under memory pressure, a preference must still be recoverable from the database; a longer TTL or different eviction rule alone cannot turn Redis into the only durable source of truth.
C:
“Implement cache-aside lookup with a bounded TTL and version-aware key names.” is a design or implementation response to the condition: It currently bypasses Redis and stores no expiration for cacheable responses. This question instead requires an action that can keep authoritative records in durable storage while treating Redis as reconstructible cache. Store the authoritative preference record in durable storage and treat Redis as a reconstructible cache with appropriate expiration and access controls. Because eviction can discard cache keys under memory pressure, a preference must still be recoverable from the database; a longer TTL or different eviction rule alone cannot turn Redis into the only durable source of truth.
D:
“Tune ef_search or probes and preserve an exact-query benchmark for measured recall.” is a design or implementation response to the condition: A clinical document search tool needs predictable recall even when approximate vector search is enabled. This question instead requires an action that can keep authoritative records in durable storage while treating Redis as reconstructible cache. Store the authoritative preference record in durable storage and treat Redis as a reconstructible cache with appropriate expiration and access controls. Because eviction can discard cache keys under memory pressure, a preference must still be recoverable from the database; a longer TTL or different eviction rule alone cannot turn Redis into the only durable source of truth.
Question 47
At Riverbend Health, an SDK-based AI service authenticates to a Cosmos DB endpoint with a primary account key that many developers know. Evidence: The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. The objective is to prefer scoped token credentials instead of shared database secrets. Preserve end-to-end correlation and avoid copying sensitive production data. Which controlled pilot most directly validates the proposed approach?
- Load the same harmless key from development and production labels in two staging clients.
- Run a benign item read through the app identity and try an unauthorized container read.
- Delete a disposable test secret in a staging vault and recover it within the retention period.
- Deploy a harmless staging revision that emits a known error signature.
Explanation
Correct Answer
B:
The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Run a benign item read through the app identity and try an unauthorized container read.
Incorrect Answers
A:
App Configuration labels choose environment-specific settings. They do not replace a shared Cosmos DB key with scoped token-based authentication; use managed identity with the appropriate data-plane RBAC roles.
C:
“Delete a disposable test secret in a staging vault and recover it within the retention period.” tests a proposed change for the condition: The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. This question instead requires an action that can prefer scoped token credentials instead of shared database secrets. The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Run a benign item read through the app identity and try an unauthorized container read.
D:
“Deploy a harmless staging revision that emits a known error signature.” tests a proposed change for the condition: The log records include revision identifiers that are not used in the investigation. This question instead requires an action that can prefer scoped token credentials instead of shared database secrets. The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Run a benign item read through the app identity and try an unauthorized container read.
Question 48
Northwind Learning is reviewing an Azure AI workload: A Python AI endpoint runs on port 8080 in a custom App Service image but fails the platform's health probe. The business goal is to align container listener configuration and App Service startup routing. A change is being evaluated before rollout. The team has documented application and data boundaries. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Enable supported ACR geo-replication in the required regions under one registry namespace.
- Configure an ACR Task trigger for supported base-image updates with tests before promotion.
- Configure the correct custom-container port and bind the application to all container interfaces.
- Assign a least-privilege managed identity role and use Azure Identity credentials from the app.
Explanation
Correct Answer
C:
The application listens on an internal port different from the one expected by the hosting configuration. Configure the correct custom-container port and bind the application to all container interfaces.
Incorrect Answers
A:
“Enable supported ACR geo-replication in the required regions under one registry namespace.” is a design or implementation response to the condition: Its Premium registry has no replica in the region where new workloads are starting. This question instead requires an action that can align container listener configuration and App Service startup routing. The application listens on an internal port different from the one expected by the hosting configuration. Configure the correct custom-container port and bind the application to all container interfaces.
B:
ACR Tasks can rebuild an image when a base layer changes. They do not correct the port at which an already-running App Service container listens; its listener and WEBSITES_PORT or equivalent routing settings must agree.
D:
“Assign a least-privilege managed identity role and use Azure Identity credentials from the app.” is a design or implementation response to the condition: An Azure Container App needs to access Cosmos DB without storing a service key in its image. This question instead requires an action that can align container listener configuration and App Service startup routing. The application listens on an internal port different from the one expected by the hosting configuration. Configure the correct custom-container port and bind the application to all container interfaces.
Question 49
Sapphire Energy is reviewing an Azure AI workload: A recommendation system has an approximate vector index whose top results are unstable after massive new ingestion. The business goal is to tune IVFFlat indexing based on representative populated vectors. A change is being evaluated before rollout. The team has documented application and data boundaries. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.
- Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
- Allowlist and create the supported vector extension in the intended database under change control.
- Choose an appropriate autoscale or provisioned RU strategy and optimize expensive operations first.
Explanation
Correct Answer
B:
The approximate index requires suitable data distribution and tuning for list count and probes. Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
Incorrect Answers
A:
“Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.” is a design or implementation response to the condition: A chatbot retrieves a high-scoring embedding from a document that an editor has marked unpublished. This question instead requires an action that can tune IVFFlat indexing based on representative populated vectors. The approximate index requires suitable data distribution and tuning for list count and probes. Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
C:
“Allowlist and create the supported vector extension in the intended database under change control.” is a design or implementation response to the condition: A RAG backend tries to create a pgvector index but gets a missing type error. This question instead requires an action that can tune IVFFlat indexing based on representative populated vectors. The approximate index requires suitable data distribution and tuning for list count and probes. Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
D:
“Choose an appropriate autoscale or provisioned RU strategy and optimize expensive operations first.” is a design or implementation response to the condition: Provisioned RU capacity and partition distribution are below the write and query demand. This question instead requires an action that can tune IVFFlat indexing based on representative populated vectors. The approximate index requires suitable data distribution and tuning for list count and probes. Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
Question 50
At Riverbend Health, a release process deploys the latest tag and unexpectedly runs a different container than the one that passed testing. Evidence: The mutable tag was reassigned to a newer image after release approval. The objective is to pin deployment to the approved tested image rather than a moving tag. Validate in a disposable environment before applying production changes. Which controlled pilot most directly validates the proposed approach?
- Deploy a synthetic versioned image pinned to its sha256 digest in a test service.
- Swap a harmless updated staging version into a nonproduction environment and simulate a failed acceptance check.
- Submit one signed test image and one unsigned test image to the staging gate.
- Make one permitted request from a sibling test app and one prohibited internet request.
Explanation
Correct Answer
A:
The mutable tag was reassigned to a newer image after release approval. Deploy a synthetic versioned image pinned to its sha256 digest in a test service.
Incorrect Answers
B:
“Swap a harmless updated staging version into a nonproduction environment and simulate a failed acceptance check.” tests a proposed change for the condition: The team has a healthy staging slot with a previously verified container image. This question instead requires an action that can pin deployment to the approved tested image rather than a moving tag. The mutable tag was reassigned to a newer image after release approval. Deploy a synthetic versioned image pinned to its sha256 digest in a test service.
C:
“Submit one signed test image and one unsigned test image to the staging gate.” tests a proposed change for the condition: An engineer can push an image directly to the registry without required provenance checks. This question instead requires an action that can pin deployment to the approved tested image rather than a moving tag. The mutable tag was reassigned to a newer image after release approval. Deploy a synthetic versioned image pinned to its sha256 digest in a test service.
D:
“Make one permitted request from a sibling test app and one prohibited internet request.” tests a proposed change for the condition: The Container App ingress configuration is external and the environment has no intended public API for the worker. This question instead requires an action that can pin deployment to the approved tested image rather than a moving tag. The mutable tag was reassigned to a newer image after release approval. Deploy a synthetic versioned image pinned to its sha256 digest in a test service.