Microsoft AI-200 Practice Test 40
Question 390
At Redwood Banking, a single configuration key means different feature settings in development and production but the app always receives the default value. Evidence: The team created labeled keys yet the SDK filter does not select the requested environment label. The objective is to resolve the correct app configuration values by environment without copying application binaries. Only authorized Azure subscriptions and synthetic test data may be used. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect Cosmos data-plane roles, SDK authentication constructor and application identity.
- Inspect application secret URI, available versions and rotation schedule.
- Inspect key names, labels, connection selectors and fallback behavior.
- Inspect instrumentation, traceparent headers, producer message properties and consumer span linking.
Explanation
Correct Answer
C:
The team created labeled keys yet the SDK filter does not select the requested environment label. Inspect key names, labels, connection selectors and fallback behavior.
Incorrect Answers
A:
Managed identity changes how the SDK authenticates, not which environment label is selected for an App Configuration key. Set the correct label filter to retrieve staging or production values.
B:
“Inspect application secret URI, available versions and rotation schedule.” is a diagnostic step for the reported condition: The application reference includes a specific version that no longer matches the managed rotation policy. This question instead requires an action that can resolve the correct app configuration values by environment without copying application binaries. The team created labeled keys yet the SDK filter does not select the requested environment label. Inspect key names, labels, connection selectors and fallback behavior.
D:
“Inspect instrumentation, traceparent headers, producer message properties and consumer span linking.” is a diagnostic step for the reported condition: The applications generate spans but do not propagate W3C trace context across message boundaries. This question instead requires an action that can resolve the correct app configuration values by environment without copying application binaries. The team created labeled keys yet the SDK filter does not select the requested environment label. Inspect key names, labels, connection selectors and fallback behavior.
Question 391
Pine Valley Public Services is reviewing an Azure AI workload: An application scales in a secondary region but repeatedly pulls the same model-serving image across regions. The business goal is to reduce regional image pull latency and improve registry availability without duplicating release identities. 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?
- Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
- Configure the correct custom-container port and bind the application to all container interfaces.
- Assign a least-privilege managed identity role and use Azure Identity credentials from the app.
- Enable supported ACR geo-replication in the required regions under one registry namespace.
Explanation
Correct Answer
D:
Its Premium registry has no replica in the region where new workloads are starting. Enable supported ACR geo-replication in the required regions under one registry namespace.
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 reduce regional image pull latency and improve registry availability without duplicating release identities. Its Premium registry has no replica in the region where new workloads are starting. Enable supported ACR geo-replication in the required regions under one registry namespace.
B:
Fixing an App Service container listener port can restore HTTP health checks, but it does not bring an Azure Container Registry image closer to a remote deployment. A regional ACR replica addresses large-image pull locality and availability.
C:
“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 reduce regional image pull latency and improve registry availability without duplicating release identities. Its Premium registry has no replica in the region where new workloads are starting. Enable supported ACR geo-replication in the required regions under one registry namespace.
Question 392
At Summit Finance, an AKS model server accepts TCP connections before it finishes loading its embedding model and clients receive errors. Evidence: A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. The objective is to route traffic only after application readiness while retaining separate restart detection. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Deploy an event-driven Container Apps Job with scoped queue trigger and concurrency limits.
- Define distinct readiness and liveness checks with suitable startup allowances for model load time.
- Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
- Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
Explanation
Correct Answer
B:
A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. Define distinct readiness and liveness checks with suitable startup allowances for model load time.
Incorrect Answers
A:
“Deploy an event-driven Container Apps Job with scoped queue trigger and concurrency limits.” is a design or implementation response to the condition: A nightly AI enrichment task needs a container that starts on queued work and exits when finished. This question instead requires an action that can route traffic only after application readiness while retaining separate restart detection. A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. Define distinct readiness and liveness checks with suitable startup allowances for model load time.
C:
“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 route traffic only after application readiness while retaining separate restart detection. A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. Define distinct readiness and liveness checks with suitable startup allowances for model load time.
D:
“Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.” is a design or implementation response to the condition: 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 route traffic only after application readiness while retaining separate restart detection. A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. Define distinct readiness and liveness checks with suitable startup allowances for model load time.
Question 393
At Summit Finance, a producer retries sending a document-indexing command after an ambiguous network timeout. Evidence: The first send may have succeeded and a second identical command could duplicate work. The objective is to handle uncertain message delivery with stable message identity and idempotent side effects. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect MessageId generation, duplicate detection window and worker output keys.
- Inspect event subjects, event type and current advanced or subject filters.
- Inspect Content-Type, event schema, id, source, type, subject and data structure.
- Inspect the Event Grid subscription endpoint, trigger binding and event filters.
Explanation
Correct Answer
A:
The first send may have succeeded and a second identical command could duplicate work. Inspect MessageId generation, duplicate detection window and worker output keys.
Incorrect Answers
B:
“Inspect event subjects, event type and current advanced or subject filters.” is a diagnostic step for the reported condition: The subscription has no subject filter and triggers expensive embedding for unrelated images. This question instead requires an action that can handle uncertain message delivery with stable message identity and idempotent side effects. The first send may have succeeded and a second identical command could duplicate work. Inspect MessageId generation, duplicate detection window and worker output keys.
C:
“Inspect Content-Type, event schema, id, source, type, subject and data structure.” is a diagnostic step for the reported condition: The Python function expects the older Event Grid event wrapper and reads nonexistent fields. This question instead requires an action that can handle uncertain message delivery with stable message identity and idempotent side effects. The first send may have succeeded and a second identical command could duplicate work. Inspect MessageId generation, duplicate detection window and worker output keys.
D:
“Inspect the Event Grid subscription endpoint, trigger binding and event filters.” is a diagnostic step for the reported condition: The Event Grid event subscription points to an outdated function endpoint and event type. This question instead requires an action that can handle uncertain message delivery with stable message identity and idempotent side effects. The first send may have succeeded and a second identical command could duplicate work. Inspect MessageId generation, duplicate detection window and worker output keys.
Question 394
At Sapphire Energy, a monitoring report uses average processing time and misses rare extremely slow inference calls. Evidence: Telemetry has request duration samples with a heavy tail. The objective is to measure tail latency rather than relying only on mean request duration. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which acceptance result most strongly demonstrates the requirement is met?
- Verify the percentile calculation exposes slow tail behavior and preserves sufficient sample context.
- Verify bucket timestamps and counts align with known events and UTC boundaries.
- Verify traces preserve timing and correlation while sensitive values are absent.
- Verify the authorized identity reads the secret while the unassigned identity is denied.
Explanation
Correct Answer
A:
Telemetry has request duration samples with a heavy tail. Verify the percentile calculation exposes slow tail behavior and preserves sufficient sample context. p95 and p99 expose slow requests hidden by a mean, provided the time window and sample population are comparable.
Incorrect Answers
B:
KQL time bins organize events into intervals; binning alone cannot show tail latency within those intervals. Aggregate durations with percentile or percentiles for p95 and p99.
C:
“Verify traces preserve timing and correlation while sensitive values are absent.” validates an outcome in a case where the evidence is: The organization needs troubleshooting context but prohibits exporting raw sensitive data. This question instead requires an action that can measure tail latency rather than relying only on mean request duration. Telemetry has request duration samples with a heavy tail. Verify the percentile calculation exposes slow tail behavior and preserves sufficient sample context. p95 and p99 expose slow requests hidden by a mean, provided the time window and sample population are comparable.
D:
“Verify the authorized identity reads the secret while the unassigned identity is denied.” validates an outcome in a case where the evidence is: The vault is configured to use the Azure RBAC permission model for data-plane authorization. This question instead requires an action that can measure tail latency rather than relying only on mean request duration. Telemetry has request duration samples with a heavy tail. Verify the percentile calculation exposes slow tail behavior and preserves sufficient sample context. p95 and p99 expose slow requests hidden by a mean, provided the time window and sample population are comparable.
Question 395
At Crownridge Consulting, 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. Validate in a disposable environment before applying production changes. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor vector index build errors, memory footprint and query latency.
- Monitor failed auth attempts, certificate expirations and overly broad cache roles.
- Monitor evictions, fragmentation and frequently missed large entries.
- Monitor hybrid scoring bias, query latency and search result quality.
Explanation
Correct Answer
B:
The environment requires encrypted transport and scoped client credentials. Monitor failed auth attempts, certificate expirations and overly broad cache roles.
Incorrect Answers
A:
“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 secure application-to-cache connections with supported authentication and TLS. The environment requires encrypted transport and scoped client credentials. Monitor failed auth attempts, certificate expirations and overly broad cache roles.
C:
“Monitor evictions, fragmentation and frequently missed large entries.” monitors this signal: Its max memory is saturated and eviction policy does not match cache workload priorities. 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. Monitor failed auth attempts, certificate expirations and overly broad cache roles.
D:
“Monitor hybrid scoring bias, query latency and search result quality.” monitors this signal: Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. 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. Monitor failed auth attempts, certificate expirations and overly broad cache roles.
Question 396
At Juniper Analytics, an Azure Function processes messages from Service Bus but completes them even when database output fails. Evidence: The trigger configuration retries and message settlement must align with actual successful work. The objective is to use correct Service Bus trigger completion and retry behavior for durable processing. Validate in a disposable environment before applying production changes. Which controlled pilot most directly validates the proposed approach?
- Run a benign test invocation that reads and writes an object in a sandbox container.
- Inject a staging message that causes a transient database failure before eventually succeeding.
- Force a harmless retry of a synthetic event after the downstream sink commits.
- Create harmless test blobs in both included and excluded prefixes.
Explanation
Correct Answer
B:
The trigger configuration retries and message settlement must align with actual successful work. Inject a staging message that causes a transient database failure before eventually succeeding.
Incorrect Answers
A:
A Functions storage binding simplifies storage I/O and avoids embedded keys. It does not decide whether an unsuccessful Service Bus-triggered message should be retried rather than completed; settlement must reflect committed work.
C:
Idempotency guards repeated business side effects when a function runs more than once; it does not by itself control when a Service Bus message is completed or dead-lettered. Settlement must occur only after successful downstream work, with retry/failure handling configured.
D:
“Create harmless test blobs in both included and excluded prefixes.” tests a proposed change for the condition: The subscription has no subject filter and triggers expensive embedding for unrelated images. This question instead requires an action that can use correct Service Bus trigger completion and retry behavior for durable processing. The trigger configuration retries and message settlement must align with actual successful work. Inject a staging message that causes a transient database failure before eventually succeeding.
Question 397
At Cobalt Research, a queue worker acknowledges a message before writing its embedding result to a database. Evidence: If the database transaction fails afterward the work is lost because the message was already removed. The objective is to complete locked Service Bus messages only after successful durable processing. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which controlled pilot most directly validates the proposed approach?
- Create a staging Event Grid subscription pointing to the test webhook and handle its validation event.
- Force a harmless database write failure after receiving a synthetic locked message.
- Return controlled 5xx responses from a staging webhook to exhaust its retry window.
- Call the staging route with a valid test identity and an unauthenticated request.
Explanation
Correct Answer
B:
If the database transaction fails afterward the work is lost because the message was already removed. Force a harmless database write failure after receiving a synthetic locked message.
Incorrect Answers
A:
“Create a staging Event Grid subscription pointing to the test webhook and handle its validation event.” tests a proposed change for the condition: The webhook ignores the subscription validation event and never returns the expected validation response. This question instead requires an action that can complete locked Service Bus messages only after successful durable processing. If the database transaction fails afterward the work is lost because the message was already removed. Force a harmless database write failure after receiving a synthetic locked message.
C:
“Return controlled 5xx responses from a staging webhook to exhaust its retry window.” tests a proposed change for the condition: The subscription has a delivery retry policy but dead-letter storage was never configured. This question instead requires an action that can complete locked Service Bus messages only after successful durable processing. If the database transaction fails afterward the work is lost because the message was already removed. Force a harmless database write failure after receiving a synthetic locked message.
D:
“Call the staging route with a valid test identity and an unauthenticated request.” tests a proposed change for the condition: The application should require an approved client identity before invoking the function. This question instead requires an action that can complete locked Service Bus messages only after successful durable processing. If the database transaction fails afterward the work is lost because the message was already removed. Force a harmless database write failure after receiving a synthetic locked message.
Question 398
Crescent Logistics is reviewing an Azure AI workload: A personalization service reads a known profile record thousands of times per minute but scans a container each time. The business goal is to use efficient point reads for known Cosmos DB document identities. 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?
- Use deterministic sink IDs and version checks before committing processed embeddings.
- Call the SDK read_item operation with item id and partition key instead of a broad query.
- Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
- Use supported PostgreSQL connection pooling and sensible client-side reuse/limits.
Explanation
Correct Answer
B:
The SDK already has both the item id and its exact partition key value. Call the SDK read_item operation with item id and partition key instead of a broad query.
Incorrect Answers
A:
“Use deterministic sink IDs and version checks before committing processed embeddings.” is a design or implementation response to the condition: An updated knowledge article gets indexed twice after processor failover and changes search ranking. This question instead requires an action that can use efficient point reads for known Cosmos DB document identities. The SDK already has both the item id and its exact partition key value. Call the SDK read_item operation with item id and partition key instead of a broad query.
C:
“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 use efficient point reads for known Cosmos DB document identities. The SDK already has both the item id and its exact partition key value. Call the SDK read_item operation with item id and partition key instead of a broad query.
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 use efficient point reads for known Cosmos DB document identities. The SDK already has both the item id and its exact partition key value. Call the SDK read_item operation with item id and partition key instead of a broad query.
Question 399
At Juniper Analytics, an event destination is temporarily unavailable and change notifications disappear from the processing audit trail. Evidence: The subscription has a delivery retry policy but dead-letter storage was never configured. The objective is to make event-delivery failures observable and recoverable under defined retry limits. Only authorized Azure subscriptions and synthetic test data may be used. Which implementation or configuration choice best meets the stated requirement?
- Defer the valid message and persist its sequence number for later explicit retrieval.
- Configure supported Event Grid retry and dead-letter storage settings with restricted access.
- Use stable MessageId with supported duplicate detection and maintain idempotent consumer writes.
- Define a supported schedule in the correct time standard and document daylight-saving behavior.
Explanation
Correct Answer
B:
The subscription has a delivery retry policy but dead-letter storage was never configured. Configure supported Event Grid retry and dead-letter storage settings with restricted access.
Incorrect Answers
A:
Service Bus deferral and dead-lettering operate on brokered messages. Event Grid delivery failures require subscription retry policy and a configured dead-letter destination that can be monitored and replayed.
C:
“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 make event-delivery failures observable and recoverable under defined retry limits. The subscription has a delivery retry policy but dead-letter storage was never configured. Configure supported Event Grid retry and dead-letter storage settings with restricted access.
D:
“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 make event-delivery failures observable and recoverable under defined retry limits. The subscription has a delivery retry policy but dead-letter storage was never configured. Configure supported Event Grid retry and dead-letter storage settings with restricted access.
Question 400
At Crownridge Consulting, a Redis vector search returns semantically close responses from projects outside the caller's authorized scope. Evidence: The index includes tenant metadata but the query filters only the vector distance. The objective is to combine vector nearest-neighbor retrieval with explicit metadata predicates. Only authorized Azure subscriptions and synthetic test data may be used. Which acceptance result most strongly demonstrates the requirement is met?
- Verify permitted commands work securely and prohibited operations are denied.
- Verify no unauthorized tenant records appear among ranked results.
- Verify subsequent reads return the new content rather than a stale cached answer.
- Verify upserts and similarity queries succeed with the expected vector dimensionality.
Explanation
Correct Answer
B:
The index includes tenant metadata but the query filters only the vector distance. Verify no unauthorized tenant records appear among ranked results.
Incorrect Answers
A:
“Verify permitted commands work securely and prohibited operations are denied.” validates an outcome in a case where the evidence is: The environment requires encrypted transport and scoped client credentials. 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. Verify no unauthorized tenant records appear among ranked results.
C:
“Verify subsequent reads return the new content rather than a stale cached answer.” validates an outcome in a case where the evidence is: Its Redis cache persists until a long TTL and does not react to content version changes. 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. Verify no unauthorized tenant records appear among ranked results.
D:
“Verify upserts and similarity queries succeed with the expected vector dimensionality.” validates an outcome in a case where the evidence is: 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 combine vector nearest-neighbor retrieval with explicit metadata predicates. The index includes tenant metadata but the query filters only the vector distance. Verify no unauthorized tenant records appear among ranked results.