Microsoft AI-200 Practice Test 58
Question 570
At Redwood Banking, 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. Validate in a disposable environment before applying production changes. Which controlled pilot most directly validates the proposed approach?
- Run bounded ingestion and retrieval benchmarks on a resized nonproduction server.
- Simulate an embedding generation failure between metadata and vector insertion in staging.
- Benchmark a disposable IVFFlat index against exact neighbor search on known queries.
- Measure RU charge for a safe point read versus an equivalent cross-partition query.
Explanation
Correct Answer
B:
The database stores document status and embeddings in related rows without a reliable completion boundary. Simulate an embedding generation failure between metadata and vector insertion in staging.
Incorrect Answers
A:
“Run bounded ingestion and retrieval benchmarks on a resized nonproduction server.” tests a proposed change for the condition: Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. 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. Simulate an embedding generation failure between metadata and vector insertion in staging.
C:
“Benchmark a disposable IVFFlat index against exact neighbor search on known queries.” tests a proposed change for the condition: The approximate index requires suitable data distribution and tuning for list count and probes. 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. Simulate an embedding generation failure between metadata and vector insertion in staging.
D:
“Measure RU charge for a safe point read versus an equivalent cross-partition query.” tests a proposed change for the condition: The SDK already has both the item id and its exact partition key value. 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. Simulate an embedding generation failure between metadata and vector insertion in staging.
Question 571
At Marigold Retail, a recommendation service performs semantic matching on embeddings but ranks near-identical texts poorly. Evidence: The index similarity function differs from the metric recommended for the chosen embedding model. The objective is to align vector scoring and index policy with model semantics. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.
- Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
- Enable container or per-item TTL with approved expiration windows and explicit exceptions.
- Scale the appropriate server resources after eliminating avoidable query and index overhead.
Explanation
Correct Answer
B:
The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
Incorrect Answers
A:
“Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.” is a design or implementation response to the condition: A document service inserts a request-provided category into a Cosmos query using string formatting. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
C:
“Enable container or per-item TTL with approved expiration windows and explicit exceptions.” is a design or implementation response to the condition: The container has TTL disabled and application cleanup jobs miss archived records. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
D:
“Scale the appropriate server resources after eliminating avoidable query and index overhead.” is a design or implementation response to the condition: A PostgreSQL instance running vector indexing begins swapping and can no longer meet semantic search latency goals. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Configure the supported cosine, dot-product, or Euclidean distance option appropriate to the embeddings.
Question 572
At Orion Commerce, 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. Only authorized Azure subscriptions and synthetic test data may be used. Which controlled pilot most directly validates the proposed approach?
- Insert synthetic embeddings of both lengths into separate compatible test columns.
- Run bounded ingestion and retrieval benchmarks on a resized nonproduction server.
- Compare fixed code-specific and semantic search cases against a labeled staging corpus.
- Write a synthetic workload with many conversations into a test container using candidate partition keys.
Explanation
Correct Answer
C:
Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. Compare fixed code-specific and semantic search cases against a labeled staging corpus.
Incorrect Answers
A:
“Insert synthetic embeddings of both lengths into separate compatible test columns.” tests a proposed change for the condition: The database column is declared as vector(1536) and reject mismatched input. 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. Compare fixed code-specific and semantic search cases against a labeled staging corpus.
B:
“Run bounded ingestion and retrieval benchmarks on a resized nonproduction server.” tests a proposed change for the condition: Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. 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. Compare fixed code-specific and semantic search cases against a labeled staging corpus.
D:
“Write a synthetic workload with many conversations into a test container using candidate partition keys.” tests a proposed change for the condition: The partition key uses a shared constant for nearly all writes rather than a high-cardinality conversation identifier. 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. Compare fixed code-specific and semantic search cases against a labeled staging corpus.
Question 573
At Blue Ridge Technology, an AKS application pod uses a static client secret to connect to Azure Key Vault. Evidence: The cluster supports OIDC issuer and workload identity federation with scoped Kubernetes service accounts. The objective is to authenticate workload pods to Azure resources without long-lived embedded credentials. Validate in a disposable environment before applying production changes. Which acceptance result most strongly demonstrates the requirement is met?
- Verify load triggers scale-out and idle demand scales back within configured bounds.
- Verify traffic is withheld until readiness succeeds and a genuine deadlock triggers liveness recovery.
- Confirm the authorized pod obtains a token while a different service account cannot access the vault.
- Verify the resulting child image references the new base digest and has passed required checks.
Explanation
Correct Answer
C:
The cluster supports OIDC issuer and workload identity federation with scoped Kubernetes service accounts. Confirm the authorized pod obtains a token while a different service account cannot access the vault.
Incorrect Answers
A:
“Verify load triggers scale-out and idle demand scales back within configured bounds.” validates an outcome in a case where the evidence is: The app has no tuned HTTP scale rule and the maximum replica count is too low. This question instead requires an action that can authenticate workload pods to Azure resources without long-lived embedded credentials. The cluster supports OIDC issuer and workload identity federation with scoped Kubernetes service accounts. Confirm the authorized pod obtains a token while a different service account cannot access the vault.
B:
“Verify traffic is withheld until readiness succeeds and a genuine deadlock triggers liveness recovery.” validates an outcome in a case where the evidence is: A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. This question instead requires an action that can authenticate workload pods to Azure resources without long-lived embedded credentials. The cluster supports OIDC issuer and workload identity federation with scoped Kubernetes service accounts. Confirm the authorized pod obtains a token while a different service account cannot access the vault.
D:
“Verify the resulting child image references the new base digest and has passed required checks.” validates an outcome in a case where the evidence is: The pipeline rebuilds only when developers push code and never tracks upstream base image updates. This question instead requires an action that can authenticate workload pods to Azure resources without long-lived embedded credentials. The cluster supports OIDC issuer and workload identity federation with scoped Kubernetes service accounts. Confirm the authorized pod obtains a token while a different service account cannot access the vault.
Question 574
At Cedar Cloud, an Azure Database for PostgreSQL Flexible Server application cannot create a vector column. Evidence: The extension is not enabled or allowlisted for the chosen server configuration. The objective is to enable supported vector data types and functions before ingesting embeddings. Preserve end-to-end correlation and avoid copying sensitive production data. Which controlled pilot most directly validates the proposed approach?
- Run a representative multi-tenant test query with and without the supporting metadata index.
- Create a disposable vector column and insert an embedding in a staging database.
- Query a synthetic corpus containing public, draft, and tenant-restricted document records.
- Evict a synthetic cached record and reload it from the authoritative test store.
Explanation
Correct Answer
B:
The extension is not enabled or allowlisted for the chosen server configuration. Create a disposable vector column and insert an embedding in a staging database.
Incorrect Answers
A:
“Run a representative multi-tenant test query with and without the supporting metadata index.” tests a proposed change for the condition: The database has a vector index but no useful plan for the frequent structured tenant predicate. This question instead requires an action that can enable supported vector data types and functions before ingesting embeddings. The extension is not enabled or allowlisted for the chosen server configuration. Create a disposable vector column and insert an embedding in a staging database.
C:
“Query a synthetic corpus containing public, draft, and tenant-restricted document records.” tests a proposed change for the condition: The vector table and document ACL table are normalized with a shared document_id. This question instead requires an action that can enable supported vector data types and functions before ingesting embeddings. The extension is not enabled or allowlisted for the chosen server configuration. Create a disposable vector column and insert an embedding in a staging database.
D:
“Evict a synthetic cached record and reload it from the authoritative test store.” tests a proposed change for the condition: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can enable supported vector data types and functions before ingesting embeddings. The extension is not enabled or allowlisted for the chosen server configuration. Create a disposable vector column and insert an embedding in a staging database.
Question 575
At Lighthouse Systems, a model deployment breaks after a credential rotates because its configuration pins a deleted secret version. Evidence: The application reference includes a specific version that no longer matches the managed rotation policy. The objective is to use secret versions intentionally and test rotation compatibility. Validate in a disposable environment before applying production changes. Which acceptance result most strongly demonstrates the requirement is met?
- Verify each client receives only its intended labeled value.
- Verify no password literal is stored in App Configuration and the app resolves the approved Key Vault value.
- Verify version selection behaves as designed without losing connectivity during rotation.
- Verify the trace distinguishes queue wait from processing and aligns with the original request.
Explanation
Correct Answer
C:
The application reference includes a specific version that no longer matches the managed rotation policy. Verify version selection behaves as designed without losing connectivity during rotation.
Incorrect Answers
A:
“Verify each client receives only its intended labeled value.” validates an outcome in a case where the evidence is: The team created labeled keys yet the SDK filter does not select the requested environment label. This question instead requires an action that can use secret versions intentionally and test rotation compatibility. The application reference includes a specific version that no longer matches the managed rotation policy. Verify version selection behaves as designed without losing connectivity during rotation.
B:
“Verify no password literal is stored in App Configuration and the app resolves the approved Key Vault value.” validates an outcome in a case where the evidence is: The consuming app identity can be authorized to both App Configuration and Key Vault. This question instead requires an action that can use secret versions intentionally and test rotation compatibility. The application reference includes a specific version that no longer matches the managed rotation policy. Verify version selection behaves as designed without losing connectivity during rotation.
D:
“Verify the trace distinguishes queue wait from processing and aligns with the original request.” validates an outcome in a case where the evidence is: Time spent waiting in Service Bus is not captured in the same operation trace. This question instead requires an action that can use secret versions intentionally and test rotation compatibility. The application reference includes a specific version that no longer matches the managed rotation policy. Verify version selection behaves as designed without losing connectivity during rotation.
Question 576
At Clearwater Partners, an inference service retains temporary conversation context forever despite a thirty-day deletion requirement. Evidence: The container has TTL disabled and application cleanup jobs miss archived records. The objective is to apply consistent item lifetime semantics to temporary Cosmos data. Preserve end-to-end correlation and avoid copying sensitive production data. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor storage growth, unexpected early deletion, and TTL policy drift.
- Monitor query metrics, write RU, and index transformation progress.
- Monitor lease ownership churn, processing lag and change feed failures.
- Monitor retrieval precision/recall shifts after index and embedding model changes.
Explanation
Correct Answer
A:
The container has TTL disabled and application cleanup jobs miss archived records. Monitor storage growth, unexpected early deletion, and TTL policy drift.
Incorrect Answers
B:
“Monitor query metrics, write RU, and index transformation progress.” monitors this signal: Default indexing captures unused large properties and increases write RU costs. This question instead requires an action that can apply consistent item lifetime semantics to temporary Cosmos data. The container has TTL disabled and application cleanup jobs miss archived records. Monitor storage growth, unexpected early deletion, and TTL policy drift.
C:
“Monitor lease ownership churn, processing lag and change feed failures.” monitors this signal: The change feed processor relies on a shared lease container and correct start position. This question instead requires an action that can apply consistent item lifetime semantics to temporary Cosmos data. The container has TTL disabled and application cleanup jobs miss archived records. Monitor storage growth, unexpected early deletion, and TTL policy drift.
D:
“Monitor retrieval precision/recall shifts after index and embedding model changes.” monitors this signal: The team optimized latency but never measured recall against a labeled search baseline. This question instead requires an action that can apply consistent item lifetime semantics to temporary Cosmos data. The container has TTL disabled and application cleanup jobs miss archived records. Monitor storage growth, unexpected early deletion, and TTL policy drift.
Question 577
At Harbor Technology, an internal vector processing endpoint is reachable publicly even though only sibling workloads should call it. Evidence: The Container App ingress configuration is external and the environment has no intended public API for the worker. The objective is to constrain ingress scope to the internal application environment. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Enable supported internal-only Container Apps ingress with correct target port and authentication.
- Configure an Azure Service Bus KEDA scale rule using a supported managed identity and queue-length thresholds.
- Use a ClusterIP Service and enforce supported namespace/pod NetworkPolicies for allowed traffic.
- Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
Explanation
Correct Answer
A:
The Container App ingress configuration is external and the environment has no intended public API for the worker. Enable supported internal-only Container Apps ingress with correct target port and authentication.
Incorrect Answers
B:
“Configure an Azure Service Bus KEDA scale rule using a supported managed identity and queue-length thresholds.” is a design or implementation response to the condition: Its scale rule tracks HTTP requests instead of queue length and the scaler cannot authenticate to the broker. This question instead requires an action that can constrain ingress scope to the internal application environment. The Container App ingress configuration is external and the environment has no intended public API for the worker. Enable supported internal-only Container Apps ingress with correct target port and authentication.
C:
“Use a ClusterIP Service and enforce supported namespace/pod NetworkPolicies for allowed traffic.” is a design or implementation response to the condition: The Service type and network policies do not enforce the desired cluster-internal caller boundary. This question instead requires an action that can constrain ingress scope to the internal application environment. The Container App ingress configuration is external and the environment has no intended public API for the worker. Enable supported internal-only Container Apps ingress with correct target port and authentication.
D:
“Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.” is a design or implementation response to the condition: An internal Azure service connector needs a database password without adding the secret text to deployment manifests. This question instead requires an action that can constrain ingress scope to the internal application environment. The Container App ingress configuration is external and the environment has no intended public API for the worker. Enable supported internal-only Container Apps ingress with correct target port and authentication.
Question 578
At Marigold Retail, a monitoring query emits raw failure rows but operators need five-minute error trends by service. Evidence: The current results lack time bucketing and cannot reveal when an issue began. The objective is to aggregate telemetry into meaningful time windows for trend analysis. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Attach stable operation context to messages and record enqueue wait and processing duration as separate spans or metrics.
- Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.
- Use supported parse_json or dynamic-field access and convert fields to the required type.
- Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
Explanation
Correct Answer
B:
The current results lack time bucketing and cannot reveal when an issue began. Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.
Incorrect Answers
A:
“Attach stable operation context to messages and record enqueue wait and processing duration as separate spans or metrics.” is a design or implementation response to the condition: Time spent waiting in Service Bus is not captured in the same operation trace. This question instead requires an action that can aggregate telemetry into meaningful time windows for trend analysis. The current results lack time bucketing and cannot reveal when an issue began. Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.
C:
Parsing dynamic JSON fields extracts values from telemetry; it does not group errors into time windows. KQL summarize with bin(TimeGenerated, 5m) produces the requested service-level trend.
D:
“Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.” is a design or implementation response to the condition: A Key Vault event is supported but no subscription has been configured for near-expiration events. This question instead requires an action that can aggregate telemetry into meaningful time windows for trend analysis. The current results lack time bucketing and cannot reveal when an issue began. Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.
Question 579
At Mosaic Robotics, a consumer writes vector updates twice when the Cosmos DB change feed replays a batch after a worker crash. Evidence: Change feed delivery and retries require consumers to tolerate at-least-once processing. The objective is to make downstream embedding writes idempotent despite retries. Validate in a disposable environment before applying production changes. Which implementation or configuration choice best meets the stated requirement?
- Call the SDK read_item operation with item id and partition key instead of a broad query.
- Use deterministic sink IDs and version checks before committing processed embeddings.
- Exclude large unused body fields from indexing while preserving needed metadata indexes.
- Persist authoritative user data in a durable database and populate Redis from that source.
Explanation
Correct Answer
B:
Change feed delivery and retries require consumers to tolerate at-least-once processing. Use deterministic sink IDs and version checks before committing processed embeddings.
Incorrect Answers
A:
A Cosmos DB point read reduces RU for a known partition key and item ID. It does not stop change-feed replays from triggering duplicate embedding writes; the consumer needs a stable idempotency key and deduplicated commits.
C:
“Exclude large unused body fields from indexing while preserving needed metadata indexes.” is a design or implementation response to the condition: Default indexing captures unused large properties and increases write RU costs. This question instead requires an action that can make downstream embedding writes idempotent despite retries. Change feed delivery and retries require consumers to tolerate at-least-once processing. Use deterministic sink IDs and version checks before committing processed embeddings.
D:
“Persist authoritative user data in a durable database and populate Redis from that source.” is a design or implementation response to the condition: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can make downstream embedding writes idempotent despite retries. Change feed delivery and retries require consumers to tolerate at-least-once processing. Use deterministic sink IDs and version checks before committing processed embeddings.
Question 580
At Blue Ridge Technology, a semantic search API queries pgvector cosine distance across millions of rows with unacceptable latency. Evidence: The vector column has no suitable approximate nearest neighbor index for the cosine operator. The objective is to accelerate vector nearest-neighbor queries using a compatible index. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Scale the appropriate server resources after eliminating avoidable query and index overhead.
- Build an HNSW index with the appropriate vector_cosine_ops operator class where supported.
- Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
- Configure a common lease container and stable processor identity with correct change feed mode.
Explanation
Correct Answer
B:
The vector column has no suitable approximate nearest neighbor index for the cosine operator. Build an HNSW index with the appropriate vector_cosine_ops operator class where supported. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
Incorrect Answers
A:
“Scale the appropriate server resources after eliminating avoidable query and index overhead.” is a design or implementation response to the condition: A PostgreSQL instance running vector indexing begins swapping and can no longer meet semantic search latency goals. This question instead requires an action that can accelerate vector nearest-neighbor queries using a compatible index. The vector column has no suitable approximate nearest neighbor index for the cosine operator. Build an HNSW index with the appropriate vector_cosine_ops operator class where supported. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
C:
“Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.” is a design or implementation response to the condition: The approximate index requires suitable data distribution and tuning for list count and probes. This question instead requires an action that can accelerate vector nearest-neighbor queries using a compatible index. The vector column has no suitable approximate nearest neighbor index for the cosine operator. Build an HNSW index with the appropriate vector_cosine_ops operator class where supported. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.
D:
“Configure a common lease container and stable processor identity with correct change feed mode.” is a design or implementation response to the condition: A catalog ingestion service adds a second processor replica and duplicate subscriptions cause gaps and replays. This question instead requires an action that can accelerate vector nearest-neighbor queries using a compatible index. The vector column has no suitable approximate nearest neighbor index for the cosine operator. Build an HNSW index with the appropriate vector_cosine_ops operator class where supported. An ANN index must use an operator class compatible with the query similarity metric; a mismatched class cannot serve the intended cosine access path.