Microsoft AI-200 Practice Test 7
Question 60
At Lighthouse Systems, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect the application's managed identity, Key Vault permissions, and secret reference resolution status.
- Compare manifest digest, registry access logs, and available build provenance or signature evidence.
- Inspect application configuration precedence, container environment variables, and deployment slot settings.
- Inspect startup, readiness, and liveness probe endpoints and their failure thresholds.
Explanation
Correct Answer
B:
An engineer can push an image directly to the registry without required provenance checks. Compare manifest digest, registry access logs, and available build provenance or signature evidence.
Incorrect Answers
A:
App Service Key Vault references secure runtime secrets. They do not prove that a promoted registry artifact has an approved origin; verify its signing or attestation and immutable digest before deployment.
C:
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.
D:
“Inspect startup, readiness, and liveness probe endpoints and their failure thresholds.” is a diagnostic step for the reported condition: 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 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. Compare manifest digest, registry access logs, and available build provenance or signature evidence.
Question 61
At Juniper Analytics, 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. Changes must respect customer tenant boundaries and required availability targets. Which acceptance result most strongly demonstrates the requirement is met?
- Verify data moves through the intended bindings while no literal account key is present.
- Verify approved requests succeed and unauthorized requests are rejected without leaking response data.
- Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.
- Verify the operation is recorded once even though multiple function invocations occur.
Explanation
Correct Answer
D:
The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Verify the operation is recorded once even though multiple function invocations occur.
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:
“Verify approved requests succeed and unauthorized requests are rejected without leaking response data.” validates an outcome in a case where the evidence is: The application should require an approved client identity before invoking the function. 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. Verify the operation is recorded once even though multiple function invocations occur.
C:
“Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.” validates an outcome in a case where the evidence is: 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 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. Verify the operation is recorded once even though multiple function invocations occur.
Question 62
Marigold Retail is reviewing an Azure AI workload: An AI enrichment step must wait for a related metadata file before processing an otherwise valid request. The business goal is to use deferral for valid temporarily blocked work instead of treating it as poison. A change is being evaluated before rollout. The team has documented application and data boundaries. Validate in a disposable environment before applying production changes. Which implementation or configuration choice best meets the stated requirement?
- Use stable MessageId with supported duplicate detection and maintain idempotent consumer writes.
- Configure maximum delivery handling and explicitly dead-letter permanent validation failures with reason details.
- Design the function to report failures correctly so the trigger retries or dead-letters according to policy.
- Defer the valid message and persist its sequence number for later explicit retrieval.
Explanation
Correct Answer
D:
The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Defer the valid message and persist its sequence number for later explicit retrieval.
Incorrect Answers
A:
“Use stable MessageId with supported duplicate detection and maintain idempotent consumer writes.” is a design or implementation response to the condition: A billing enrichment producer resends a work item whenever it misses an acknowledgment. This question instead requires an action that can use deferral for valid temporarily blocked work instead of treating it as poison. The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Defer the valid message and persist its sequence number for later explicit retrieval.
B:
“Configure maximum delivery handling and explicitly dead-letter permanent validation failures with reason details.” is a design or implementation response to the condition: The same message repeatedly fails schema validation and the broker supports a dead-letter subqueue. This question instead requires an action that can use deferral for valid temporarily blocked work instead of treating it as poison. The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Defer the valid message and persist its sequence number for later explicit retrieval.
C:
“Design the function to report failures correctly so the trigger retries or dead-letters according to policy.” is a design or implementation response to the condition: A queue-triggered function swallows all exceptions and causes an indexing request to be lost. This question instead requires an action that can use deferral for valid temporarily blocked work instead of treating it as poison. The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Defer the valid message and persist its sequence number for later explicit retrieval.
Question 63
Mosaic Robotics is reviewing an Azure AI workload: A chatbot retrieves a high-scoring embedding from a document that an editor has marked unpublished. The business goal is to ensure RAG retrieval obeys document metadata and authorization joins. A change is being evaluated before rollout. The team has documented application and data boundaries. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Tune ef_search or probes and preserve an exact-query benchmark for measured recall.
- Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
- Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.
Explanation
Correct Answer
D:
The vector table and document ACL table are normalized with a shared document_id. Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.
Incorrect Answers
A:
“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 ensure RAG retrieval obeys document metadata and authorization joins. The vector table and document ACL table are normalized with a shared document_id. Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.
B:
“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 ensure RAG retrieval obeys document metadata and authorization joins. The vector table and document ACL table are normalized with a shared document_id. Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.
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 ensure RAG retrieval obeys document metadata and authorization joins. The vector table and document ACL table are normalized with a shared document_id. Join vector candidates to authorized metadata using parameterized filters and appropriate indexes.
Question 64
At Mosaic Robotics, hundreds of short-lived Azure Functions executions open a fresh PostgreSQL connection each request and exhaust server limits. Evidence: The database sees many idle connections and connection setup dominates API latency. The objective is to limit backend connection counts while sustaining bursty application throughput. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor pooler wait time, idle connections and transaction failures.
- Monitor corpus drift, search recall and vacuum/reindex maintenance.
- Monitor retrieval precision/recall shifts after index and embedding model changes.
- Monitor dimension mismatch exceptions and indexed field schema drift.
Explanation
Correct Answer
A:
The database sees many idle connections and connection setup dominates API latency. Monitor pooler wait time, idle connections and transaction failures.
Incorrect Answers
B:
“Monitor corpus drift, search recall and vacuum/reindex maintenance.” monitors this signal: The approximate index requires suitable data distribution and tuning for list count and probes. This question instead requires an action that can limit backend connection counts while sustaining bursty application throughput. The database sees many idle connections and connection setup dominates API latency. Monitor pooler wait time, idle connections and transaction failures.
C:
“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 limit backend connection counts while sustaining bursty application throughput. The database sees many idle connections and connection setup dominates API latency. Monitor pooler wait time, idle connections and transaction failures.
D:
“Monitor dimension mismatch exceptions and indexed field schema drift.” monitors this signal: 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 limit backend connection counts while sustaining bursty application throughput. The database sees many idle connections and connection setup dominates API latency. Monitor pooler wait time, idle connections and transaction failures.
Question 65
Summit Finance is reviewing an Azure AI workload: A release manager wants to undo a faulty model API deployment while keeping production connection strings unchanged. The business goal is to use staged promotion and controlled rollback for a container-hosted service. A change is being evaluated before rollout. The team has documented application and data boundaries. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
- Grant the application's managed identity appropriate registry pull rights and configure managed identity-based registry authentication.
- Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.
- Configure supported Dapr pub/sub components and subscription routes with required credentials or identity.
Explanation
Correct Answer
C:
The team has a healthy staging slot with a previously verified container image. Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.
Incorrect Answers
A:
“Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.” is a design or implementation response to the condition: The mutable tag was reassigned to a newer image after release approval. This question instead requires an action that can use staged promotion and controlled rollback for a container-hosted service. The team has a healthy staging slot with a previously verified container image. Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.
B:
“Grant the application's managed identity appropriate registry pull rights and configure managed identity-based registry authentication.” is a design or implementation response to the condition: The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. This question instead requires an action that can use staged promotion and controlled rollback for a container-hosted service. The team has a healthy staging slot with a previously verified container image. Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.
D:
“Configure supported Dapr pub/sub components and subscription routes with required credentials or identity.” is a design or implementation response to the condition: Two independently deployed Container Apps need event notification without hardcoding broker SDKs into every service. This question instead requires an action that can use staged promotion and controlled rollback for a container-hosted service. The team has a healthy staging slot with a previously verified container image. Deploy to a staging slot, validate health, and use a controlled slot swap with rollback procedures.
Question 66
At Summit Finance, an App Service custom container appears unhealthy although its HTTP server is running inside the image. Evidence: The application listens on an internal port different from the one expected by the hosting configuration. The objective is to align container listener configuration and App Service startup routing. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor DNS zone link drift, private endpoint health, and public access settings.
- Monitor failing ACR Task runs, stale deployed digests, and skipped source triggers.
- Monitor startup probe failures, host binding changes, and container restarts.
- Monitor failed executions, queue backlog, and repeated job runs.
Explanation
Correct Answer
C:
The application listens on an internal port different from the one expected by the hosting configuration. Monitor startup probe failures, host binding changes, and container restarts. Ingress must target the actual listener port and bound interface; a mismatch can fail routing and readiness even when the container starts.
Incorrect Answers
A:
“Monitor DNS zone link drift, private endpoint health, and public access settings.” monitors this signal: The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. 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. Monitor startup probe failures, host binding changes, and container restarts. Ingress must target the actual listener port and bound interface; a mismatch can fail routing and readiness even when the container starts.
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:
“Monitor failed executions, queue backlog, and repeated job runs.” monitors this signal: The workflow is short-lived and triggered by queue events, not interactive requests. 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. Monitor startup probe failures, host binding changes, and container restarts. Ingress must target the actual listener port and bound interface; a mismatch can fail routing and readiness even when the container starts.
Question 67
At Clearwater Partners, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which controlled pilot most directly validates the proposed approach?
- Load-test a staging function against a pooler while measuring backend connection occupancy.
- In a test table, compare query plans and latency before and after refreshed statistics.
- Simulate an embedding generation failure between metadata and vector insertion in staging.
- Replay bounded mixed writes and vector queries under candidate throughput settings.
Explanation
Correct Answer
B:
Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. In a test table, compare query plans and latency before and after refreshed statistics.
Incorrect Answers
A:
Connection pooling limits database connection churn from bursty functions; it does not refresh PostgreSQL planner statistics after a large embedding load. Run ANALYZE and inspect plans to restore accurate row/selectivity estimates.
C:
“Simulate an embedding generation failure between metadata and vector insertion in staging.” tests a proposed change for the condition: 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. In a test table, compare query plans and latency before and after refreshed statistics.
D:
“Replay bounded mixed writes and vector queries under candidate throughput settings.” tests a proposed change for the condition: Provisioned RU capacity and partition distribution are below the write and query demand. 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. In a test table, compare query plans and latency before and after refreshed statistics.
Question 68
At Redwood Banking, a request passes through a Python API, Service Bus, and an embedding worker but monitoring displays disconnected traces. Evidence: The applications generate spans but do not propagate W3C trace context across message boundaries. The objective is to reconstruct end-to-end distributed request paths with propagated context. Changes must respect customer tenant boundaries and required availability targets. Which controlled pilot most directly validates the proposed approach?
- Replay a staged mix of high-volume successes and a few deliberate exceptions.
- Run a read-only query against staged requests with known slow dependency calls.
- Send one synthetic tracked request through a staging API and queue worker.
- Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.
Explanation
Correct Answer
C:
The applications generate spans but do not propagate W3C trace context across message boundaries. Send one synthetic tracked request through a staging API and queue worker. A traceparent passed through message metadata correlates HTTP and worker spans; without propagation the operation appears fragmented.
Incorrect Answers
A:
“Replay a staged mix of high-volume successes and a few deliberate exceptions.” tests a proposed change for the condition: The exporter captures all success events without sampling and does not retain error context. This question instead requires an action that can reconstruct end-to-end distributed request paths with propagated context. The applications generate spans but do not propagate W3C trace context across message boundaries. Send one synthetic tracked request through a staging API and queue worker. A traceparent passed through message metadata correlates HTTP and worker spans; without propagation the operation appears fragmented.
B:
“Run a read-only query against staged requests with known slow dependency calls.” tests a proposed change for the condition: Request and dependency telemetry share an operation correlation ID. This question instead requires an action that can reconstruct end-to-end distributed request paths with propagated context. The applications generate spans but do not propagate W3C trace context across message boundaries. Send one synthetic tracked request through a staging API and queue worker. A traceparent passed through message metadata correlates HTTP and worker spans; without propagation the operation appears fragmented.
D:
“Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.” tests a proposed change for 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 reconstruct end-to-end distributed request paths with propagated context. The applications generate spans but do not propagate W3C trace context across message boundaries. Send one synthetic tracked request through a staging API and queue worker. A traceparent passed through message metadata correlates HTTP and worker spans; without propagation the operation appears fragmented.
Question 69
Aspen Manufacturing is reviewing an Azure AI workload: A chatbot uses Redis nearest-neighbor search for a multi-customer knowledge base and must isolate results. The business goal is to combine vector nearest-neighbor retrieval with explicit metadata predicates. 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?
- Right-size cache capacity and choose a supported LRU/LFU/TTL-aware eviction policy appropriate to the workload.
- Use bounded single-flight locking or stale-while-revalidate with TTL jitter where safe.
- Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
- Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.
Explanation
Correct Answer
D:
The index includes tenant metadata but the query filters only the vector distance. Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.
Incorrect Answers
A:
“Right-size cache capacity and choose a supported LRU/LFU/TTL-aware eviction policy appropriate to the workload.” is a design or implementation response to the condition: Its max memory is saturated and eviction policy does not match cache workload priorities. This question instead requires an action that can combine vector nearest-neighbor retrieval with explicit metadata predicates. The index includes tenant metadata but the query filters only the vector distance. Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.
B:
Preventing a Redis cache stampede reduces duplicate computation after cache expiry, but it cannot stop vector retrieval from returning another tenant's records. Apply authorized metadata predicates to the similarity search.
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 combine vector nearest-neighbor retrieval with explicit metadata predicates. The index includes tenant metadata but the query filters only the vector distance. Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.
Question 70
Sapphire Energy is reviewing an Azure AI workload: A private embedding worker should be callable by its orchestration service but not by internet clients. The business goal is to constrain ingress scope to the internal application environment. 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?
- Enable supported internal-only Container Apps ingress with correct target port and authentication.
- Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
- Use a ClusterIP Service and enforce supported namespace/pod NetworkPolicies for allowed traffic.
- Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.
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 Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.” is a design or implementation response to the condition: A multi-tenant Kubernetes cluster must let only one namespace's worker query a private storage account. 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:
“Link the required private DNS zones to the consuming VNet and configure a supported registry private endpoint path.” is a design or implementation response to the condition: The ACR private endpoint exists but the VNet is not linked to the necessary private DNS zone. 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.