Microsoft AI-200 Practice Test 15
Question 140
At Atlas Support, 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. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Persist an idempotency key and check it atomically before applying the external operation.
- Configure appropriate storage bindings with identity-backed connections and restricted container access.
- Define a supported SQL filter rule matching the translation event property and remove unintended catch-all filters.
- Design the function to report failures correctly so the trigger retries or dead-letters according to policy.
Explanation
Correct Answer
D:
The trigger configuration retries and message settlement must align with actual successful work. Design the function to report failures correctly so the trigger retries or dead-letters according to policy.
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:
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:
“Define a supported SQL filter rule matching the translation event property and remove unintended catch-all filters.” is a design or implementation response to the condition: The worker subscription has no rule and receives irrelevant indexing and billing events. 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. Design the function to report failures correctly so the trigger retries or dead-letters according to policy.
Question 141
Redwood Banking is reviewing an Azure AI workload: A public AI text-analysis endpoint needs automatic horizontal scaling during brief demand peaks. The business goal is to scale replica counts based on measured inbound HTTP load. A change is being evaluated before rollout. The team has documented application and data boundaries. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Use a ClusterIP Service and enforce supported namespace/pod NetworkPolicies for allowed traffic.
- Apply a versioned Deployment manifest with appropriate rolling-update strategy and pinned image.
- Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
- Introduce a signed artifact verification gate before release using a supported image-signing workflow.
Explanation
Correct Answer
C:
The app has no tuned HTTP scale rule and the maximum replica count is too low. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
Incorrect Answers
A:
“Use a ClusterIP Service and enforce supported namespace/pod NetworkPolicies for allowed traffic.” is a design or implementation response to the condition: The Service type and network policies do not enforce the desired cluster-internal caller boundary. This question instead requires an action that can 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. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
B:
“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 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. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
D:
“Introduce a signed artifact verification gate before release using a supported image-signing workflow.” is a design or implementation response to the condition: An engineer can push an image directly to the registry without required provenance checks. 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. Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
Question 142
At Riverbend Health, a RAG database performs poorly during batch embedding updates while CPU and memory are saturated. Evidence: Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. The objective is to right-size compute, memory and storage performance for vector operations. Validate in a disposable environment before applying production changes. Which implementation or configuration choice best meets the stated requirement?
- Create or select an index with vector_cosine_ops and use the matching distance operator.
- Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.
- Scale the appropriate server resources after eliminating avoidable query and index overhead.
- Implement cache-aside lookup with a bounded TTL and version-aware key names.
Explanation
Correct Answer
C:
Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Scale the appropriate server resources after eliminating avoidable query and index overhead.
Incorrect Answers
A:
“Create or select an index with vector_cosine_ops and use the matching distance operator.” is a design or implementation response to the condition: The mismatch keeps the query from using the intended nearest-neighbor index plan. This question instead requires an action that can right-size compute, memory and storage performance for vector operations. Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Scale the appropriate server resources after eliminating avoidable query and index overhead.
B:
“Load representative embeddings before creating or rebuilding the IVFFlat index and tune lists/probes.” is a design or implementation response to the condition: The approximate index requires suitable data distribution and tuning for list count and probes. This question instead requires an action that can right-size compute, memory and storage performance for vector operations. Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Scale the appropriate server resources after eliminating avoidable query and index overhead.
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 right-size compute, memory and storage performance for vector operations. Its Flexible Server compute tier and IOPS are smaller than measured workload requirements. Scale the appropriate server resources after eliminating avoidable query and index overhead.
Question 143
At Crescent Logistics, an embedding update pipeline misses newly changed records because two workers use separate lease configurations. Evidence: The change feed processor relies on a shared lease container and correct start position. The objective is to process new or updated Cosmos records reliably in a scaled worker fleet. Preserve end-to-end correlation and avoid copying sensitive production data. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect vector property data types, policy dimensions, similarity metric, and model output shape.
- Inspect generated query text, parameter bindings, and server-side query filters.
- Inspect connection count, pooler settings, function concurrency and server max_connections.
- Inspect processor name, monitored container, lease container, checkpoint state and logs.
Explanation
Correct Answer
D:
The change feed processor relies on a shared lease container and correct start position. Inspect processor name, monitored container, lease container, checkpoint state and logs.
Incorrect Answers
A:
“Inspect vector property data types, policy dimensions, similarity metric, and model output shape.” is a diagnostic step for the reported 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 process new or updated Cosmos records reliably in a scaled worker fleet. The change feed processor relies on a shared lease container and correct start position. Inspect processor name, monitored container, lease container, checkpoint state and logs.
B:
“Inspect generated query text, parameter bindings, and server-side query filters.” is a diagnostic step for the reported condition: Users can enter quotation marks and unexpectedly alter query predicates. This question instead requires an action that can process new or updated Cosmos records reliably in a scaled worker fleet. The change feed processor relies on a shared lease container and correct start position. Inspect processor name, monitored container, lease container, checkpoint state and logs.
C:
“Inspect connection count, pooler settings, function concurrency and server max_connections.” is a diagnostic step for the reported condition: The database sees many idle connections and connection setup dominates API latency. This question instead requires an action that can process new or updated Cosmos records reliably in a scaled worker fleet. The change feed processor relies on a shared lease container and correct start position. Inspect processor name, monitored container, lease container, checkpoint state and logs.
Question 144
At Cobalt Research, 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. Validate in a disposable environment before applying production changes. Which implementation or configuration choice best meets the stated requirement?
- Enable managed identity and assign the precise Key Vault secret read role to the function.
- Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
- Configure appropriate storage bindings with identity-backed connections and restricted container access.
- Define a supported SQL filter rule matching the translation event property and remove unintended catch-all filters.
Explanation
Correct Answer
B:
Telemetry shows request queueing and memory pressure rather than an upstream service outage. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
Incorrect Answers
A:
“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 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. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
C:
“Configure appropriate storage bindings with identity-backed connections and restricted container access.” is a design or implementation response to 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. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
D:
“Define a supported SQL filter rule matching the translation event property and remove unintended catch-all filters.” is a design or implementation response to the condition: The worker subscription has no rule and receives irrelevant indexing and billing events. 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. Choose a supported scaling plan and cap concurrency or split long work into queues appropriately.
Question 145
At Mosaic Robotics, an Azure Key Vault permission grant has no effect because the team mixed RBAC role assignments with old access policies. Evidence: The vault is configured to use the Azure RBAC permission model for data-plane authorization. The objective is to apply permissions in the active Key Vault authorization model. Preserve end-to-end correlation and avoid copying sensitive production data. Which controlled pilot most directly validates the proposed approach?
- Run a benign item read through the app identity and try an unauthorized container read.
- Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.
- Run a read-only query against staged requests with known slow dependency calls.
- Use two synthetic managed identities to test allowed and denied secret reads in a staging vault.
Explanation
Correct Answer
D:
The vault is configured to use the Azure RBAC permission model for data-plane authorization. Use two synthetic managed identities to test allowed and denied secret reads in a staging vault.
Incorrect Answers
A:
“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 apply permissions in the active Key Vault authorization model. The vault is configured to use the Azure RBAC permission model for data-plane authorization. Use two synthetic managed identities to test allowed and denied secret reads in a staging vault.
B:
“Generate an authorized test expiration event for a disposable secret or simulate an equivalent event.” tests a proposed change for the condition: A Key Vault event is supported but no subscription has been configured for near-expiration events. This question instead requires an action that can apply permissions in the active Key Vault authorization model. The vault is configured to use the Azure RBAC permission model for data-plane authorization. Use two synthetic managed identities to test allowed and denied secret reads in a staging vault.
C:
“Run a read-only query against staged requests with known slow dependency calls.” tests a proposed change for the condition: Request and dependency telemetry share an operation correlation ID. This question instead requires an action that can apply permissions in the active Key Vault authorization model. The vault is configured to use the Azure RBAC permission model for data-plane authorization. Use two synthetic managed identities to test allowed and denied secret reads in a staging vault.
Question 146
At Lighthouse Systems, 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. Preserve end-to-end correlation and avoid copying sensitive production data. Which acceptance result most strongly demonstrates the requirement is met?
- Verify failed events reach the designated dead-letter destination and can be investigated.
- Verify the handler extracts the expected subject and payload and rejects malformed envelopes.
- Verify the message becomes available for retry instead of disappearing after the failure.
- Verify latency, timeout rate and resource usage meet agreed service thresholds.
Explanation
Correct Answer
C:
If the database transaction fails afterward the work is lost because the message was already removed. Verify the message becomes available for retry instead of disappearing after the failure.
Incorrect Answers
A:
“Verify failed events reach the designated dead-letter destination and can be investigated.” validates an outcome in a case where the evidence is: 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. Verify the message becomes available for retry instead of disappearing after the failure.
B:
“Verify the handler extracts the expected subject and payload and rejects malformed envelopes.” validates an outcome in a case where the evidence is: The Python function expects the older Event Grid event wrapper and reads nonexistent fields. 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. Verify the message becomes available for retry instead of disappearing after the failure.
D:
“Verify latency, timeout rate and resource usage meet agreed service thresholds.” validates an outcome in a case where the evidence is: Telemetry shows request queueing and memory pressure rather than an upstream service outage. 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. Verify the message becomes available for retry instead of disappearing after the failure.
Question 147
Blue Ridge Technology is reviewing an Azure AI workload: A model API observability bill rises during load tests and incident traces are buried in ordinary request logs. The business goal is to reduce telemetry cost without losing actionable diagnostics. A change is being evaluated before rollout. The team has documented application and data boundaries. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Use supported parse_json or dynamic-field access and convert fields to the required type.
- Filter Log Analytics or console logs by revision and correlate startup failures with its image digest.
- Store a supported feature flag in Azure App Configuration with explicit targeting and fallback.
- Configure appropriate sampling that preserves required failure signals and trace relationships.
Explanation
Correct Answer
D:
The exporter captures all success events without sampling and does not retain error context. Configure appropriate sampling that preserves required failure signals and trace relationships.
Incorrect Answers
A:
“Use supported parse_json or dynamic-field access and convert fields to the required type.” is a design or implementation response to the condition: A Function App logs dynamic metadata including queue type and AI model revision that dashboards must filter. This question instead requires an action that can reduce telemetry cost without losing actionable diagnostics. The exporter captures all success events without sampling and does not retain error context. Configure appropriate sampling that preserves required failure signals and trace relationships.
B:
Container Apps revision logs identify failures by deployment revision, not whether Application Insights sampling has hidden important distributed traces. Tune sampling and trace collection while retaining diagnostic coverage and cost visibility.
C:
“Store a supported feature flag in Azure App Configuration with explicit targeting and fallback.” is a design or implementation response to the condition: A chatbot must turn a new summarization feature on for beta users without re-deploying its API. This question instead requires an action that can reduce telemetry cost without losing actionable diagnostics. The exporter captures all success events without sampling and does not retain error context. Configure appropriate sampling that preserves required failure signals and trace relationships.
Question 148
At Crownridge Consulting, 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. Preserve end-to-end correlation and avoid copying sensitive production data. Which acceptance result most strongly demonstrates the requirement is met?
- Verify executions align with the specified UTC schedule and do not duplicate on host restart.
- Verify latency, timeout rate and resource usage meet agreed service thresholds.
- Verify data moves through the intended bindings while no literal account key is present.
- Verify the subscription becomes active and subsequent synthetic events reach the endpoint.
Explanation
Correct Answer
C:
The function uses a modern supported runtime and can obtain scoped storage identity permissions. Verify data moves through the intended bindings while no literal account key is present.
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:
Concurrency and scale settings control how many Functions instances or invocations run; they do not replace manually embedded storage account keys. Supported storage input/output bindings and scoped identities handle that data access.
D:
“Verify the subscription becomes active and subsequent synthetic events reach the endpoint.” validates an outcome in a case where the evidence is: The webhook ignores the subscription validation event and never returns the expected validation response. 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. Verify data moves through the intended bindings while no literal account key is present.
Question 149
At Aspen Manufacturing, a worker hammers a downstream Azure service during throttling and rapidly requeues every message. Evidence: The service returns 429 and includes retry guidance while the queue consumer has no backoff. The objective is to recover from transient failures without amplification and unnecessary duplicate work. Preserve end-to-end correlation and avoid copying sensitive production data. Which controlled pilot most directly validates the proposed approach?
- Force a synthetic 429 response from a staging dependency during message processing.
- Create harmless test blobs in both included and excluded prefixes.
- Schedule a harmless test job for a short future interval and observe visibility before due time.
- Run a benign test invocation that reads and writes an object in a sandbox container.
Explanation
Correct Answer
A:
The service returns 429 and includes retry guidance while the queue consumer has no backoff. Force a synthetic 429 response from a staging dependency during message processing.
Incorrect Answers
B:
“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 recover from transient failures without amplification and unnecessary duplicate work. The service returns 429 and includes retry guidance while the queue consumer has no backoff. Force a synthetic 429 response from a staging dependency during message processing.
C:
“Schedule a harmless test job for a short future interval and observe visibility before due time.” tests a proposed change for the condition: The producer has an exact due time but currently places the job on an ordinary active queue. This question instead requires an action that can recover from transient failures without amplification and unnecessary duplicate work. The service returns 429 and includes retry guidance while the queue consumer has no backoff. Force a synthetic 429 response from a staging dependency during message processing.
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 recover from transient failures without amplification and unnecessary duplicate work. The service returns 429 and includes retry guidance while the queue consumer has no backoff. Force a synthetic 429 response from a staging dependency during message processing.
Question 150
At Pine Valley Public Services, a new Container Apps revision repeatedly crashes but dashboard queries mix its logs with the stable revision. Evidence: The log records include revision identifiers that are not used in the investigation. The objective is to trace errors to the exact Container Apps revision responsible. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect console logs, system logs, revision names and deployment timestamps.
- Inspect instrumentation, traceparent headers, producer message properties and consumer span linking.
- Inspect message correlation IDs, enqueued time and consumer telemetry instrumentation.
- Inspect refresh registration, cache expiration and sentinel update order.
Explanation
Correct Answer
A:
The log records include revision identifiers that are not used in the investigation. Inspect console logs, system logs, revision names and deployment timestamps.
Incorrect Answers
B:
“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 trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Inspect console logs, system logs, revision names and deployment timestamps.
C:
“Inspect message correlation IDs, enqueued time and consumer telemetry instrumentation.” is a diagnostic step for the reported 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. Inspect console logs, system logs, revision names and deployment timestamps.
D:
“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 trace errors to the exact Container Apps revision responsible. The log records include revision identifiers that are not used in the investigation. Inspect console logs, system logs, revision names and deployment timestamps.