Microsoft AI-200 Practice Test 19
Question 180
At Sapphire Energy, a private web app cannot pull its container from Azure Container Registry after its registry administrator account was disabled. Evidence: The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. The objective is to allow registry image pulls without storing a registry password. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect slot health checks, deployment history, and configuration settings marked sticky.
- Inspect container startup logs, listener bind address, and configured port environment or platform settings.
- Inspect ingress external flag, FQDN, environment network boundaries, and callers.
- Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
Explanation
Correct Answer
D:
The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
Incorrect Answers
A:
“Inspect slot health checks, deployment history, and configuration settings marked sticky.” is a diagnostic step for the reported condition: The team has a healthy staging slot with a previously verified container image. This question instead requires an action that can allow registry image pulls without storing a registry password. The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
B:
“Inspect container startup logs, listener bind address, and configured port environment or platform settings.” is a diagnostic step for the reported condition: The application listens on an internal port different from the one expected by the hosting configuration. This question instead requires an action that can allow registry image pulls without storing a registry password. The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
C:
“Inspect ingress external flag, FQDN, environment network boundaries, and callers.” is a diagnostic step for the reported 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 allow registry image pulls without storing a registry password. The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
Question 181
At Juniper Analytics, a backend API is reachable from an unintended namespace after its Kubernetes Service was exposed broadly. Evidence: The Service type and network policies do not enforce the desired cluster-internal caller boundary. The objective is to restrict Kubernetes service exposure and pod network paths to approved clients. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect environment logging destination, console log stream, system event codes, and revision health.
- Inspect the Dapr sidecar, component YAML, subscription topic names, and broker connectivity.
- Inspect Service type, selectors, ingress objects, network policy selectors, and CNI policy support.
- Inspect the application's managed identity, Key Vault permissions, and secret reference resolution status.
Explanation
Correct Answer
C:
The Service type and network policies do not enforce the desired cluster-internal caller boundary. Inspect Service type, selectors, ingress objects, network policy selectors, and CNI policy support.
Incorrect Answers
A:
“Inspect environment logging destination, console log stream, system event codes, and revision health.” is a diagnostic step for the reported condition: The environment's diagnostic destination is misconfigured and system logs show image pull failures. This question instead requires an action that can restrict Kubernetes service exposure and pod network paths to approved clients. The Service type and network policies do not enforce the desired cluster-internal caller boundary. Inspect Service type, selectors, ingress objects, network policy selectors, and CNI policy support.
B:
“Inspect the Dapr sidecar, component YAML, subscription topic names, and broker connectivity.” is a diagnostic step for the reported condition: The Dapr pub/sub component references an incorrect topic and lacks authorized broker access. This question instead requires an action that can restrict Kubernetes service exposure and pod network paths to approved clients. The Service type and network policies do not enforce the desired cluster-internal caller boundary. Inspect Service type, selectors, ingress objects, network policy selectors, and CNI policy support.
D:
“Inspect the application's managed identity, Key Vault permissions, and secret reference resolution status.” is a diagnostic step for the reported condition: The application can use managed identity and the secret already exists in Azure Key Vault. This question instead requires an action that can restrict Kubernetes service exposure and pod network paths to approved clients. The Service type and network policies do not enforce the desired cluster-internal caller boundary. Inspect Service type, selectors, ingress objects, network policy selectors, and CNI policy support.
Question 182
At Redwood Banking, a custom container stores a production API credential in a plain App Service configuration value. Evidence: The application can use managed identity and the secret already exists in Azure Key Vault. The objective is to reference sensitive values through a supported secret mechanism with least privilege. Changes must respect customer tenant boundaries and required availability targets. 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 replication health, regional pull errors, and replica capacity.
- Monitor missing log ingestion, restart counts, and diagnostic pipeline drift.
- Monitor unresolved secret references, revoked identity permissions, and version changes.
Explanation
Correct Answer
D:
The application can use managed identity and the secret already exists in Azure Key Vault. Monitor unresolved secret references, revoked identity permissions, and version changes.
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 reference sensitive values through a supported secret mechanism with least privilege. The application can use managed identity and the secret already exists in Azure Key Vault. Monitor unresolved secret references, revoked identity permissions, and version changes.
B:
“Monitor replication health, regional pull errors, and replica capacity.” monitors this signal: Its Premium registry has no replica in the region where new workloads are starting. This question instead requires an action that can reference sensitive values through a supported secret mechanism with least privilege. The application can use managed identity and the secret already exists in Azure Key Vault. Monitor unresolved secret references, revoked identity permissions, and version changes.
C:
“Monitor missing log ingestion, restart counts, and diagnostic pipeline drift.” monitors this signal: The environment's diagnostic destination is misconfigured and system logs show image pull failures. This question instead requires an action that can reference sensitive values through a supported secret mechanism with least privilege. The application can use managed identity and the secret already exists in Azure Key Vault. Monitor unresolved secret references, revoked identity permissions, and version changes.
Question 183
At Aspen Manufacturing, a Python search API builds Cosmos SQL strings by concatenating an untrusted customer query into WHERE clauses. Evidence: Users can enter quotation marks and unexpectedly alter query predicates. The objective is to execute safe predictable Cosmos queries without interpolating untrusted values. Preserve end-to-end correlation and avoid copying sensitive production data. Which acceptance result most strongly demonstrates the requirement is met?
- Verify only the authorized tenant's matching documents can appear in results.
- Confirm search treats provided terms as values and access boundaries are unchanged.
- Verify latency and 429 rate meet the test SLO with reasonable capacity cost.
- Verify no unauthorized tenant records appear among ranked results.
Explanation
Correct Answer
B:
Users can enter quotation marks and unexpectedly alter query predicates. Confirm search treats provided terms as values and access boundaries are unchanged.
Incorrect Answers
A:
“Verify only the authorized tenant's matching documents can appear in results.” validates an outcome in a case where the evidence is: The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. This question instead requires an action that can execute safe predictable Cosmos queries without interpolating untrusted values. Users can enter quotation marks and unexpectedly alter query predicates. Confirm search treats provided terms as values and access boundaries are unchanged.
C:
“Verify latency and 429 rate meet the test SLO with reasonable capacity cost.” validates an outcome in a case where the evidence is: Provisioned RU capacity and partition distribution are below the write and query demand. This question instead requires an action that can execute safe predictable Cosmos queries without interpolating untrusted values. Users can enter quotation marks and unexpectedly alter query predicates. Confirm search treats provided terms as values and access boundaries are unchanged.
D:
“Verify no unauthorized tenant records appear among ranked results.” validates an outcome in a case where the evidence is: The index includes tenant metadata but the query filters only the vector distance. This question instead requires an action that can execute safe predictable Cosmos queries without interpolating untrusted values. Users can enter quotation marks and unexpectedly alter query predicates. Confirm search treats provided terms as values and access boundaries are unchanged.
Question 184
Crescent Logistics is reviewing an Azure AI workload: An AI upload request looks successful in the gateway yet no single trace connects it to the downstream vector write. The business goal is to reconstruct end-to-end distributed request paths with propagated context. 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?
- Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
- Filter the correct telemetry table by time and failure then summarize count by cloud role.
- Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
- Configure Azure App Configuration key selection with explicit environment labels and sensible defaults.
Explanation
Correct Answer
A:
The applications generate spans but do not propagate W3C trace context across message boundaries. Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
Incorrect Answers
B:
“Filter the correct telemetry table by time and failure then summarize count by cloud role.” is a design or implementation response to the condition: Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. 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. Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
C:
“Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.” is a design or implementation response to the condition: An Azure Container App canary has failing requests while pooled dashboard metrics hide its isolated errors. 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. Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
D:
“Configure Azure App Configuration key selection with explicit environment labels and sensible defaults.” is a design or implementation response to the 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 reconstruct end-to-end distributed request paths with propagated context. The applications generate spans but do not propagate W3C trace context across message boundaries. Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
Question 185
Riverbend Health is reviewing an Azure AI workload: An Azure Container App canary has failing requests while pooled dashboard metrics hide its isolated errors. The business goal is to trace errors to the exact Container Apps revision responsible. 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 summarize with bin(timestamp, 5m) and appropriate role and failure filters.
- Attach stable operation context to messages and record enqueue wait and processing duration as separate spans or metrics.
- Configure managed identity token credentials with appropriate Cosmos data-plane role at a narrow scope.
- Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
Explanation
Correct Answer
D:
The log records include revision identifiers that are not used in the investigation. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
Incorrect Answers
A:
“Use summarize with bin(timestamp, 5m) and appropriate role and failure filters.” is a design or implementation response to the condition: An operations team wants to see whether model serving errors rose during a fifteen-minute rollout. This question instead requires an action that can trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
B:
“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 trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
C:
“Configure managed identity token credentials with appropriate Cosmos data-plane role at a narrow scope.” is a design or implementation response to the condition: A Container App needs to write records to one Cosmos container but currently stores a powerful account key. This question instead requires an action that can trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
Question 186
BrightPath Engineering is reviewing an Azure AI workload: An RAG service passes free-form metadata filters into SQL constructed with Python string formatting. The business goal is to use parameterized database queries with narrow table permissions. 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?
- Run an appropriate ANALYZE and maintenance plan after bulk ingestion.
- Use a new compatible vector column or migration path instead of inserting mismatched embeddings.
- Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.
- Bind values through the supported PostgreSQL driver and minimize database role privileges.
Explanation
Correct Answer
D:
Malformed input can change SQL syntax and the service account can read more rows than necessary. Bind values through the supported PostgreSQL driver and minimize database role privileges.
Incorrect Answers
A:
“Run an appropriate ANALYZE and maintenance plan after bulk ingestion.” is a design or implementation response to the condition: Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. 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. Bind values through the supported PostgreSQL driver and minimize database role privileges.
B:
“Use a new compatible vector column or migration path instead of inserting mismatched embeddings.” is a design or implementation response to the condition: The database column is declared as vector(1536) and reject mismatched input. 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. Bind values through the supported PostgreSQL driver and minimize database role privileges.
C:
“Apply required tenant and document-class filters in the Redis vector query alongside KNN ranking.” is a design or implementation response to the condition: A chatbot uses Redis nearest-neighbor search for a multi-customer knowledge base and must isolate results. 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. Bind values through the supported PostgreSQL driver and minimize database role privileges.
Question 187
At Mosaic Robotics, a backend Redis client connects over an unencrypted legacy endpoint with a shared password. Evidence: The environment requires encrypted transport and scoped client credentials. The objective is to secure application-to-cache connections with supported authentication and TLS. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Use bounded single-flight locking or stale-while-revalidate with TTL jitter where safe.
- Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
- Use supported PostgreSQL connection pooling and sensible client-side reuse/limits.
Explanation
Correct Answer
B:
The environment requires encrypted transport and scoped client credentials. Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
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 secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
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 secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
D:
“Use supported PostgreSQL connection pooling and sensible client-side reuse/limits.” is a design or implementation response to the condition: A serverless vector ranking API works in development but fails intermittently at higher concurrent request volumes. This question instead requires an action that can secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Enable supported TLS and appropriately scoped Microsoft Entra or Redis access controls.
Question 188
At Marigold Retail, 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. Preserve end-to-end correlation and avoid copying sensitive production data. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor private DNS drift, endpoint health and public network state.
- Monitor unauthorized key reads, identity token failures and shared-key usage.
- Monitor refresh failures, stale config age and sentinel version changes.
- Monitor ingestion volume, dropped errors and adaptive sampling bias.
Explanation
Correct Answer
A:
The vault private endpoint exists but the necessary privatelink.vaultcore.azure.net DNS zone is not linked to the app VNet. Monitor private DNS drift, endpoint health and public network state.
Incorrect Answers
B:
“Monitor unauthorized key reads, identity token failures and shared-key usage.” monitors this signal: The workload supports managed identity and endpoint-based configuration loading. 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. Monitor private DNS drift, endpoint health and public network state.
C:
“Monitor refresh failures, stale config age and sentinel version changes.” monitors this signal: 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. Monitor private DNS drift, endpoint health and public network state.
D:
“Monitor ingestion volume, dropped errors and adaptive sampling bias.” monitors this signal: The exporter captures all success events without sampling and does not retain error context. 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. Monitor private DNS drift, endpoint health and public network state.
Question 189
At Marigold Retail, a knowledge retrieval query uses tenant_id and a vector distance operator but scans huge unrelated tenant rows. Evidence: The database has a vector index but no useful plan for the frequent structured tenant predicate. The objective is to combine structured filtering with vector retrieval without breaking tenant isolation. Changes must respect customer tenant boundaries and required availability targets. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor pooler wait time, idle connections and transaction failures.
- Monitor slow filtered-vector queries and cross-tenant authorization defects.
- Monitor corpus drift, search recall and vacuum/reindex maintenance.
- Monitor normalized RU consumption, throttling and autoscale ceilings.
Explanation
Correct Answer
B:
The database has a vector index but no useful plan for the frequent structured tenant predicate. Monitor slow filtered-vector queries and cross-tenant authorization defects.
Incorrect Answers
A:
“Monitor pooler wait time, idle connections and transaction failures.” monitors this signal: The database sees many idle connections and connection setup dominates API latency. This question instead requires an action that can combine structured filtering with vector retrieval without breaking tenant isolation. The database has a vector index but no useful plan for the frequent structured tenant predicate. Monitor slow filtered-vector queries and cross-tenant authorization defects.
C:
“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 combine structured filtering with vector retrieval without breaking tenant isolation. The database has a vector index but no useful plan for the frequent structured tenant predicate. Monitor slow filtered-vector queries and cross-tenant authorization defects.
D:
“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 structured filtering with vector retrieval without breaking tenant isolation. The database has a vector index but no useful plan for the frequent structured tenant predicate. Monitor slow filtered-vector queries and cross-tenant authorization defects.
Question 190
At Northwind Learning, a retrieval query returns embedding rows but ignores document publication status in a related metadata table. Evidence: The vector table and document ACL table are normalized with a shared document_id. The objective is to ensure RAG retrieval obeys document metadata and authorization joins. Changes must respect customer tenant boundaries and required availability targets. Which acceptance result most strongly demonstrates the requirement is met?
- Verify cosine search uses the compatible index and returns expected neighbors.
- Verify only approved published documents are returned regardless of vector similarity.
- Verify vector operators execute successfully and the extension version meets application requirements.
- Verify no unauthorized tenant records appear among ranked results.
Explanation
Correct Answer
B:
The vector table and document ACL table are normalized with a shared document_id. Verify only approved published documents are returned regardless of vector similarity.
Incorrect Answers
A:
“Verify cosine search uses the compatible index and returns expected neighbors.” validates an outcome in a case where the evidence is: The mismatch keeps the query from using the intended nearest-neighbor index plan. 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. Verify only approved published documents are returned regardless of vector similarity.
C:
“Verify vector operators execute successfully and the extension version meets application requirements.” validates an outcome in a case where the evidence is: The extension is not enabled or allowlisted for the chosen server configuration. 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. Verify only approved published documents are returned regardless of vector similarity.
D:
“Verify no unauthorized tenant records appear among ranked results.” validates an outcome in a case where the evidence is: The index includes tenant metadata but the query filters only the vector distance. 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. Verify only approved published documents are returned regardless of vector similarity.