Question 560
A new Cosmos DB container is being provisioned for cosine-based embeddings, but its proposed vector policy uses a different distance metric. Developers attempt to change an existing container's vector embedding dimensions directly after switching models. Which course of action addresses the stated issues?
- Plan a new supported vector policy and migration rather than assuming in-place dimension edits; do not configure cosine distance on the vector embedding path before creating the container.
- Configure cosine distance on the vector embedding path before creating the container; plan a new supported vector policy and migration rather than assuming in-place dimension edits.
- Create a vector policy whose declared dimension matches the actual embedding model output; plan a new supported vector policy and migration rather than assuming in-place dimension edits.
- Configure cosine distance on the vector embedding path before creating the container; create a vector policy whose declared dimension matches the actual embedding model output.
Explanation
Correct Answer
B:Search distance semantics must match the embedding model and intended nearest-neighbor ranking. existing vector policy settings are constrained and require an explicit change path.
Incorrect Answers
A:Existing vector policy settings are constrained and require an explicit change path; requirement 1 requires: configuring cosine distance on the vector embedding path before creating the container.
C:Create a vector policy whose declared dimension matches the actual embedding model output; plan a new supported vector policy and migration rather than assuming in-place dimension edits: configure cosine distance on the vector embedding path before creating the container.
D:Plan a new supported vector policy and migration rather than assuming in-place dimension edits.
Question 561
Only documents under one project folder should trigger an indexing webhook, but every uploaded blob event currently invokes it. An integration requires filtering Event Grid events by a custom payload property such as approved tenant tier. Which response best addresses these needs?
- Add a supported advanced filter for the payload property; do not configure an appropriate Event Grid subject-begins-with filter.
- Add an Event Grid event-type filter to the event subscription; add a supported advanced filter for the payload property.
- Configure an appropriate Event Grid subject-begins-with filter; add an Event Grid event-type filter to the event subscription.
- Configure an appropriate Event Grid subject-begins-with filter; add a supported advanced filter for the payload property.
Explanation
Correct Answer
D:Subject filters target resource paths without requiring the endpoint to discard unrelated notifications. advanced filters evaluate selected event fields beyond simple event type or subject prefixes.
Incorrect Answers
A:Advanced filters evaluate selected event fields beyond simple event type or subject prefixes; requirement 1 requires: configuring an appropriate Event Grid subject-begins-with filter.
B:Add an Event Grid event-type filter to the event subscription; add a supported advanced filter for the payload property: configure an appropriate Event Grid subject-begins-with filter.
C:Add a supported advanced filter for the payload property.
Question 562
An approved base image receives security updates while dependent application images remain unchanged for months. A scheduled integration job needs a freshly built test image each night without relying on a developer workstation. What is the most appropriate plan for this situation?
- Configure an ACR Task base-image update trigger for the dependent image; 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 a scheduled ACR Task to build the test image; do not configure an ACR Task base-image update trigger for the dependent image.
- Set an ACR Task source-commit trigger for the image build; configure a scheduled ACR Task to build the test image.
Explanation
Correct Answer
B:Base-image triggers can rebuild supported dependent images after upstream image changes. scheduled registry tasks produce images at a controlled cadence without a local build host.
Incorrect Answers
A:Configure a scheduled ACR Task to build the test image.
C:Scheduled registry tasks produce images at a controlled cadence without a local build host; requirement 1 requires: configuring an ACR Task base-image update trigger for the dependent image.
D:Set an ACR Task source-commit trigger for the image build; configure a scheduled ACR Task to build the test image: configure an ACR Task base-image update trigger for the dependent image.
Question 563
A chat application queries one tenant's conversation records constantly but partitions documents only by creation month. A frequently queried NoSQL collection scans multiple partitions even when every query already knows the tenant identifier. Which course of action addresses the stated issues?
- Partition by an appropriate tenant or tenant-session key to localize frequent reads; Include the tenant partition-key value in SDK queries or requests.
- Include the tenant partition-key value in SDK queries or requests; do not Partition by an appropriate tenant or tenant-session key to localize frequent reads.
- Partition by an appropriate tenant or tenant-session key to localize frequent reads; choose a higher-cardinality partition key aligned with workload access patterns.
- Choose a higher-cardinality partition key aligned with workload access patterns; Include the tenant partition-key value in SDK queries or requests.
Explanation
Correct Answer
A:Partition-key choice should match high-volume query predicates and distribute traffic. supplying the partition key narrows execution instead of fanning queries across partitions.
Incorrect Answers
B:Supplying the partition key narrows execution instead of fanning queries across partitions; Requirement 1 requires: partition by an appropriate tenant or tenant-session key to localize frequent reads.
C:Include the tenant partition-key value in SDK queries or requests.
D:Choose a higher-cardinality partition key aligned with workload access patterns; Include the tenant partition-key value in SDK queries or requests: partition by an appropriate tenant or tenant-session key to localize frequent reads.
Question 564
An exception in an embedding worker is logged without attaching it to the request span that failed. A trace contains thousands of uniquely identifying user names as span attribute values, violating privacy rules. Which response best addresses these needs?
- Record the exception and error status on the active OpenTelemetry span; add a database dependency span around the query with suitable attributes.
- Remove sensitive attributes and use low-cardinality, nonsecret diagnostics; do not Record the exception and error status on the active OpenTelemetry span.
- Add a database dependency span around the query with suitable attributes; remove sensitive attributes and use low-cardinality, nonsecret diagnostics.
- Record the exception and error status on the active OpenTelemetry span; remove sensitive attributes and use low-cardinality, nonsecret diagnostics.
Explanation
Correct Answer
D:Span events and status connect a failure to the exact traced operation. trace metadata should support debugging without storing private identifiers or exploding cardinality.
Incorrect Answers
A:Remove sensitive attributes and use low-cardinality, nonsecret diagnostics.
B:Trace metadata should support debugging without storing private identifiers or exploding cardinality; requirement 1 requires: recording the exception and error status on the active OpenTelemetry span.
C:Add a database dependency span around the query with suitable attributes; remove sensitive attributes and use low-cardinality, nonsecret diagnostics: record the exception and error status on the active OpenTelemetry span.
Question 565
An App Service app uses a container image that requires Windows-only libraries while the hosting plan runs Linux. A production App Service points to an ACR repository but still starts an old image after a new tagged build was pushed. What is the most appropriate plan for this situation?
- Rebuild for a compatible Linux runtime or use an appropriate supported Windows container host; configure App Service's container port settings to match the application's listening port.
- Configure App Service's container port settings to match the application's listening port; update the configured image reference to the newly approved version and redeploy.
- Rebuild for a compatible Linux runtime or use an appropriate supported Windows container host; update the configured image reference to the newly approved version and redeploy.
- Update the configured image reference to the newly approved version and redeploy; do not Rebuild for a compatible Linux runtime or use an appropriate supported Windows container host.
Explanation
Correct Answer
C:Operating-system dependencies must match the selected container hosting environment. hosting configuration must reference the intended image rather than assuming every pushed image is deployed.
Incorrect Answers
A:Update the configured image reference to the newly approved version and redeploy.
B:Configure App Service's container port settings to match the application's listening port; update the configured image reference to the newly approved version and redeploy: rebuild for a compatible Linux runtime or use an appropriate supported Windows container host.
D:Hosting configuration must reference the intended image rather than assuming every pushed image is deployed; requirement 1 requires: rebuilding for a compatible Linux runtime or use an appropriate supported Windows container host.
Question 566
A connection string with a PostgreSQL password is checked into a public application repository. A PostgreSQL server blocks a Container App whose database role is valid, because traffic originates outside the permitted private network. Which course of action addresses the stated issues?
- Configure supported private network connectivity and DNS for the container workload; do not Move the credential into an approved secret store and rotate the exposed password.
- Create least-privilege application roles for the exact schemas and operations; configure supported private network connectivity and DNS for the container workload.
- Move the credential into an approved secret store and rotate the exposed password; create least-privilege application roles for the exact schemas and operations.
- Move the credential into an approved secret store and rotate the exposed password; configure supported private network connectivity and DNS for the container workload.
Explanation
Correct Answer
D:Removing source text alone does not invalidate a credential that was already disclosed. database authorization cannot bypass an unavailable or disallowed network path.
Incorrect Answers
A:Database authorization cannot bypass an unavailable or disallowed network path; Requirement 1 requires: move the credential into an approved secret store and rotate the exposed password.
B:Create least-privilege application roles for the exact schemas and operations; configure supported private network connectivity and DNS for the container workload: move the credential into an approved secret store and rotate the exposed password.
C:Configure supported private network connectivity and DNS for the container workload.
Question 567
A user requests only Spanish knowledge articles, but retrieval selects highly similar English chunks because language is not filtered. A compliance assistant must cite the original document for each retrieved chunk but vector rows omit source identifiers. Which response best addresses these needs?
- Combine authorized department metadata filters with vector retrieval and application permission checks; Store and select document and chunk provenance columns with retrieval results.
- Apply a language metadata predicate alongside the vector-distance ranking; Combine authorized department metadata filters with vector retrieval and application permission checks.
- Store and select document and chunk provenance columns with retrieval results; do not apply a language metadata predicate alongside the vector-distance ranking.
- Apply a language metadata predicate alongside the vector-distance ranking; Store and select document and chunk provenance columns with retrieval results.
Explanation
Correct Answer
D:A metadata filter enforces the requested language constraint independent of semantic proximity. source identifiers permit traceable citations and controlled post-retrieval verification.
Incorrect Answers
A:Combine authorized department metadata filters with vector retrieval and application permission checks; Store and select document and chunk provenance columns with retrieval results: apply a language metadata predicate alongside the vector-distance ranking.
B:Store and select document and chunk provenance columns with retrieval results.
C:Source identifiers permit traceable citations and controlled post-retrieval verification; requirement 1 requires: applying a language metadata predicate alongside the vector-distance ranking.
Question 568
A service retries Key Vault 429 responses in a tight loop and further exhausts available request capacity. A secret retrieval failure is treated as success with an empty credential and the application then accesses an unintended fallback account. What is the most appropriate plan for this situation?
- Use bounded exponential backoff and honor service retry guidance; Fail closed on missing secrets and alert without logging sensitive values.
- Cache the secret securely for a bounded interval with safe refresh handling; Fail closed on missing secrets and alert without logging sensitive values.
- Fail closed on missing secrets and alert without logging sensitive values; do not use bounded exponential backoff and honor service retry guidance.
- Use bounded exponential backoff and honor service retry guidance; Cache the secret securely for a bounded interval with safe refresh handling.
Explanation
Correct Answer
A:Controlled retries reduce pressure during throttling and preserve capacity for recovery. The second works because missing authentication material must not silently downgrade the application security boundary. Both parts are needed to meet the stated constraints.
Incorrect Answers
B:Cache the secret securely for a bounded interval with safe refresh handling; Fail closed on missing secrets and alert without logging sensitive values: use bounded exponential backoff and honor service retry guidance.
C:Missing authentication material must not silently downgrade the application security boundary; requirement 1 requires: using bounded exponential backoff and honor service retry guidance.
D:Fail closed on missing secrets and alert without logging sensitive values. Missing authentication material must not silently downgrade the application security boundary.
Question 569
A RAG query has excellent vector indexing but repeatedly performs a sequential scan for an exact tenant_id predicate. The database chooses an unexpectedly expensive plan because table and index statistics have become stale after a bulk import. Which course of action addresses the stated issues?
- Add a suitable B-tree index on the high-selectivity tenant filter where justified; Refresh planner statistics with the approved ANALYZE maintenance process.
- Inspect EXPLAIN ANALYZE with BUFFERS to identify the actual scan and filter costs; Refresh planner statistics with the approved ANALYZE maintenance process.
- Refresh planner statistics with the approved ANALYZE maintenance process; do not add a suitable B-tree index on the high-selectivity tenant filter where justified.
- Add a suitable B-tree index on the high-selectivity tenant filter where justified; inspect EXPLAIN ANALYZE with BUFFERS to identify the actual scan and filter costs.
Explanation
Correct Answer
A:Conventional relational predicates can benefit from ordinary indexes independent of vector search. updated statistics help PostgreSQL choose between available scan and join methods.
Incorrect Answers
B:Inspect EXPLAIN ANALYZE with BUFFERS to identify the actual scan and filter costs; Refresh planner statistics with the approved ANALYZE maintenance process: add a suitable B-tree index on the high-selectivity tenant filter where justified.
C:Updated statistics help PostgreSQL choose between available scan and join methods; Requirement 1 requires: add a suitable B-tree index on the high-selectivity tenant filter where justified.
D:Refresh planner statistics with the approved ANALYZE maintenance process.
Question 570
A large distributed trace is missing some child spans and developers assume every dependency call was successful. A retry loop produces many spans under one request and makes the chart look like many independent user requests. Which response best addresses these needs?
- Check exporter drops and sampling settings before interpreting missing spans; Account for sampling or use unsampled metrics for total request counts.
- Check exporter drops and sampling settings before interpreting missing spans; separate request-level metrics from dependency-attempt spans when aggregating.
- Separate request-level metrics from dependency-attempt spans when aggregating; do not check exporter drops and sampling settings before interpreting missing spans.
- Account for sampling or use unsampled metrics for total request counts; separate request-level metrics from dependency-attempt spans when aggregating.
Explanation
Correct Answer
B:Telemetry absence can result from collection loss, not an absence of failures. multiple attempt spans may belong to a single business request.
Incorrect Answers
A:Separate request-level metrics from dependency-attempt spans when aggregating.
C:Multiple attempt spans may belong to a single business request; requirement 1 requires: checking exporter drops and sampling settings before interpreting missing spans.
D:Account for sampling or use unsampled metrics for total request counts; separate request-level metrics from dependency-attempt spans when aggregating: check exporter drops and sampling settings before interpreting missing spans.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests