Question 330
Developers update a Dockerfile in a source repository but image builds begin only when someone remembers to run a local command. An approved base image receives security updates while dependent application images remain unchanged for months. Which response best addresses these needs?
- Set an ACR Task source-commit trigger for the image build; configure an ACR Task base-image update trigger for the dependent image.
- Configure a scheduled ACR Task to build the test image; configure an ACR Task base-image update trigger for the dependent image.
- Configure an ACR Task base-image update trigger for the dependent image; do not Set an ACR Task source-commit trigger for the image build.
- Set an ACR Task source-commit trigger for the image build; configure a scheduled ACR Task to build the test image.
Explanation
Correct Answer
A:A source trigger starts registry-hosted builds when tracked code changes occur. base-image triggers can rebuild supported dependent images after upstream image changes.
Incorrect Answers
B:Scheduled registry tasks produce images at a controlled cadence without a local build host; Requirement 1 requires: set an ACR Task source-commit trigger for the image build.
C:Base-image triggers can rebuild supported dependent images after upstream image changes; Requirement 1 requires: set an ACR Task source-commit trigger for the image build.
D:Configure an ACR Task base-image update trigger for the dependent image.
Question 331
A release must be warmed and smoke-tested before the live App Service hostname points to it. A swapped App Service deployment reaches the wrong database because a staging connection string moved to production. What is the most appropriate plan for this situation?
- Swap back to the known-good slot and investigate the failed release; mark environment-specific connection settings as deployment-slot settings.
- Deploy to a staging slot, validate it, and perform a controlled slot swap; mark environment-specific connection settings as deployment-slot settings.
- Deploy to a staging slot, validate it, and perform a controlled slot swap; Swap back to the known-good slot and investigate the failed release.
- Mark environment-specific connection settings as deployment-slot settings; do not deploy to a staging slot, validate it, and perform a controlled slot swap.
Explanation
Correct Answer
B:Slots support preproduction testing and controlled traffic cutover without rebuilding the same image. sticky slot settings remain with the intended environment when application content swaps.
Incorrect Answers
A:A reverse slot swap can restore the previous content while preserving evidence for diagnosis; requirement 1 requires: deploying to a staging slot, validate it, and perform a controlled slot swap.
C:Mark environment-specific connection settings as deployment-slot settings.
D:Sticky slot settings remain with the intended environment when application content swaps; requirement 1 requires: deploying to a staging slot, validate it, and perform a controlled slot swap.
Question 332
A deployment pipeline uses an external registry whose latest tag can be reassigned by its owner, and production must run one exact approved build despite those tag changes. The team repeatedly pushes the same release tag and overwrites the image that incident responders need to reconstruct. Which course of action addresses the stated issues?
- Enable ACR tag immutability for controlled release repositories; do not Pin deployment manifests to an approved immutable image digest.
- Publish versioned image tags and record their digests with each deployment; enable ACR tag immutability for controlled release repositories.
- Pin deployment manifests to an approved immutable image digest; publish versioned image tags and record their digests with each deployment.
- Pin deployment manifests to an approved immutable image digest; enable ACR tag immutability for controlled release repositories.
Explanation
Correct Answer
D:A digest identifies exact image content even when a human-readable tag is reassigned. The second works because locked tags prevent accidental or unauthorized replacement of the referenced release artifact. Both parts are needed to meet the stated constraints.
Incorrect Answers
A:Locked tags prevent accidental or unauthorized replacement of the referenced release artifact; requirement 1 requires: pinning deployment manifests to an approved immutable image digest.
B:Version-plus-digest records associate each deployment with a reproducible image artifact; requirement 1 requires: pinning deployment manifests to an approved immutable image digest.
C:Enable ACR tag immutability for controlled release repositories. Locked tags prevent accidental or unauthorized replacement of the referenced release artifact.
Question 333
A container application is healthy but produces no logs after Log Analytics ingestion settings are changed. An OpenTelemetry collector has network reachability but rejects exported spans due to invalid authentication configuration. Which response best addresses these needs?
- Check workspace destination, diagnostic settings and ingestion errors; verify metric ingestion and distinguish missing-data behavior from healthy below-threshold values.
- Check workspace destination, diagnostic settings and ingestion errors; Repair exporter credentials and collector authentication settings.
- Repair exporter credentials and collector authentication settings; do not check workspace destination, diagnostic settings and ingestion errors.
- Verify metric ingestion and distinguish missing-data behavior from healthy below-threshold values; Repair exporter credentials and collector authentication settings.
Explanation
Correct Answer
B:Telemetry routing settings can fail independently of application process health. The second works because a reachable endpoint still refuses data when its authentication requirements are not met. Both parts are needed to meet the stated constraints.
Incorrect Answers
A:Repair exporter credentials and collector authentication settings. A reachable endpoint still refuses data when its authentication requirements are not met.
C:A reachable endpoint still refuses data when its authentication requirements are not met; requirement 1 requires: checking workspace destination, diagnostic settings and ingestion errors.
D:No new datapoints does not prove the measured system is operating normally; requirement 1 requires: checking workspace destination, diagnostic settings and ingestion errors.
Question 334
A bursty inference webhook has long idle periods and the team wants consumption-based execution instead of permanent VMs. An always-on, latency-sensitive API cannot tolerate typical cold starts during sporadic traffic. What is the most appropriate plan for this situation?
- Select a supported consumption-oriented Azure Functions hosting plan appropriate to its runtime; evaluate an appropriate Functions hosting plan with prewarmed or always-ready capacity.
- Split the job into durable asynchronous work or choose supported longer-running hosting; evaluate an appropriate Functions hosting plan with prewarmed or always-ready capacity.
- Select a supported consumption-oriented Azure Functions hosting plan appropriate to its runtime; Split the job into durable asynchronous work or choose supported longer-running hosting.
- Evaluate an appropriate Functions hosting plan with prewarmed or always-ready capacity; do not select a supported consumption-oriented Azure Functions hosting plan appropriate to its runtime.
Explanation
Correct Answer
A:Serverless plans allocate function capacity based on executions and configured scaling behavior. keeping capacity warm reduces initialization latency at an ongoing resource cost.
Incorrect Answers
B:Runtime timeout limits cannot be overcome by only increasing HTTP client timeouts; requirement 1 requires: selecting a supported consumption-oriented Azure Functions hosting plan appropriate to its runtime.
C:Evaluate an appropriate Functions hosting plan with prewarmed or always-ready capacity.
D:Keeping capacity warm reduces initialization latency at an ongoing resource cost; requirement 1 requires: selecting a supported consumption-oriented Azure Functions hosting plan appropriate to its runtime.
Question 335
Developers created an HNSW index with vector_l2_ops, but production queries rank by cosine distance and rarely use the index. An embeddings table stores 3072-dimensional vectors, and a chosen HNSW index fails because the supported index type has a lower dimension limit. Which course of action addresses the stated issues?
- Create a suitable vector_cosine_ops index matching the query operator; select a supported dimensionality strategy or different retrieval design within index limits.
- Create a suitable vector_cosine_ops index matching the query operator; Tune hnsw.ef_search and compare latency and recall with an exact baseline.
- Tune hnsw.ef_search and compare latency and recall with an exact baseline; select a supported dimensionality strategy or different retrieval design within index limits.
- Select a supported dimensionality strategy or different retrieval design within index limits; do not create a suitable vector_cosine_ops index matching the query operator.
Explanation
Correct Answer
A:The vector index operator class must match the distance operation used by the query planner. storing a vector and building an approximate index are subject to different dimension constraints.
Incorrect Answers
B:Select a supported dimensionality strategy or different retrieval design within index limits.
C:Exploring more HNSW candidates usually improves recall at the expense of query work; requirement 1 requires: creating a suitable vector_cosine_ops index matching the query operator.
D:Storing a vector and building an approximate index are subject to different dimension constraints; requirement 1 requires: creating a suitable vector_cosine_ops index matching the query operator.
Question 336
A support engineer searches logs without any time limit and accidentally includes a similar incident from last month. A KQL query compares application timestamps in local time with UTC Log Analytics event times and falsely reports missing events. Which response best addresses these needs?
- Normalize timestamps to a consistent UTC basis before comparing them; do not Bound the KQL query with an explicit incident time range.
- Bound the KQL query with an explicit incident time range; Normalize timestamps to a consistent UTC basis before comparing them.
- Partition the KQL aggregation into pre- and post-deployment time windows; Normalize timestamps to a consistent UTC basis before comparing them.
- Bound the KQL query with an explicit incident time range; Partition the KQL aggregation into pre- and post-deployment time windows.
Explanation
Correct Answer
B:Time predicates focus conclusions on evidence relevant to the actual event. The second works because misaligned time zones can make real correlated records appear outside the search window. Both parts are needed to meet the stated constraints.
Incorrect Answers
A:Misaligned time zones can make real correlated records appear outside the search window; Requirement 1 requires: bound the KQL query with an explicit incident time range.
C:A controlled time split makes it possible to compare behavior around the release boundary; Requirement 1 requires: bound the KQL query with an explicit incident time range.
D:Normalize timestamps to a consistent UTC basis before comparing them. Misaligned time zones can make real correlated records appear outside the search window.
Question 337
A Container Apps revision is unhealthy immediately after deployment, and the team's first clue is an image-pull error. Container Apps replicas run successfully, but a gateway cannot reach a backend app after a new ingress configuration. What is the most appropriate plan for this situation?
- Verify internal ingress, target port and environment service discovery for the backend; do not inspect revision system logs and registry identity or image-reference failures.
- Inspect revision system logs and registry identity or image-reference failures; compare the revision's secret references and runtime settings with the prior working revision.
- Inspect revision system logs and registry identity or image-reference failures; verify internal ingress, target port and environment service discovery for the backend.
- Compare the revision's secret references and runtime settings with the prior working revision; verify internal ingress, target port and environment service discovery for the backend.
Explanation
Correct Answer
C:System logs distinguish image retrieval failures from application startup exceptions. working containers do not imply that their ingress and DNS paths are correctly configured.
Incorrect Answers
A:Working containers do not imply that their ingress and DNS paths are correctly configured; requirement 1 requires: inspecting revision system logs and registry identity or image-reference failures.
B:Verify internal ingress, target port and environment service discovery for the backend.
D:A revision can start yet fail requests when its runtime configuration differs from the validated release; requirement 1 requires: inspecting revision system logs and registry identity or image-reference failures.
Question 338
One document indexing job takes longer than the initial Service Bus message lock and is sometimes processed twice. A queue worker prefetches hundreds of messages while processing only one at a time and sees lock expirations. Which course of action addresses the stated issues?
- Configure automatic lock renewal within limits and keep the handler idempotent; Treat lost-lock settlement as uncertain and rely on idempotent retry semantics.
- Lower prefetch to match processing concurrency and lock duration; do not configure automatic lock renewal within limits and keep the handler idempotent.
- Configure automatic lock renewal within limits and keep the handler idempotent; Lower prefetch to match processing concurrency and lock duration.
- Treat lost-lock settlement as uncertain and rely on idempotent retry semantics; Lower prefetch to match processing concurrency and lock duration.
Explanation
Correct Answer
C:Renewed locks extend a valid processing window; idempotence protects against unavoidable redelivery. prefetched messages may already be locked before the application begins handling them.
Incorrect Answers
A:Lower prefetch to match processing concurrency and lock duration.
B:Prefetched messages may already be locked before the application begins handling them; requirement 1 requires: configuring automatic lock renewal within limits and keep the handler idempotent.
D:A stale lock token cannot prove that the broker accepted completion; requirement 1 requires: configuring automatic lock renewal within limits and keep the handler idempotent.
Question 339
A delayed ingestion task should not be visible to consumers until its scheduled maintenance window starts. Stale inference jobs must expire after twenty minutes instead of being processed hours after a traffic surge. Which response best addresses these needs?
- Set an appropriate message time-to-live on the entity or messages; do not use Service Bus scheduled message delivery for the required time.
- Configure suitable dead-lettering on expiration and review the resulting dead-letter queue; Set an appropriate message time-to-live on the entity or messages.
- Use Service Bus scheduled message delivery for the required time; Set an appropriate message time-to-live on the entity or messages.
- Use Service Bus scheduled message delivery for the required time; configure suitable dead-lettering on expiration and review the resulting dead-letter queue.
Explanation
Correct Answer
C:Scheduled enqueueing defers availability without sleeping inside a worker process. tTL bounds useful message age independently of consumer availability.
Incorrect Answers
A:TTL bounds useful message age independently of consumer availability; requirement 1 requires: using Service Bus scheduled message delivery for the required time.
B:Expiration policy can preserve expired work in the dead-letter subqueue for analysis; requirement 1 requires: using Service Bus scheduled message delivery for the required time.
D:Set an appropriate message time-to-live on the entity or messages.
Question 340
A message publisher retries after a network timeout and accidentally queues the same embedding job twice. A locked Service Bus message is delivered again after a consumer crash and a payment-side effect executes twice. What is the most appropriate plan for this situation?
- Make the consumer idempotent using a durable business-operation key; do not enable Service Bus duplicate detection and reuse a stable MessageId during retry.
- Enable Service Bus duplicate detection and reuse a stable MessageId during retry; Make the consumer idempotent using a durable business-operation key.
- Assign a unique stable identifier per logical operation, not a constant value; Make the consumer idempotent using a durable business-operation key.
- Enable Service Bus duplicate detection and reuse a stable MessageId during retry; assign a unique stable identifier per logical operation, not a constant value.
Explanation
Correct Answer
B:Duplicate detection compares message identifiers within the configured history window. send-side duplicate detection cannot prevent reprocessing caused by receive and settlement failures.
Incorrect Answers
A:Send-side duplicate detection cannot prevent reprocessing caused by receive and settlement failures; Requirement 1 requires: enable Service Bus duplicate detection and reuse a stable MessageId during retry.
C:Identifier reuse makes distinct operations look like duplicate submissions; Requirement 1 requires: enable Service Bus duplicate detection and reuse a stable MessageId during retry.
D:Make the consumer idempotent using a durable business-operation key.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests