Microsoft AI-200 Practice Test 57
Question 560
At Clearwater Partners, an AKS deployment uses a mutable image and manual pod deletion to update a retrieval API. Evidence: The cluster requires repeatable rollout history, desired replica management, and readiness assurance. The objective is to deploy container updates declaratively with a Kubernetes Deployment manifest. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Assign a least-privilege managed identity role and use Azure Identity credentials from the app.
- Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
- Configure supported Dapr pub/sub components and subscription routes with required credentials or identity.
- Grant the application's managed identity appropriate registry pull rights and configure managed identity-based registry authentication.
Explanation
Correct Answer
B:
The cluster requires repeatable rollout history, desired replica management, and readiness assurance. Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
Incorrect Answers
A:
“Assign a least-privilege managed identity role and use Azure Identity credentials from the app.” is a design or implementation response to the condition: An Azure Container App needs to access Cosmos DB without storing a service key in its image. This question instead requires an action that can deploy container updates declaratively with a Kubernetes Deployment manifest. The cluster requires repeatable rollout history, desired replica management, and readiness assurance. Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
C:
“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 deploy container updates declaratively with a Kubernetes Deployment manifest. The cluster requires repeatable rollout history, desired replica management, and readiness assurance. Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
D:
“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 deploy container updates declaratively with a Kubernetes Deployment manifest. The cluster requires repeatable rollout history, desired replica management, and readiness assurance. Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
Question 561
At Seabright Media, an SDK-based AI service authenticates to a Cosmos DB endpoint with a primary account key that many developers know. Evidence: The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. The objective is to prefer scoped token credentials instead of shared database secrets. Only authorized Azure subscriptions and synthetic test data may be used. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect refresh registration, cache expiration and sentinel update order.
- Inspect vault permission model, effective role assignments and inherited scope.
- Inspect console logs, system logs, revision names and deployment timestamps.
- Inspect Cosmos data-plane roles, SDK authentication constructor and application identity.
Explanation
Correct Answer
D:
The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Inspect Cosmos data-plane roles, SDK authentication constructor and application identity.
Incorrect Answers
A:
“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 prefer scoped token credentials instead of shared database secrets. The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Inspect Cosmos data-plane roles, SDK authentication constructor and application identity.
B:
“Inspect vault permission model, effective role assignments and inherited scope.” is a diagnostic step for the reported condition: The vault is configured to use the Azure RBAC permission model for data-plane authorization. This question instead requires an action that can prefer scoped token credentials instead of shared database secrets. The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Inspect Cosmos data-plane roles, SDK authentication constructor and application identity.
C:
“Inspect console logs, system logs, revision names and deployment timestamps.” is a diagnostic step for the reported condition: The log records include revision identifiers that are not used in the investigation. This question instead requires an action that can prefer scoped token credentials instead of shared database secrets. The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. Inspect Cosmos data-plane roles, SDK authentication constructor and application identity.
Question 562
At Cobalt Research, 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. Changes must respect customer tenant boundaries and required availability targets. Which controlled pilot most directly validates the proposed approach?
- Create a new harmless secret version and refresh a staging application's secret reference.
- Run a benign item read through the app identity and try an unauthorized container read.
- Evaluate the same test flag for two different approved synthetic user groups.
- Query a synthetic latency set with known outliers and compare average versus p95.
Explanation
Correct Answer
A:
The application reference includes a specific version that no longer matches the managed rotation policy. Create a new harmless secret version and refresh a staging application's secret reference.
Incorrect Answers
B:
“Run a benign item read through the app identity and try an unauthorized container read.” tests a proposed change for the condition: The target Cosmos database supports Entra RBAC data-plane permissions for the intended operation. 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. Create a new harmless secret version and refresh a staging application's secret reference.
C:
“Evaluate the same test flag for two different approved synthetic user groups.” tests a proposed change for the condition: The application uses hard-coded booleans in source and requires a rebuild for every rollout. 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. Create a new harmless secret version and refresh a staging application's secret reference.
D:
“Query a synthetic latency set with known outliers and compare average versus p95.” tests a proposed change for the condition: Telemetry has request duration samples with a heavy tail. 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. Create a new harmless secret version and refresh a staging application's secret reference.
Question 563
At Orion Commerce, an Azure Blob Storage event endpoint receives changes for every blob although it needs only a documents prefix. Evidence: The subscription has no subject filter and triggers expensive embedding for unrelated images. The objective is to narrow an Event Grid subscription to the relevant resource subject path. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Use PeekLock processing and call Complete only after the output is persisted successfully.
- Defer the valid message and persist its sequence number for later explicit retrieval.
- Enable managed identity and assign the precise Key Vault secret read role to the function.
- Configure a correct subject-begins-with filter for the intended container or path.
Explanation
Correct Answer
D:
The subscription has no subject filter and triggers expensive embedding for unrelated images. Configure a correct subject-begins-with filter for the intended container or path.
Incorrect Answers
A:
“Use PeekLock processing and call Complete only after the output is persisted successfully.” is a design or implementation response to the condition: If the database transaction fails afterward the work is lost because the message was already removed. This question instead requires an action that can narrow an Event Grid subscription to the relevant resource subject path. The subscription has no subject filter and triggers expensive embedding for unrelated images. Configure a correct subject-begins-with filter for the intended container or path.
B:
Service Bus message deferral and dead-lettering govern brokered-message processing, not which Event Grid resource subjects a subscription receives. Apply the appropriate Event Grid subject-begins-with filter.
C:
“Enable managed identity and assign the precise Key Vault secret read role to the function.” is a design or implementation response to the condition: Locally configured CLI credentials are not present in Azure and the Function App identity lacks permission. This question instead requires an action that can narrow an Event Grid subscription to the relevant resource subject path. The subscription has no subject filter and triggers expensive embedding for unrelated images. Configure a correct subject-begins-with filter for the intended container or path.
Question 564
At Cedar Cloud, 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. Only authorized Azure subscriptions and synthetic test data may be used. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor failed inserts and unexpected embedding model version changes.
- Monitor query plans, index bloat and accidental distance operator changes.
- Monitor cache hit rate, stale entries and memory utilization.
- Monitor rejected queries, database privilege drift and suspicious syntax patterns.
Explanation
Correct Answer
D:
Malformed input can change SQL syntax and the service account can read more rows than necessary. Monitor rejected queries, database privilege drift and suspicious syntax patterns.
Incorrect Answers
A:
“Monitor failed inserts and unexpected embedding model version changes.” monitors this signal: 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. Monitor rejected queries, database privilege drift and suspicious syntax patterns.
B:
“Monitor query plans, index bloat and accidental distance operator changes.” monitors this signal: The mismatch keeps the query from using the intended nearest-neighbor index plan. 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. Monitor rejected queries, database privilege drift and suspicious syntax patterns.
C:
“Monitor cache hit rate, stale entries and memory utilization.” monitors this signal: It currently bypasses Redis and stores no expiration for cacheable responses. 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. Monitor rejected queries, database privilege drift and suspicious syntax patterns.
Question 565
At Lighthouse Systems, 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. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Choose an appropriate autoscale or provisioned RU strategy and optimize expensive operations first.
- Configure a common lease container and stable processor identity with correct change feed mode.
- Use supported PostgreSQL connection pooling and sensible client-side reuse/limits.
- Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.
Explanation
Correct Answer
D:
The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.
Incorrect Answers
A:
“Choose an appropriate autoscale or provisioned RU strategy and optimize expensive operations first.” is a design or implementation response to the condition: Provisioned RU capacity and partition distribution are below the write and query demand. This question instead requires an action that can combine semantic retrieval with mandatory tenant filtering and authorization. The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.
B:
“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 combine semantic retrieval with mandatory tenant filtering and authorization. The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.
C:
“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 combine semantic retrieval with mandatory tenant filtering and authorization. The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. Apply caller-bound tenant metadata filters and partition scoping before returning vector matches.
Question 566
At Harbor Technology, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor stranded pending documents and repeated ingest failures.
- Monitor CPU saturation, disk latency, and storage growth.
- Monitor query plans, index bloat and accidental distance operator changes.
- Monitor vector index build errors, memory footprint and query latency.
Explanation
Correct Answer
A:
The database stores document status and embeddings in related rows without a reliable completion boundary. Monitor stranded pending documents and repeated ingest failures.
Incorrect Answers
B:
“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 prevent partially ingested documents from appearing as searchable content. The database stores document status and embeddings in related rows without a reliable completion boundary. Monitor stranded pending documents and repeated ingest failures.
C:
A pgvector cosine operator-class mismatch affects similarity-search index use; it does not make a partially written document and its embeddings atomic. Transactionally coordinate ingest and visibility so incomplete records are not searchable.
D:
“Monitor vector index build errors, memory footprint and query latency.” monitors this signal: The service requires a supported Redis search/vector index with consistent embedding dimensions. 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. Monitor stranded pending documents and repeated ingest failures.
Question 567
At Atlas Support, a containerized classification API stays at one replica while request concurrency spikes. Evidence: The app has no tuned HTTP scale rule and the maximum replica count is too low. The objective is to scale replica counts based on measured inbound HTTP load. Only authorized Azure subscriptions and synthetic test data may be used. Which acceptance result most strongly demonstrates the requirement is met?
- Verify load triggers scale-out and idle demand scales back within configured bounds.
- Verify the indexer receives and acknowledges the expected event on its subscribed route.
- Verify completed executions persist output and retries do not duplicate committed work.
- Verify each slot connects only to its designated test service while image content remains identical.
Explanation
Correct Answer
A:
The app has no tuned HTTP scale rule and the maximum replica count is too low. Verify load triggers scale-out and idle demand scales back within configured bounds.
Incorrect Answers
B:
“Verify the indexer receives and acknowledges the expected event on its subscribed route.” validates an outcome in a case where the evidence is: The Dapr pub/sub component references an incorrect topic and lacks authorized broker access. This question instead requires an action that can scale replica counts based on measured inbound HTTP load. The app has no tuned HTTP scale rule and the maximum replica count is too low. Verify load triggers scale-out and idle demand scales back within configured bounds.
C:
“Verify completed executions persist output and retries do not duplicate committed work.” validates an outcome in a case where the evidence is: The workflow is short-lived and triggered by queue events, not interactive requests. This question instead requires an action that can scale replica counts based on measured inbound HTTP load. The app has no tuned HTTP scale rule and the maximum replica count is too low. Verify load triggers scale-out and idle demand scales back within configured bounds.
D:
“Verify each slot connects only to its designated test service while image content remains identical.” validates an outcome in a case where the evidence is: Its model endpoint and database settings were baked into the Docker image rather than injected per environment. This question instead requires an action that can scale replica counts based on measured inbound HTTP load. The app has no tuned HTTP scale rule and the maximum replica count is too low. Verify load triggers scale-out and idle demand scales back within configured bounds.
Question 568
At Lighthouse Systems, 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. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Configure an ACR Task trigger for supported base-image updates with tests before promotion.
- Grant the application's managed identity appropriate registry pull rights and configure managed identity-based registry authentication.
- Configure an Azure Service Bus KEDA scale rule using a supported managed identity and queue-length thresholds.
- Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
Explanation
Correct Answer
D:
The application can use managed identity and the secret already exists in Azure Key Vault. Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
Incorrect Answers
A:
“Configure an ACR Task trigger for supported base-image updates with tests before promotion.” is a design or implementation response to the condition: The pipeline rebuilds only when developers push code and never tracks upstream base image updates. This question instead requires an action that can 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. Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
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 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. Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
C:
“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 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. Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
Question 569
At Crescent Logistics, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.
- Use supported PostgreSQL connection pooling and sensible client-side reuse/limits.
- Allowlist and create the supported vector extension in the intended database under change control.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
Explanation
Correct Answer
C:
The extension is not enabled or allowlisted for the chosen server configuration. Allowlist and create the supported vector extension in the intended database under change control.
Incorrect Answers
A:
“Add a suitable structured index and design query/index strategy for tenant-constrained nearest neighbors.” is a design or implementation response to the condition: A policy search backend requires both nearest embedding and department-specific metadata filters. 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. Allowlist and create the supported vector extension in the intended database under change control.
B:
“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 enable supported vector data types and functions before ingesting embeddings. The extension is not enabled or allowlisted for the chosen server configuration. Allowlist and create the supported vector extension in the intended database under change control.
D:
“Implement cache-aside lookup with a bounded TTL and version-aware key names.” is a design or implementation response to the condition: It currently bypasses Redis and stores no expiration for cacheable responses. This question instead requires an action that can enable supported vector data types and functions before ingesting embeddings. The extension is not enabled or allowlisted for the chosen server configuration. Allowlist and create the supported vector extension in the intended database under change control.
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.