Question 540
An embedding model produces 768 floats, but its table column is defined as vector(1536). A team wants to compare text embeddings using cosine distance but its SQL uses the Euclidean operator without review. Which response best addresses these needs?
- Use the pgvector cosine-distance operator for the intended metric; do not align the pgvector column dimension and data migration with the actual model output.
- Align the pgvector column dimension and data migration with the actual model output; enable the supported vector extension in the intended database.
- Enable the supported vector extension in the intended database; use the pgvector cosine-distance operator for the intended metric.
- Align the pgvector column dimension and data migration with the actual model output; use the pgvector cosine-distance operator for the intended metric.
Explanation
Correct Answer
D:Mismatched vector dimensions prevent valid inserts and comparisons. distance operators encode different geometry and can produce different ranking results.
Incorrect Answers
A:Distance operators encode different geometry and can produce different ranking results; Requirement 1 requires: align the pgvector column dimension and data migration with the actual model output.
B:Use the pgvector cosine-distance operator for the intended metric.
C:Enable the supported vector extension in the intended database; use the pgvector cosine-distance operator for the intended metric: align the pgvector column dimension and data migration with the actual model output.
Question 541
A troubleshooting query pulls millions of log rows and displays irrelevant columns for every event. An on-call engineer needs the fifty newest exception records rather than every historic trace. What is the most appropriate plan for this situation?
- Project only the required timestamp, operation and status fields in the KQL query; Order exceptions by TimeGenerated descending and take the requested number.
- Order exceptions by TimeGenerated descending and take the requested number; do not Project only the required timestamp, operation and status fields in the KQL query.
- Project only the required timestamp, operation and status fields in the KQL query; Filter the appropriate table with KQL where conditions on application and result fields.
- Filter the appropriate table with KQL where conditions on application and result fields; Order exceptions by TimeGenerated descending and take the requested number.
Explanation
Correct Answer
A:Projection reduces displayed data and focuses investigation on essential attributes. sorting by event time and limiting results returns the most recent failures predictably.
Incorrect Answers
B:Sorting by event time and limiting results returns the most recent failures predictably; Requirement 1 requires: project only the required timestamp, operation and status fields in the KQL query.
C:Order exceptions by TimeGenerated descending and take the requested number.
D:Project only the required timestamp, operation and status fields in the KQL query.
Question 542
A nightly vector refresh deletes and reinserts every row, making an otherwise incremental pipeline cause prolonged index churn. A bulk loader adds embeddings faster than the database can index them, causing replication lag and saturated CPU. Which course of action addresses the stated issues?
- Throttle ingestion concurrency and monitor storage, CPU and replication progress; do not Upsert only changed chunk embeddings using stable identifiers.
- Load representative vector data before constructing and tuning the IVFFlat index; Throttle ingestion concurrency and monitor storage, CPU and replication progress.
- Upsert only changed chunk embeddings using stable identifiers; Throttle ingestion concurrency and monitor storage, CPU and replication progress.
- Upsert only changed chunk embeddings using stable identifiers; Load representative vector data before constructing and tuning the IVFFlat index.
Explanation
Correct Answer
C:Incremental updates reduce unnecessary vector writes and index maintenance. bounded writes protect capacity while indexing and replication catch up.
Incorrect Answers
A:Bounded writes protect capacity while indexing and replication catch up; Requirement 1 requires: upsert only changed chunk embeddings using stable identifiers.
B:Load representative vector data before constructing and tuning the IVFFlat index; Throttle ingestion concurrency and monitor storage, CPU and replication progress: upsert only changed chunk embeddings using stable identifiers.
D:Throttle ingestion concurrency and monitor storage, CPU and replication progress.
Question 543
An existing change-feed processor already uses a lease container, but deployment automation deletes the lease container on every release and reprocesses old changes. An analytics consumer receives the same changed item again after a crash before its checkpoint commits. Which response best addresses these needs?
- Preserve the existing lease container and its checkpoints across application deployments; Make the downstream change-feed handler idempotent by document identity and version.
- Preserve the existing lease container and its checkpoints across application deployments; use a Cosmos DB change feed processor with a properly configured lease container.
- Make the downstream change-feed handler idempotent by document identity and version; do not preserve the existing lease container and its checkpoints across application deployments.
- Use a Cosmos DB change feed processor with a properly configured lease container; Make the downstream change-feed handler idempotent by document identity and version.
Explanation
Correct Answer
A:Durable leases and checkpoints preserve progress and coordinate competing processor instances. change feed delivery and checkpoint timing can lead to reprocessing after failures.
Incorrect Answers
B:Make the downstream change-feed handler idempotent by document identity and version.
C:Change feed delivery and checkpoint timing can lead to reprocessing after failures; Requirement 1 requires: preserve the existing lease container and its checkpoints across application deployments.
D:Use a Cosmos DB change feed processor with a properly configured lease container; Make the downstream change-feed handler idempotent by document identity and version: preserve the existing lease container and its checkpoints across application deployments.
Question 544
A subscriber has hundreds of failed Service Bus messages but monitoring counts only the active queue length. A corrected consumer must safely replay selected dead-letter messages after a serialization bug is repaired. What is the most appropriate plan for this situation?
- Validate and resubmit selected dead-letter messages to the intended active entity; do not Monitor and inspect the queue's dead-letter subqueue.
- Monitor and inspect the queue's dead-letter subqueue; validate and resubmit selected dead-letter messages to the intended active entity.
- Monitor and inspect the queue's dead-letter subqueue; Dead-letter the poison message with a reason for operator inspection.
- Dead-letter the poison message with a reason for operator inspection; validate and resubmit selected dead-letter messages to the intended active entity.
Explanation
Correct Answer
B:Dead-lettered messages live in a separate subqueue and need dedicated alerts and handling. recovery requires a controlled replay rather than assuming dead-letter messages reappear automatically.
Incorrect Answers
A:Recovery requires a controlled replay rather than assuming dead-letter messages reappear automatically; Requirement 1 requires: monitor and inspect the queue's dead-letter subqueue.
C:Validate and resubmit selected dead-letter messages to the intended active entity.
D:Dead-letter the poison message with a reason for operator inspection; validate and resubmit selected dead-letter messages to the intended active entity: monitor and inspect the queue's dead-letter subqueue.
Question 545
Multiple customer tenants use identical Redis cache keys and receive each other's cached responses. A recommender cache returns correct hits but peak memory rises without bound because temporary entries never expire. Which course of action addresses the stated issues?
- Include an authorized tenant identifier in cache-key construction and enforce isolation; Set an appropriate Redis key TTL and explicit invalidation on updates.
- Set an appropriate Redis key TTL and explicit invalidation on updates; apply suitable expiration policies and monitor cache memory consumption.
- Apply suitable expiration policies and monitor cache memory consumption; do not Include an authorized tenant identifier in cache-key construction and enforce isolation.
- Include an authorized tenant identifier in cache-key construction and enforce isolation; apply suitable expiration policies and monitor cache memory consumption.
Explanation
Correct Answer
D:Key namespacing prevents collisions between distinct customer data scopes. expiring ephemeral data controls memory growth without treating the cache as a permanent database.
Incorrect Answers
A:Apply suitable expiration policies and monitor cache memory consumption.
B:Set an appropriate Redis key TTL and explicit invalidation on updates; apply suitable expiration policies and monitor cache memory consumption: include an authorized tenant identifier in cache-key construction and enforce isolation.
C:Expiring ephemeral data controls memory growth without treating the cache as a permanent database; Requirement 1 requires: include an authorized tenant identifier in cache-key construction and enforce isolation.
Question 546
A Service Bus-triggered Function scales out rapidly and overwhelms a downstream API with concurrent calls. A Function App reports no discovered Python functions after a deployment that changed how handlers are registered. Which response best addresses these needs?
- Check function_app.py decorator discovery and runtime configuration for the Python model; do not Tune host concurrency and scale limits to protect the dependent API.
- Inspect Function logs and Application Insights traces for the failing invocation; check function_app.py decorator discovery and runtime configuration for the Python model.
- Tune host concurrency and scale limits to protect the dependent API; inspect Function logs and Application Insights traces for the failing invocation.
- Tune host concurrency and scale limits to protect the dependent API; check function_app.py decorator discovery and runtime configuration for the Python model.
Explanation
Correct Answer
D:Function trigger throughput must account for downstream capacity and retry behavior. unsupported function registration prevents the runtime from indexing trigger definitions.
Incorrect Answers
A:Unsupported function registration prevents the runtime from indexing trigger definitions; Requirement 1 requires: tune host concurrency and scale limits to protect the dependent API.
B:Inspect Function logs and Application Insights traces for the failing invocation; check function_app.py decorator discovery and runtime configuration for the Python model: tune host concurrency and scale limits to protect the dependent API.
C:Check function_app.py decorator discovery and runtime configuration for the Python model.
Question 547
A server-side API opens a fresh PostgreSQL socket for every small query and exhausts its connection budget. A backend attempts to connect using the Azure database public hostname from a private-only subnet, but private DNS resolves incorrectly. What is the most appropriate plan for this situation?
- Reuse application connections through an appropriately sized connection pool; correct private endpoint DNS and network reachability to the PostgreSQL server.
- Correct private endpoint DNS and network reachability to the PostgreSQL server; do not Reuse application connections through an appropriately sized connection pool.
- Configure TLS with a trusted server certificate and hostname verification; correct private endpoint DNS and network reachability to the PostgreSQL server.
- Reuse application connections through an appropriately sized connection pool; configure TLS with a trusted server certificate and hostname verification.
Explanation
Correct Answer
A:Pooling reduces connection setup overhead and caps concurrent database sessions. authentication cannot succeed until the client can resolve and reach the permitted database address.
Incorrect Answers
B:Authentication cannot succeed until the client can resolve and reach the permitted database address; Requirement 1 requires: reuse application connections through an appropriately sized connection pool.
C:Configure TLS with a trusted server certificate and hostname verification; correct private endpoint DNS and network reachability to the PostgreSQL server: reuse application connections through an appropriately sized connection pool.
D:Correct private endpoint DNS and network reachability to the PostgreSQL server.
Question 548
Three AKS pods have changing IP addresses, but other applications need a stable in-cluster access point. An AKS deployment fails to serve traffic because the Service selector does not match the labels on any pod. Which course of action addresses the stated issues?
- Create a Kubernetes Service selecting the appropriate pod labels; align the Service selector with the intended workload's pod labels.
- Create a Kubernetes Service selecting the appropriate pod labels; define a Kubernetes Deployment with the desired replica count.
- Align the Service selector with the intended workload's pod labels; do not create a Kubernetes Service selecting the appropriate pod labels.
- Define a Kubernetes Deployment with the desired replica count; align the Service selector with the intended workload's pod labels.
Explanation
Correct Answer
A:A Service exposes a stable name and virtual address across changing pod endpoints. a Kubernetes Service with no matching endpoints cannot forward to its healthy pods.
Incorrect Answers
B:Align the Service selector with the intended workload's pod labels.
C:A Kubernetes Service with no matching endpoints cannot forward to its healthy pods; requirement 1 requires: creating a Kubernetes Service selecting the appropriate pod labels.
D:Define a Kubernetes Deployment with the desired replica count; align the Service selector with the intended workload's pod labels: create a Kubernetes Service selecting the appropriate pod labels.
Question 549
An always-on, latency-sensitive API cannot tolerate typical cold starts during sporadic traffic. A Function repeatedly exceeds its chosen hosting plan's maximum execution duration while generating large reports. Which response best addresses these needs?
- 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.
- 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.
- Split the job into durable asynchronous work or choose supported longer-running hosting; do not evaluate an appropriate Functions hosting plan with prewarmed or always-ready capacity.
- 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.
Explanation
Correct Answer
A:Keeping capacity warm reduces initialization latency at an ongoing resource cost. runtime timeout limits cannot be overcome by only increasing HTTP client timeouts.
Incorrect Answers
B: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.
C:Runtime timeout limits cannot be overcome by only increasing HTTP client timeouts; requirement 1 requires: evaluating an appropriate Functions hosting plan with prewarmed or always-ready capacity.
D:Split the job into durable asynchronous work or choose supported longer-running hosting.
Question 550
A deployed Python HTTP Function returns 404 because the client calls the default /api route while the declared route is different. A public HTTP Function allows anonymous requests despite needing an application key at the endpoint. What is the most appropriate plan for this situation?
- Define the HTTP trigger and bindings in the Python v2 decorator model; Set the appropriate HTTP trigger authorization level and manage keys securely.
- Match the request URL to the configured HTTP trigger route and route prefix; define the HTTP trigger and bindings in the Python v2 decorator model.
- Match the request URL to the configured HTTP trigger route and route prefix; Set the appropriate HTTP trigger authorization level and manage keys securely.
- Set the appropriate HTTP trigger authorization level and manage keys securely; do not Match the request URL to the configured HTTP trigger route and route prefix.
Explanation
Correct Answer
C:Function routing depends on the trigger's declared path rather than the Python function's display name alone. trigger auth level controls whether a function or host key is required on supported calls.
Incorrect Answers
A:Define the HTTP trigger and bindings in the Python v2 decorator model; Set the appropriate HTTP trigger authorization level and manage keys securely: match the request URL to the configured HTTP trigger route and route prefix.
B:Set the appropriate HTTP trigger authorization level and manage keys securely.
D:Trigger auth level controls whether a function or host key is required on supported calls; Requirement 1 requires: match the request URL to the configured HTTP trigger route and route prefix.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests