Microsoft AI-200 Practice Test 34
Question 330
At Marigold Retail, 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. Validate in a disposable environment before applying production changes. Which implementation or configuration choice best meets the stated requirement?
- Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
- Grant the application's managed identity appropriate registry pull rights and configure managed identity-based registry authentication.
- Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
- Configure supported Dapr pub/sub components and subscription routes with required credentials or identity.
Explanation
Correct Answer
A:
Its model endpoint and database settings were baked into the Docker image rather than injected per environment. Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
Incorrect Answers
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 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. Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
C:
“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 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. Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
D:
“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 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. Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
Question 331
At Summit Finance, a multi-region application deployment in Azure Container Apps downloads large images slowly from a remote registry region. Evidence: Its Premium registry has no replica in the region where new workloads are starting. The objective is to reduce regional image pull latency and improve registry availability without duplicating release identities. Preserve end-to-end correlation and avoid copying sensitive production data. Which acceptance result most strongly demonstrates the requirement is met?
- Confirm the correct content digest is available and regional pull latency is within target.
- Verify the app retrieves the intended secret without a copied literal credential in configuration.
- Verify the deployed digest matches the signed-off artifact despite later tag movement.
- Verify traffic is withheld until readiness succeeds and a genuine deadlock triggers liveness recovery.
Explanation
Correct Answer
A:
Its Premium registry has no replica in the region where new workloads are starting. Confirm the correct content digest is available and regional pull latency is within target.
Incorrect Answers
B:
“Verify the app retrieves the intended secret without a copied literal credential in configuration.” validates an outcome in a case where the evidence is: The application can use managed identity and the secret already exists in Azure Key Vault. 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. Confirm the correct content digest is available and regional pull latency is within target.
C:
“Verify the deployed digest matches the signed-off artifact despite later tag movement.” validates an outcome in a case where the evidence is: 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. Confirm the correct content digest is available and regional pull latency is within target.
D:
“Verify traffic is withheld until readiness succeeds and a genuine deadlock triggers liveness recovery.” validates an outcome in a case where the evidence is: A single liveness probe is being used as a readiness gate, causing repeated restarts during model warm-up. 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. Confirm the correct content digest is available and regional pull latency is within target.
Question 332
At Lighthouse Systems, a retried Azure Function invokes an external billing operation twice after a timeout. Evidence: The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. The objective is to make non-idempotent downstream operations safe under trigger retries. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which implementation or configuration choice best meets the stated requirement?
- Configure appropriate storage bindings with identity-backed connections and restricted container access.
- Configure appropriate function authorization and front-door identity enforcement instead of assuming routing alone secures calls.
- Send a scheduled Service Bus message for the specified UTC enqueue time.
- Persist an idempotency key and check it atomically before applying the external operation.
Explanation
Correct Answer
D:
The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.
Incorrect Answers
A:
Azure Functions storage bindings remove manual storage-key handling; they do not make a retried billing operation idempotent. An operation identifier and deduplication or transaction guard are needed to prevent duplicate downstream writes.
B:
“Configure appropriate function authorization and front-door identity enforcement instead of assuming routing alone secures calls.” is a design or implementation response to the condition: An internal Azure Functions endpoint answers model prompts even when the caller does not possess approved credentials. This question instead requires an action that can make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.
C:
“Send a scheduled Service Bus message for the specified UTC enqueue time.” is a design or implementation response to 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 make non-idempotent downstream operations safe under trigger retries. The trigger can invoke the handler more than once, and the side effect lacks an idempotency identifier. Persist an idempotency key and check it atomically before applying the external operation.
Question 333
At Atlas Support, a deployment pipeline accepts images by tag although a signed build pipeline is required. Evidence: An engineer can push an image directly to the registry without required provenance checks. The objective is to allow promotion only of artifacts that satisfy an approved signing and validation policy. Preserve end-to-end correlation and avoid copying sensitive production data. Which implementation or configuration choice best meets the stated requirement?
- Move environment-dependent nonsecret settings into App Service application settings with slot-specific values.
- Configure an App Service Key Vault reference backed by a narrowly authorized managed identity.
- Introduce a signed artifact verification gate before release using a supported image-signing workflow.
- Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.
Explanation
Correct Answer
C:
An engineer can push an image directly to the registry without required provenance checks. Introduce a signed artifact verification gate before release using a supported image-signing workflow.
Incorrect Answers
A:
Different App Service staging settings can change runtime behavior but cannot prove a container image is signed and untampered. ACR artifact provenance and signature validation must protect the promotion decision.
B:
App Service Key Vault references secure runtime secrets. They do not prove that a promoted registry artifact has an approved origin; verify its signing or attestation and immutable digest before deployment.
D:
“Configure a supported HTTP-based scale rule and reasonable replica bounds for the service.” is a design or implementation response to the condition: A public AI text-analysis endpoint needs automatic horizontal scaling during brief demand peaks. This question instead requires an action that can allow promotion only of artifacts that satisfy an approved signing and validation policy. An engineer can push an image directly to the registry without required provenance checks. Introduce a signed artifact verification gate before release using a supported image-signing workflow.
Question 334
At Redwood Banking, an engineer needs to find which Azure Function deployment has the most failed invocations in the last hour. Evidence: Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. The objective is to use KQL aggregation to locate the highest error volume by service. Preserve end-to-end correlation and avoid copying sensitive production data. Which acceptance result most strongly demonstrates the requirement is met?
- Verify traces preserve timing and correlation while sensitive values are absent.
- Verify each role's failure count matches source events and the time window is correct.
- Verify slow request records match the expected downstream dependency without accidental many-to-many inflation.
- Verify version selection behaves as designed without losing connectivity during rotation.
Explanation
Correct Answer
B:
Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. Verify each role's failure count matches source events and the time window is correct.
Incorrect Answers
A:
“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 use KQL aggregation to locate the highest error volume by service. Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. Verify each role's failure count matches source events and the time window is correct.
C:
“Verify slow request records match the expected downstream dependency without accidental many-to-many inflation.” validates an outcome in a case where the evidence is: Request and dependency telemetry share an operation correlation ID. This question instead requires an action that can use KQL aggregation to locate the highest error volume by service. Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. Verify each role's failure count matches source events and the time window is correct.
D:
“Verify version selection behaves as designed without losing connectivity during rotation.” validates an outcome in a case where the evidence is: The application reference includes a specific version that no longer matches the managed rotation policy. This question instead requires an action that can use KQL aggregation to locate the highest error volume by service. Logs have cloud_RoleName, timestamp, success or exception fields in queryable telemetry tables. Verify each role's failure count matches source events and the time window is correct.
Question 335
At Pine Valley Public Services, a worker has received a valid job but cannot continue until a related prerequisite arrives. Evidence: The job is not malformed and should be resumed by sequence number when the prerequisite is ready. The objective is to use deferral for valid temporarily blocked work instead of treating it as poison. Preserve end-to-end correlation and avoid copying sensitive production data. Which acceptance result most strongly demonstrates the requirement is met?
- Verify only one consumer holds and completes the queued job while other workers can process other jobs.
- Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.
- Verify each subscriber independently receives and completes its event even if another is offline.
- Verify data moves through the intended bindings while no literal account key is present.
Explanation
Correct Answer
B:
The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.
Incorrect Answers
A:
“Verify only one consumer holds and completes the queued job while other workers can process other jobs.” validates an outcome in a case where the evidence is: Only one competing consumer group needs each job, and duplicate fan-out would waste inference compute. This question instead requires an action that can use deferral for valid temporarily blocked work instead of treating it as poison. The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.
C:
“Verify each subscriber independently receives and completes its event even if another is offline.” validates an outcome in a case where the evidence is: Each independent service requires its own durable copy of the event. This question instead requires an action that can use deferral for valid temporarily blocked work instead of treating it as poison. The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.
D:
“Verify data moves through the intended bindings while no literal account key is present.” validates an outcome in a case where the evidence is: The function uses a modern supported runtime and can obtain scoped storage identity permissions. This question instead requires an action that can use deferral for valid temporarily blocked work instead of treating it as poison. The job is not malformed and should be resumed by sequence number when the prerequisite is ready. Verify the original work resumes without unauthorized dead-letter replay or duplicate completion.
Question 336
At Harbor Technology, a secret reaches its expiration window but the responsible function never receives rotation reminders. Evidence: A Key Vault event is supported but no subscription has been configured for near-expiration events. The objective is to trigger controlled rotation workflows using supported event notification and ownership. Changes must respect customer tenant boundaries and required availability targets. Which implementation or configuration choice best meets the stated requirement?
- Configure the supported private endpoint DNS zone link and application networking integration.
- Grant only secrets read permission to the managed identity and retrieve the named secret at runtime.
- Use supported parse_json or dynamic-field access and convert fields to the required type.
- Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
Explanation
Correct Answer
D:
A Key Vault event is supported but no subscription has been configured for near-expiration events. Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
Incorrect Answers
A:
“Configure the supported private endpoint DNS zone link and application networking integration.” is a design or implementation response to the condition: An isolated application can obtain an Entra token but DNS resolves its vault name to an unreachable public address. This question instead requires an action that can trigger controlled rotation workflows using supported event notification and ownership. A Key Vault event is supported but no subscription has been configured for near-expiration events. Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
B:
“Grant only secrets read permission to the managed identity and retrieve the named secret at runtime.” is a design or implementation response to the condition: The workload supports managed identity and the secret is stored in Azure Key Vault. This question instead requires an action that can trigger controlled rotation workflows using supported event notification and ownership. A Key Vault event is supported but no subscription has been configured for near-expiration events. Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
C:
“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 trigger controlled rotation workflows using supported event notification and ownership. A Key Vault event is supported but no subscription has been configured for near-expiration events. Create a scoped Key Vault event subscription for near-expiry or version-new events with approved rotation handling.
Question 337
Northwind Learning is reviewing an Azure AI workload: A content search team upgrades its encoder but retains an obsolete Cosmos DB vector policy. The business goal is to keep embedding dimensionality and vector index settings consistent. A change is being evaluated before rollout. The team has documented application and data boundaries. Validate in a disposable environment before applying production changes. Which implementation or configuration choice best meets the stated requirement?
- Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.
- Choose a stable high-cardinality partition key aligned to dominant conversation access patterns.
- Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
- Run an appropriate ANALYZE and maintenance plan after bulk ingestion.
Explanation
Correct Answer
C:
The container vector policy was created for a fixed dimension count and the new vectors do not match. Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
Incorrect Answers
A:
“Use Cosmos SDK parameterized SQL queries and enforce authorization separately from user input.” is a design or implementation response to the condition: A document service inserts a request-provided category into a Cosmos query using string formatting. This question instead requires an action that can keep embedding dimensionality and vector index settings consistent. The container vector policy was created for a fixed dimension count and the new vectors do not match. Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
B:
“Choose a stable high-cardinality partition key aligned to dominant conversation access patterns.” is a design or implementation response to the condition: The partition key uses a shared constant for nearly all writes rather than a high-cardinality conversation identifier. This question instead requires an action that can keep embedding dimensionality and vector index settings consistent. The container vector policy was created for a fixed dimension count and the new vectors do not match. Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
D:
“Run an appropriate ANALYZE and maintenance plan after bulk ingestion.” is a design or implementation response to the condition: Planner statistics are stale after bulk insert and the plan estimates row counts incorrectly. This question instead requires an action that can keep embedding dimensionality and vector index settings consistent. The container vector policy was created for a fixed dimension count and the new vectors do not match. Create a compatible vector policy or migrate to a newly indexed field matching the selected model.
Question 338
At Redwood Banking, 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. Prefer least privilege, measurable acceptance criteria, and reversible deployment. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect representative query set, exact top-k baselines and ANN index scan parameters.
- Inspect sample queries with exact identifiers and paraphrases, FTS index and vector index paths.
- Inspect hit rate, key sizes, used memory and eviction counters.
- Inspect SQL text generation, parameter support, and role grants for the application.
Explanation
Correct Answer
D:
Malformed input can change SQL syntax and the service account can read more rows than necessary. Inspect SQL text generation, parameter support, and role grants for the application.
Incorrect Answers
A:
“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 use parameterized database queries with narrow table permissions. Malformed input can change SQL syntax and the service account can read more rows than necessary. Inspect SQL text generation, parameter support, and role grants for the application.
B:
“Inspect sample queries with exact identifiers and paraphrases, FTS index and vector index paths.” is a diagnostic step for the reported condition: Pure vector matching often misses rare identifiers while full-text search alone fails paraphrases. 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. Inspect SQL text generation, parameter support, and role grants for the application.
C:
“Inspect hit rate, key sizes, used memory and eviction counters.” is a diagnostic step for the reported condition: Its max memory is saturated and eviction policy does not match cache workload priorities. 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. Inspect SQL text generation, parameter support, and role grants for the application.
Question 339
Cobalt Research is reviewing an Azure AI workload: A platform team needs to guarantee a production deployment runs exactly the ACR artifact signed during validation. The business goal is to pin deployment to the approved tested image rather than a moving tag. 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?
- Grant the application's managed identity appropriate registry pull rights and configure managed identity-based registry authentication.
- Configure the correct custom-container port and bind the application to all container interfaces.
- Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.
- Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
Explanation
Correct Answer
D:
The mutable tag was reassigned to a newer image after release approval. Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
Incorrect Answers
A:
“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 pin deployment to the approved tested image rather than a moving tag. The mutable tag was reassigned to a newer image after release approval. Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
B:
“Configure the correct custom-container port and bind the application to all container interfaces.” is a design or implementation response to the condition: The application listens on an internal port different from the one expected by the hosting configuration. This question instead requires an action that can pin deployment to the approved tested image rather than a moving tag. The mutable tag was reassigned to a newer image after release approval. Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
C:
“Configure Entra workload identity federation mapping the correct namespace/service account to a scoped Azure identity.” is a design or implementation response to the condition: A multi-tenant Kubernetes cluster must let only one namespace's worker query a private storage account. This question instead requires an action that can pin deployment to the approved tested image rather than a moving tag. The mutable tag was reassigned to a newer image after release approval. Reference the approved content digest in the deployment manifest and keep an auditable tag-to-digest record.
Question 340
At Aspen Manufacturing, 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. Validate in a disposable environment before applying production changes. Which diagnostic investigation most directly isolates the issue before changing Azure resources?
- Inspect retry policy, TTL, endpoint response behavior and dead-letter destination.
- Inspect MessageId generation, duplicate detection window and worker output keys.
- Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.
- Inspect HTTP trigger auth level, platform authentication and API gateway policies.
Explanation
Correct Answer
C:
If the database transaction fails afterward the work is lost because the message was already removed. Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.
Incorrect Answers
A:
“Inspect retry policy, TTL, endpoint response behavior and dead-letter destination.” is a diagnostic step for the reported 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. Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.
B:
“Inspect MessageId generation, duplicate detection window and worker output keys.” is a diagnostic step for the reported condition: The first send may have succeeded and a second identical command could duplicate work. 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. Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.
D:
“Inspect HTTP trigger auth level, platform authentication and API gateway policies.” is a diagnostic step for the reported 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. Inspect receiver settlement mode, lock duration, handler exception logic and database commit order.