Microsoft AI-200 Practice Test 31
Question 300
At Redwood Banking, a multi-tenant retrieval system can find similar embeddings but sometimes retrieves another tenant's documents. Evidence: The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. The objective is to combine semantic retrieval with mandatory tenant filtering and authorization. Only authorized Azure subscriptions and synthetic test data may be used. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor cross-tenant search attempts and missing required filter predicates.
- Monitor query failures, unexpected full scans, and input validation alerts.
- Monitor normalized RU consumption, throttling and autoscale ceilings.
- Monitor cache misses, source reload failures and unexpected authoritative-data gaps.
Explanation
Correct Answer
A:
The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Monitor cross-tenant search attempts and missing required filter predicates.
Incorrect Answers
B:
“Monitor query failures, unexpected full scans, and input validation alerts.” monitors this signal: Users can enter quotation marks and unexpectedly alter query predicates. This question instead requires an action that can combine semantic retrieval with mandatory tenant filtering and authorization. The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Monitor cross-tenant search attempts and missing required filter predicates.
C:
“Monitor normalized RU consumption, throttling and autoscale ceilings.” monitors this signal: Provisioned RU capacity and partition distribution are below the write and query demand. This question instead requires an action that can combine semantic retrieval with mandatory tenant filtering and authorization. The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Monitor cross-tenant search attempts and missing required filter predicates.
D:
“Monitor cache misses, source reload failures and unexpected authoritative-data gaps.” monitors this signal: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can combine semantic retrieval with mandatory tenant filtering and authorization. The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Monitor cross-tenant search attempts and missing required filter predicates.
Question 301
At Summit Finance, a Function App deployed into a private VNet times out connecting to a Key Vault with public access disabled. Evidence: The vault private endpoint exists but the necessary privatelink.vaultcore.azure.net DNS zone is not linked to the app VNet. The objective is to resolve private Key Vault endpoints correctly without opening public ingress. Changes must respect customer tenant boundaries and required availability targets. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect key names, labels, connection selectors and fallback behavior.
- Inspect refresh registration, cache expiration and sentinel update order.
- Inspect vault DNS resolution, private endpoint approval, VNet links and route reachability.
- Inspect column type and representative safe dynamic object values.
Explanation
Correct Answer
C:
The vault private endpoint exists but the necessary privatelink.vaultcore.azure.net DNS zone is not linked to the app VNet. Inspect vault DNS resolution, private endpoint approval, VNet links and route reachability.
Incorrect Answers
A:
“Inspect key names, labels, connection selectors and fallback behavior.” is a diagnostic step for the reported condition: The team created labeled keys yet the SDK filter does not select the requested environment label. This question instead requires an action that can resolve private Key Vault endpoints correctly without opening public ingress. The vault private endpoint exists but the necessary privatelink.vaultcore.azure.net DNS zone is not linked to the app VNet. Inspect vault DNS resolution, private endpoint approval, VNet links and route reachability.
B:
“Inspect refresh registration, cache expiration and sentinel update order.” is a diagnostic step for the reported condition: The SDK refresh provider observes no sentinel key and the keys update at different moments. This question instead requires an action that can resolve private Key Vault endpoints correctly without opening public ingress. The vault private endpoint exists but the necessary privatelink.vaultcore.azure.net DNS zone is not linked to the app VNet. Inspect vault DNS resolution, private endpoint approval, VNet links and route reachability.
D:
“Inspect column type and representative safe dynamic object values.” is a diagnostic step for the reported condition: The relevant correlation key is nested inside JSON rather than a top-level column. This question instead requires an action that can resolve private Key Vault endpoints correctly without opening public ingress. The vault private endpoint exists but the necessary privatelink.vaultcore.azure.net DNS zone is not linked to the app VNet. Inspect vault DNS resolution, private endpoint approval, VNet links and route reachability.
Question 302
At Riverbend Health, 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. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
- Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
- Configure approved Log Analytics ingestion for the environment and instrument application diagnostics.
- Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.
Explanation
Correct Answer
B:
The cluster supports OIDC issuer and workload identity federation with scoped Kubernetes service accounts. Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
Incorrect Answers
A:
“Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.” is a design or implementation response to the condition: An operations team wants an AKS-hosted AI endpoint upgraded consistently across multiple worker nodes. 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. Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
C:
“Configure approved Log Analytics ingestion for the environment and instrument application diagnostics.” is a design or implementation response to the condition: The environment's diagnostic destination is misconfigured and system logs show image pull failures. 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. Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
D:
“Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.” is a design or implementation response to the condition: A release manager wants to undo a faulty model API deployment while keeping production connection strings unchanged. 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. Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
Question 303
At Clearwater Partners, a deployment pipeline accepts images by tag although a signed build pipeline is required. Evidence: An engineer can push an image directly to the registry without required provenance checks. The objective is to allow promotion only of artifacts that satisfy an approved signing and validation policy. Only authorized Azure subscriptions and synthetic test data may be used. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor invalid signatures, bypass attempts, and signing-key rotation.
- Monitor app settings drift, accidental environment crossover, and stale deployments.
- Monitor swap failures, warm-up errors, and configuration leakage between slots.
- Monitor role assignment drift, identity authentication failures, and unexpected secret use.
Explanation
Correct Answer
A:
An engineer can push an image directly to the registry without required provenance checks. Monitor invalid signatures, bypass attempts, and signing-key rotation.
Incorrect Answers
B:
Different App Service staging settings can change runtime behavior but cannot prove a container image is signed and untampered. ACR artifact provenance and signature validation must protect the promotion decision.
C:
“Monitor swap failures, warm-up errors, and configuration leakage between slots.” monitors this signal: The team has a healthy staging slot with a previously verified container image. This question instead requires an action that can allow promotion only of artifacts that satisfy an approved signing and validation policy. An engineer can push an image directly to the registry without required provenance checks. Monitor invalid signatures, bypass attempts, and signing-key rotation.
D:
“Monitor role assignment drift, identity authentication failures, and unexpected secret use.” monitors this signal: The managed identity exists but lacks data-plane permission on the target resource. This question instead requires an action that can allow promotion only of artifacts that satisfy an approved signing and validation policy. An engineer can push an image directly to the registry without required provenance checks. Monitor invalid signatures, bypass attempts, and signing-key rotation.
Question 304
At Mosaic Robotics, an Azure Function works on a developer laptop but fails to read Key Vault after deployment. Evidence: Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. The objective is to use deployed managed identity credentials and explicit function environment settings. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Enable managed identity and assign the precise Key Vault secret read role to the function.
- Define a supported schedule in the correct time standard and document daylight-saving behavior.
- Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
- Use a Service Bus queue for competing workers when each work item should be processed once by one consumer.
Explanation
Correct Answer
A:
Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. Enable managed identity and assign the precise Key Vault secret read role to the function.
Incorrect Answers
B:
“Define a supported schedule in the correct time standard and document daylight-saving behavior.” is a design or implementation response to the condition: An AI cache cleanup function must run every night at a stable UTC time rather than an assumed local offset. This question instead requires an action that can use deployed managed identity credentials and explicit function environment settings. Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. Enable managed identity and assign the precise Key Vault secret read role to the function.
C:
“Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.” is a design or implementation response to the condition: Telemetry shows request queueing and memory pressure rather than an upstream service outage. This question instead requires an action that can use deployed managed identity credentials and explicit function environment settings. Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. Enable managed identity and assign the precise Key Vault secret read role to the function.
D:
“Use a Service Bus queue for competing workers when each work item should be processed once by one consumer.” is a design or implementation response to the condition: Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. This question instead requires an action that can use deployed managed identity credentials and explicit function environment settings. Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. Enable managed identity and assign the precise Key Vault secret read role to the function.
Question 305
At Crescent Logistics, an Azure-hosted Python function assembles a PostgreSQL query by concatenating a user-provided document identifier. Evidence: Malformed input can change SQL syntax and the service account can read more rows than necessary. The objective is to use parameterized database queries with narrow table permissions. Validate in a disposable environment before applying production changes. Which acceptance result most strongly demonstrates the requirement is met?
- Verify only approved published documents are returned regardless of vector similarity.
- Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.
- Confirm inputs are treated as values and no unauthorized rows or errors occur.
- Verify hot keys remain available enough to meet the target cache hit rate.
Explanation
Correct Answer
C:
Malformed input can change SQL syntax and the service account can read more rows than necessary. Confirm inputs are treated as values and no unauthorized rows or errors occur.
Incorrect Answers
A:
“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 use parameterized database queries with narrow table permissions. Malformed input can change SQL syntax and the service account can read more rows than necessary. Confirm inputs are treated as values and no unauthorized rows or errors occur.
B:
“Verify exact identifiers and relevant paraphrases both appear within accepted top-k results.” validates an outcome in a case where the evidence is: Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. This question instead requires an action that can use parameterized database queries with narrow table permissions. Malformed input can change SQL syntax and the service account can read more rows than necessary. Confirm inputs are treated as values and no unauthorized rows or errors occur.
D:
“Verify hot keys remain available enough to meet the target cache hit rate.” validates an outcome in a case where the evidence is: Its max memory is saturated and eviction policy does not match cache workload priorities. This question instead requires an action that can use parameterized database queries with narrow table permissions. Malformed input can change SQL syntax and the service account can read more rows than necessary. Confirm inputs are treated as values and no unauthorized rows or errors occur.
Question 306
At Redwood Banking, a retried Azure Function invokes an external billing operation twice after a timeout. Evidence: The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. The objective is to make non-idempotent downstream operations safe under trigger retries. Validate in a disposable environment before applying production changes. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor binding failures, role assignment drift and unexpected storage access.
- Monitor invocation failures, lock losses and poison-message count.
- Monitor dead-letter volume, age and replay approvals.
- Monitor repeated event IDs, stale locks and duplicate side effects.
Explanation
Correct Answer
D:
The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Monitor repeated event IDs, stale locks and duplicate side effects.
Incorrect Answers
A:
Azure Functions storage bindings remove manual storage-key handling; they do not make a retried billing operation idempotent. An operation identifier and deduplication or transaction guard are needed to prevent duplicate downstream writes.
B:
“Monitor invocation failures, lock losses and poison-message count.” monitors this signal: The trigger configuration retries and message settlement must align with actual successful work. This question instead requires an action that can make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Monitor repeated event IDs, stale locks and duplicate side effects.
C:
“Monitor dead-letter volume, age and replay approvals.” monitors this signal: The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. This question instead requires an action that can make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Monitor repeated event IDs, stale locks and duplicate side effects.
Question 307
At Crescent Logistics, a vector query becomes slow just after a large document import despite existing useful indexes. Evidence: Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. The objective is to refresh planner knowledge and maintain index effectiveness after major data change. Changes must respect customer tenant boundaries and required availability targets. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor CPU saturation, disk latency, and storage growth.
- Monitor stranded pending documents and repeated ingest failures.
- Monitor cache misses, source reload failures and unexpected authoritative-data gaps.
- Monitor autovacuum/analyze health and query performance drift.
Explanation
Correct Answer
D:
Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. Monitor autovacuum/analyze health and query performance drift.
Incorrect Answers
A:
“Monitor CPU saturation, disk latency, and storage growth.” monitors this signal: Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. This question instead requires an action that can refresh planner knowledge and maintain index effectiveness after major data change. Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. Monitor autovacuum/analyze health and query performance drift.
B:
“Monitor stranded pending documents and repeated ingest failures.” monitors this signal: The database stores document status and embeddings in related rows without a reliable completion boundary. This question instead requires an action that can refresh planner knowledge and maintain index effectiveness after major data change. Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. Monitor autovacuum/analyze health and query performance drift.
C:
“Monitor cache misses, source reload failures and unexpected authoritative-data gaps.” monitors this signal: The configured eviction policy can discard keys when memory pressure rises. This question instead requires an action that can refresh planner knowledge and maintain index effectiveness after major data change. Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. Monitor autovacuum/analyze health and query performance drift.
Question 308
At Cedar Cloud, 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. Validate in a disposable environment before applying production changes. Which controlled pilot most directly validates the proposed approach?
- Defer a synthetic job, deliver its prerequisite and retrieve the deferred message.
- Send a synthetic completion event and consume it from each test subscription.
- Run a benign test invocation that reads and writes an object in a sandbox container.
- Publish a harmless job and run two test consumers against the same staging queue.
Explanation
Correct Answer
D:
Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. Publish a harmless job and run two test consumers against the same staging queue.
Incorrect Answers
A:
“Defer a synthetic job, deliver its prerequisite and retrieve the deferred message.” tests a proposed change for the condition: The job is not malformed and should be resumed by sequence number when the prerequisite is ready. 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. Publish a harmless job and run two test consumers against the same staging queue.
B:
“Send a synthetic completion event and consume it from each test subscription.” tests a proposed change for the condition: Each independent service requires its own durable copy of the event. 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. Publish a harmless job and run two test consumers against the same staging queue.
C:
“Run a benign test invocation that reads and writes an object in a sandbox container.” tests a proposed change for the condition: The function uses a modern supported runtime and can obtain scoped storage identity permissions. 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. Publish a harmless job and run two test consumers against the same staging queue.
Question 309
At Orion Commerce, a backend process connects to App Configuration using a long-lived shared connection string in a container image. Evidence: The workload supports managed identity and endpoint-based configuration loading. The objective is to access application settings without embedding reusable access keys. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Use a Key Vault reference in App Configuration and grant the runtime identity secret retrieval permission.
- Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
- Use structured low-cardinality non-sensitive attributes and redact secrets before trace export.
- Use the Azure Identity credential chain and App Configuration endpoint with minimal role assignments.
Explanation
Correct Answer
D:
The workload supports managed identity and endpoint-based configuration loading. Use the Azure Identity credential chain and App Configuration endpoint with minimal role assignments.
Incorrect Answers
A:
“Use a Key Vault reference in App Configuration and grant the runtime identity secret retrieval permission.” is a design or implementation response to the condition: A team centralizes API endpoint settings but wants credential values protected outside App Configuration. This question instead requires an action that can access application settings without embedding reusable access keys. The workload supports managed identity and endpoint-based configuration loading. Use the Azure Identity credential chain and App Configuration endpoint with minimal role assignments.
B:
“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 access application settings without embedding reusable access keys. The workload supports managed identity and endpoint-based configuration loading. Use the Azure Identity credential chain and App Configuration endpoint with minimal role assignments.
C:
“Use structured low-cardinality non-sensitive attributes and redact secrets before trace export.” is a design or implementation response to the condition: A retrieval API adds a custom OpenTelemetry attribute containing raw document text to every span. This question instead requires an action that can access application settings without embedding reusable access keys. The workload supports managed identity and endpoint-based configuration loading. Use the Azure Identity credential chain and App Configuration endpoint with minimal role assignments.
Question 310
Riverbend Health is reviewing an Azure AI workload: An updated knowledge article gets indexed twice after processor failover and changes search ranking. The business goal is to make downstream embedding writes idempotent despite retries. 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?
- Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
- Use deterministic sink IDs and version checks before committing processed embeddings.
- Enable container or per-item TTL with approved expiration windows and explicit exceptions.
- Create or select an index with vector_cosine_ops and use the matching distance operator.
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:
“Create a compatible vector policy or migrate to a newly indexed field matching the selected model.” is a design or implementation response to the condition: The container vector policy was created for a fixed dimension count and the new vectors do not match. 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.
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 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:
“Create or select an index with vector_cosine_ops and use the matching distance operator.” is a design or implementation response to the condition: The mismatch keeps the query from using the intended nearest-neighbor index plan. 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.