Microsoft AI-200 Practice Test 21
Question 200
At Clearwater Partners, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor repeated event IDs, stale locks and duplicate side effects.
- Monitor schedule drift, missed runs and repeated executions.
- Monitor abandoned deferred messages, lost sequence numbers and expired dependencies.
- Monitor invocation failures, lock losses and poison-message count.
Explanation
Correct Answer
D:
The trigger configuration retries and message settlement must align with actual successful work. Monitor invocation failures, lock losses and poison-message count.
Incorrect Answers
A:
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.
B:
“Monitor schedule drift, missed runs and repeated executions.” monitors this signal: The host interprets schedules with specific UTC and configuration semantics. 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. Monitor invocation failures, lock losses and poison-message count.
C:
“Monitor abandoned deferred messages, lost sequence numbers and expired dependencies.” monitors this signal: 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 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. Monitor invocation failures, lock losses and poison-message count.
Question 201
At Orion Commerce, an external webhook endpoint never activates as an Event Grid event subscription destination. Evidence: The webhook ignores the subscription validation event and never returns the expected validation response. The objective is to complete Event Grid webhook subscription validation before accepting operational events. Preserve end-to-end correlation and avoid copying sensitive production data. 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.
- Send the same harmless command twice with an identical message identifier within the configured window.
- Run a benign test invocation that reads and writes an object in a sandbox container.
Explanation
Correct Answer
A:
The webhook ignores the subscription validation event and never returns the expected validation response. Create a staging Event Grid subscription pointing to the test webhook and handle its validation event.
Incorrect Answers
B:
“Force a harmless database write failure after receiving a synthetic locked message.” tests a proposed change for 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 complete Event Grid webhook subscription validation before accepting operational events. The webhook ignores the subscription validation event and never returns the expected validation response. Create a staging Event Grid subscription pointing to the test webhook and handle its validation event.
C:
“Send the same harmless command twice with an identical message identifier within the configured window.” tests a proposed change for the condition: The first send may have succeeded and a second identical command could duplicate work. This question instead requires an action that can complete Event Grid webhook subscription validation before accepting operational events. The webhook ignores the subscription validation event and never returns the expected validation response. Create a staging Event Grid subscription pointing to the test webhook and handle its validation event.
D:
“Run a benign test invocation that reads and writes an object in a sandbox container.” tests a proposed change for the condition: The function uses a modern supported runtime and can obtain scoped storage identity permissions. This question instead requires an action that can complete Event Grid webhook subscription validation before accepting operational events. The webhook ignores the subscription validation event and never returns the expected validation response. Create a staging Event Grid subscription pointing to the test webhook and handle its validation event.
Question 202
At Clearwater Partners, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Configure managed identity token credentials with appropriate Cosmos data-plane role at a narrow scope.
- Assign an appropriate Key Vault data role at the narrowest required scope under the configured model.
- Configure Azure App Configuration key selection with explicit environment labels and sensible defaults.
- Attach stable operation context to messages and record enqueue wait and processing duration as separate spans or metrics.
Explanation
Correct Answer
C:
The team created labeled keys yet the SDK filter does not select the requested environment label. Configure Azure App Configuration key selection with explicit environment labels and sensible defaults.
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:
“Assign an appropriate Key Vault data role at the narrowest required scope under the configured model.” is a design or implementation response to the condition: The vault is configured to use the Azure RBAC permission model for data-plane authorization. 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. Configure Azure App Configuration key selection with explicit environment labels and sensible defaults.
D:
“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 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. Configure Azure App Configuration key selection with explicit environment labels and sensible defaults.
Question 203
At Blue Ridge Technology, a new experimental answer reranker must be enabled only for a small approved tester cohort. Evidence: The application uses hard-coded booleans in source and requires a rebuild for every rollout. The objective is to manage feature rollout independently from compiled application code. Only authorized Azure subscriptions and synthetic test data may be used. Which acceptance result most strongly demonstrates the requirement is met?
- Verify the authorized identity reads the secret while the unassigned identity is denied.
- Verify the intended secret is accessible and unrelated secrets or vaults are denied.
- Verify traces preserve timing and correlation while sensitive values are absent.
- Verify enabled testers receive the feature and other users continue on the stable path.
Explanation
Correct Answer
D:
The application uses hard-coded booleans in source and requires a rebuild for every rollout. Verify enabled testers receive the feature and other users continue on the stable path.
Incorrect Answers
A:
“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 manage feature rollout independently from compiled application code. The application uses hard-coded booleans in source and requires a rebuild for every rollout. Verify enabled testers receive the feature and other users continue on the stable path.
B:
“Verify the intended secret is accessible and unrelated secrets or vaults are denied.” validates an outcome in a case where the evidence is: The workload supports managed identity and the secret is stored in Azure Key Vault. This question instead requires an action that can manage feature rollout independently from compiled application code. The application uses hard-coded booleans in source and requires a rebuild for every rollout. Verify enabled testers receive the feature and other users continue on the stable path.
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 manage feature rollout independently from compiled application code. The application uses hard-coded booleans in source and requires a rebuild for every rollout. Verify enabled testers receive the feature and other users continue on the stable path.
Question 204
At Lighthouse Systems, a CPU-heavy Python Azure Function times out during bursts because per-instance concurrency and scaling were not sized. Evidence: Telemetry shows request queueing and memory pressure rather than an upstream service outage. The objective is to match Functions hosting and concurrency configuration to measured workload and execution limits. Only authorized Azure subscriptions and synthetic test data may be used. Which controlled pilot most directly validates the proposed approach?
- Run a benign test invocation that reads and writes an object in a sandbox container.
- Replay a bounded batch of synthetic requests on a staging function with candidate limits.
- Upload a harmless blob into a staging storage account and inspect delivery logs.
- Create harmless test blobs in both included and excluded prefixes.
Explanation
Correct Answer
B:
Telemetry shows request queueing and memory pressure rather than an upstream service outage. Replay a bounded batch of synthetic requests on a staging function with candidate limits.
Incorrect Answers
A:
“Run a benign test invocation that reads and writes an object in a sandbox container.” tests a proposed change for the condition: The function uses a modern supported runtime and can obtain scoped storage identity permissions. This question instead requires an action that can match Functions hosting and concurrency configuration to measured workload and execution limits. Telemetry shows request queueing and memory pressure rather than an upstream service outage. Replay a bounded batch of synthetic requests on a staging function with candidate limits.
C:
“Upload a harmless blob into a staging storage account and inspect delivery logs.” tests a proposed change for the condition: The Event Grid event subscription points to an outdated function endpoint and event type. This question instead requires an action that can match Functions hosting and concurrency configuration to measured workload and execution limits. Telemetry shows request queueing and memory pressure rather than an upstream service outage. Replay a bounded batch of synthetic requests on a staging function with candidate limits.
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 match Functions hosting and concurrency configuration to measured workload and execution limits. Telemetry shows request queueing and memory pressure rather than an upstream service outage. Replay a bounded batch of synthetic requests on a staging function with candidate limits.
Question 205
At Riverbend Health, a web-based retrieval service behaves differently between staging and production despite using the same container digest. Evidence: Its model endpoint and database settings were baked into the Docker image rather than injected per environment. The objective is to separate environment configuration from reusable container artifact bytes. Preserve end-to-end correlation and avoid copying sensitive production data. Which ongoing observation is most useful for detecting recurrence or configuration drift?
- Monitor swap failures, warm-up errors, and configuration leakage between slots.
- Monitor unresolved secret references, revoked identity permissions, and version changes.
- Monitor app settings drift, accidental environment crossover, and stale deployments.
- Monitor unauthorized ingress changes and new public hostnames.
Explanation
Correct Answer
C:
Its model endpoint and database settings were baked into the Docker image rather than injected per environment. Monitor app settings drift, accidental environment crossover, and stale deployments.
Incorrect Answers
A:
“Monitor swap failures, warm-up errors, and configuration leakage between slots.” monitors this signal: The team has a healthy staging slot with a previously verified container image. This question instead requires an action that can separate environment configuration from reusable container artifact bytes. Its model endpoint and database settings were baked into the Docker image rather than injected per environment. Monitor app settings drift, accidental environment crossover, and stale deployments.
B:
Key Vault references help resolve secrets, but they do not separate a model endpoint or database setting baked into a reusable image. App Service deployment settings must supply distinct staging and production values without rebuilding the container.
D:
“Monitor unauthorized ingress changes and new public hostnames.” monitors this signal: 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 separate environment configuration from reusable container artifact bytes. Its model endpoint and database settings were baked into the Docker image rather than injected per environment. Monitor app settings drift, accidental environment crossover, and stale deployments.
Question 206
At Blue Ridge Technology, 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. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect revision mode, labels, active revision weights, and ingress configuration.
- Inspect effective identity assignment, target resource role assignments, and SDK credential chain.
- Inspect Container Apps HTTP concurrency rule, min/max replicas, and scale-controller logs.
- Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.
Explanation
Correct Answer
C:
The app has no tuned HTTP scale rule and the maximum replica count is too low. Inspect Container Apps HTTP concurrency rule, min/max replicas, and scale-controller logs.
Incorrect Answers
A:
“Inspect revision mode, labels, active revision weights, and ingress configuration.” is a diagnostic step for the reported condition: The Container App is configured for single-revision mode and routes all ingress to the active revision. 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. Inspect Container Apps HTTP concurrency rule, min/max replicas, and scale-controller logs.
B:
“Inspect effective identity assignment, target resource role assignments, and SDK credential chain.” is a diagnostic step for the reported condition: The managed identity exists but lacks data-plane permission on the target resource. 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. Inspect Container Apps HTTP concurrency rule, min/max replicas, and scale-controller logs.
D:
“Inspect the application's identity, registry authorization model, image reference, and image pull failure codes.” is a diagnostic step for the reported condition: The app has a system-assigned managed identity but no AcrPull-equivalent repository permission. 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. Inspect Container Apps HTTP concurrency rule, min/max replicas, and scale-controller logs.
Question 207
At Mosaic Robotics, a function handler manually embeds a storage account key to read documents despite supported Azure Storage bindings. Evidence: The function uses a modern supported runtime and can obtain scoped storage identity permissions. The objective is to use supported input and output bindings without distributing hard-coded storage keys. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect NCRONTAB format, timezone support on the hosting plan and last-trigger logs.
- Inspect retry policy, event identity and deduplication or transactional sink strategy.
- Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.
- Inspect binding extension version, connection settings and managed identity role assignments.
Explanation
Correct Answer
D:
The function uses a modern supported runtime and can obtain scoped storage identity permissions. Inspect binding extension version, connection settings and managed identity role assignments.
Incorrect Answers
A:
A timer-trigger CRON schedule controls when a function runs, not how it authenticates or reads storage. Storage bindings handle input and output without spreading hard-coded account keys.
B:
“Inspect retry policy, event identity and deduplication or transactional sink strategy.” is a diagnostic step for the reported condition: The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. This question instead requires an action that can use supported input and output bindings without distributing hard-coded storage keys. The function uses a modern supported runtime and can obtain scoped storage identity permissions. Inspect binding extension version, connection settings and managed identity role assignments.
C:
“Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.” is a diagnostic step for the reported 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 use supported input and output bindings without distributing hard-coded storage keys. The function uses a modern supported runtime and can obtain scoped storage identity permissions. Inspect binding extension version, connection settings and managed identity role assignments.
Question 208
Marigold Retail is reviewing an Azure AI workload: A long-running model service must adopt a new ranking threshold set without downtime or inconsistent partial settings. The business goal is to refresh logically related configuration changes coherently without constant remote polling. 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?
- Use a Key Vault reference in App Configuration and grant the runtime identity secret retrieval permission.
- Enable supported purge protection and document recovery of soft-deleted secrets under change control.
- Register a sentinel key for refresh and update it only after related config values are published.
- Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.
Explanation
Correct Answer
C:
The SDK refresh provider observes no sentinel key and the keys update at different moments. Register a sentinel key for refresh and update it only after related config values are published.
Incorrect Answers
A:
“Use a Key Vault reference in App Configuration and grant the runtime identity secret retrieval permission.” is a design or implementation response to the condition: A team centralizes API endpoint settings but wants credential values protected outside App Configuration. This question instead requires an action that can refresh logically related configuration changes coherently without constant remote polling. The SDK refresh provider observes no sentinel key and the keys update at different moments. Register a sentinel key for refresh and update it only after related config values are published.
B:
“Enable supported purge protection and document recovery of soft-deleted secrets under change control.” is a design or implementation response to the condition: The vault supports soft-delete retention and purge protection but neither is documented in recovery procedures. This question instead requires an action that can refresh logically related configuration changes coherently without constant remote polling. The SDK refresh provider observes no sentinel key and the keys update at different moments. Register a sentinel key for refresh and update it only after related config values are published.
D:
“Propagate W3C trace context through message metadata and instrument HTTP and worker spans using OpenTelemetry.” is a design or implementation response to the condition: The applications generate spans but do not propagate W3C trace context across message boundaries. This question instead requires an action that can refresh logically related configuration changes coherently without constant remote polling. The SDK refresh provider observes no sentinel key and the keys update at different moments. Register a sentinel key for refresh and update it only after related config values are published.
Question 209
At Seabright Media, a relational retrieval table stores 1536-dimensional vectors but a newer encoder emits arrays with 3072 values. Evidence: The database column is declared as vector(1536) and reject mismatched input. The objective is to keep stored embedding dimensions aligned to the selected model and schema. 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 extension upgrades, privileges and index compatibility.
- Monitor CPU saturation, disk latency, and storage growth.
- Monitor invalidation failures and mismatches between cache and source versions.
Explanation
Correct Answer
A:
The database column is declared as vector(1536) and reject mismatched input. Monitor failed inserts and unexpected embedding model version changes. A fixed-dimension pgvector column rejects a different-length embedding, so the selected model output and stored vector schema must match.
Incorrect Answers
B:
“Monitor extension upgrades, privileges and index compatibility.” monitors this signal: The extension is not enabled or allowlisted for the chosen server configuration. This question instead requires an action that can keep stored embedding dimensions aligned to the selected model and schema. The database column is declared as vector(1536) and reject mismatched input. Monitor failed inserts and unexpected embedding model version changes. A fixed-dimension pgvector column rejects a different-length embedding, so the selected model output and stored vector schema must match.
C:
“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 keep stored embedding dimensions aligned to the selected model and schema. The database column is declared as vector(1536) and reject mismatched input. Monitor failed inserts and unexpected embedding model version changes. A fixed-dimension pgvector column rejects a different-length embedding, so the selected model output and stored vector schema must match.
D:
“Monitor invalidation failures and mismatches between cache and source versions.” monitors this signal: Its Redis cache persists until a long TTL and does not react to content version changes. This question instead requires an action that can keep stored embedding dimensions aligned to the selected model and schema. The database column is declared as vector(1536) and reject mismatched input. Monitor failed inserts and unexpected embedding model version changes. A fixed-dimension pgvector column rejects a different-length embedding, so the selected model output and stored vector schema must match.
Question 210
At Mosaic Robotics, a recommendation service performs semantic matching on embeddings but ranks near-identical texts poorly. Evidence: The index similarity function differs from the metric recommended for the chosen embedding model. The objective is to align vector scoring and index policy with model semantics. Only authorized Azure subscriptions and synthetic test data may be used. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect processor name, monitored container, lease container, checkpoint state and logs.
- Inspect vector query predicates, partition keys, tenant identity mapping and authorization tests.
- Inspect embedding normalization, distance function and sample nearest-neighbor results.
- Inspect representative query set, exact top-k baselines and ANN index scan parameters.
Explanation
Correct Answer
C:
The index similarity function differs from the metric recommended for the chosen embedding model. Inspect embedding normalization, distance function and sample nearest-neighbor results.
Incorrect Answers
A:
“Inspect processor name, monitored container, lease container, checkpoint state and logs.” is a diagnostic step for the reported condition: The change feed processor relies on a shared lease container and correct start position. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Inspect embedding normalization, distance function and sample nearest-neighbor results.
B:
“Inspect vector query predicates, partition keys, tenant identity mapping and authorization tests.” is a diagnostic step for the reported condition: The query applies semantic similarity without enforcing the caller's tenant partition and metadata scope. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Inspect embedding normalization, distance function and sample nearest-neighbor results.
D:
“Inspect representative query set, exact top-k baselines and ANN index scan parameters.” is a diagnostic step for the reported condition: The team optimized latency but never measured recall against a labeled search baseline. This question instead requires an action that can align vector scoring and index policy with model semantics. The index similarity function differs from the metric recommended for the chosen embedding model. Inspect embedding normalization, distance function and sample nearest-neighbor results.