Developing AI Cloud Solutions on Azure AI-200 Practice Test 31
Question 300
A model endpoint caches expensive retrieval results but needs to avoid serving a stale embedding version after an embedding-model upgrade. A reviewer recommends: Include the embedding-model version in Redis cache keys and retire old version keys. Which technical property makes the recommended implementation suitable?
- Vector search consumes compute and memory that must be sized against real load
- Cache identity must include semantic-model version when query vectors are not comparable across models
- PostgreSQL authorization is schema- and object-scoped, separate from network access
- Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning
Explanation
Correct Answer
B:Cache identity must include semantic-model version when query vectors are not comparable across models. This is the behavior that makes Include the embedding-model version in Redis cache keys and retire old version keys appropriate for the given scenario.
Incorrect Answers
A:Vector search consumes compute and memory that must be sized against real load. This does not establish the required control: cache identity must include semantic-model version when query vectors are not comparable across models.
C:PostgreSQL authorization is schema- and object-scoped, separate from network access. In this question, cache identity must include semantic-model version when query vectors are not comparable across models.
D:Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning. This does not establish the required control: cache identity must include semantic-model version when query vectors are not comparable across models.
Question 301
An Azure Managed Redis instance was created without RediSearch and developers now want vector KNN queries. After the planned remediation, which result should an engineer record after the change?
- The FLAT results match exhaustive reference distance ranking on the test corpus
- KNN latency and recall meet targets and the metadata filter excludes wrong tenants
- A profile update is immediately reflected after cache invalidation
- The new instance lists RediSearch and executes a KNN query successfully
Explanation
Correct Answer
D:The new instance lists RediSearch and executes a KNN query successfully. This directly verifies that the required change, Provision a compatible Azure Managed Redis instance with RediSearch enabled at creation, produced the specified outcome.
Incorrect Answers
A:The FLAT results match exhaustive reference distance ranking on the test corpus. The decisive condition here is different: the new instance lists RediSearch and executes a KNN query successfully.
B:KNN latency and recall meet targets and the metadata filter excludes wrong tenants. In this question, the new instance lists RediSearch and executes a KNN query successfully.
C:A profile update is immediately reflected after cache invalidation. This does not establish the required control: the new instance lists RediSearch and executes a KNN query successfully.
Question 302
An Azure Managed Redis instance was created without RediSearch and developers now want vector KNN queries. Which configuration is the best fit for these constraints?
- Include the embedding-model version in Redis cache keys and retire old version keys
- Add RediSearch dynamically to the existing managed instance without rebuilding
- Use a managed or application-side connection pool with bounded concurrency
- Provision a compatible Azure Managed Redis instance with RediSearch enabled at creation
Explanation
Correct Answer
D:Provision a compatible Azure Managed Redis instance with RediSearch enabled at creation. Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning. Evidence: the new instance lists RediSearch and executes a KNN query successfully.
Incorrect Answers
A:Include the embedding-model version in Redis cache keys and retire old version keys. In this question, provision a compatible Azure Managed Redis instance with RediSearch enabled at creation.
B:Managed Redis modules cannot be added after instance creation. This does not establish the required control: provision a compatible Azure Managed Redis instance with RediSearch enabled at creation.
C:Use a managed or application-side connection pool with bounded concurrency. The decisive condition here is different: provision a compatible Azure Managed Redis instance with RediSearch enabled at creation.
Question 303
An Azure Managed Redis instance was created without RediSearch and developers now want vector KNN queries. A reviewer recommends: Provision a compatible Azure Managed Redis instance with RediSearch enabled at creation. Why is this configuration appropriate for the stated constraint?
- The index needs an indexed vector expression with known dimensions
- Vector distance requires matching vector shape and a meaningful shared embedding space
- Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning
- Schema and projection choices influence I/O and response size
Explanation
Correct Answer
C:Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning. This is the behavior that makes Provision a compatible Azure Managed Redis instance with RediSearch enabled at creation appropriate for the given scenario.
Incorrect Answers
A:The index needs an indexed vector expression with known dimensions. This does not establish the required control: managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning.
B:Vector distance requires matching vector shape and a meaningful shared embedding space. The decisive condition here is different: managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning.
D:Schema and projection choices influence I/O and response size. This does not establish the required control: managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning.
Question 304
An Azure Managed Redis instance was created without RediSearch and developers now want vector KNN queries. A team instead suggests: "Add RediSearch dynamically to the existing managed instance without rebuilding." Which risk would the review team identify in the shortcut?
- Unbounded connections can overwhelm database worker memory
- Managed Redis modules cannot be added after instance creation
- Longer client waits do not resolve server-side out-of-memory conditions
- Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning
Explanation
Correct Answer
B:Managed Redis modules cannot be added after instance creation. The proposal Add RediSearch dynamically to the existing managed instance without rebuilding cannot meet the requirement; Provision a compatible Azure Managed Redis instance with RediSearch enabled at creation is the targeted remediation.
Incorrect Answers
A:Unbounded connections can overwhelm database worker memory. The decisive condition here is different: managed Redis modules cannot be added after instance creation.
C:Longer client waits do not resolve server-side out-of-memory conditions. This does not establish the required control: managed Redis modules cannot be added after instance creation.
D:Managed Redis vector indexing requires the managed RediSearch module to be enabled during provisioning. The decisive condition here is different: managed Redis modules cannot be added after instance creation.
Question 305
A small corpus needs exact vector similarity results in Redis and minimizing approximate-index uncertainty is more important than speed. What is the most defensible next technical step?
- Add indexed tenant and timestamp columns alongside an appropriately typed vector column
- Query ORDER BY embedding <=> $query_vector LIMIT 5 using the matching cosine operator class
- Use an HNSW index and claim every result is guaranteed exact
- Use a RediSearch FLAT vector index with the matching distance metric
Explanation
Correct Answer
D:Use a RediSearch FLAT vector index with the matching distance metric. FLAT performs exhaustive comparisons rather than approximate HNSW search. Evidence: the FLAT results match exhaustive reference distance ranking on the test corpus.
Incorrect Answers
A:Add indexed tenant and timestamp columns alongside an appropriately typed vector column. In this question, use a RediSearch FLAT vector index with the matching distance metric.
B:Query ORDER BY embedding <=> $query_vector LIMIT 5 using the matching cosine operator class. This does not establish the required control: use a RediSearch FLAT vector index with the matching distance metric.
C:HNSW is approximate and can trade recall for performance. The decisive condition here is different: use a RediSearch FLAT vector index with the matching distance metric.
Question 306
A small corpus needs exact vector similarity results in Redis and minimizing approximate-index uncertainty is more important than speed. A reviewer recommends: Use a RediSearch FLAT vector index with the matching distance metric. Why is this configuration appropriate for the stated constraint?
- Structured filter fields support selective metadata constraints in vector queries
- Time-to-live bounds the freshness period and reduces repeated upstream queries
- FLAT performs exhaustive comparisons rather than approximate HNSW search
- The pgvector cosine distance operator and index must align with the similarity measure
Explanation
Correct Answer
C:FLAT performs exhaustive comparisons rather than approximate HNSW search. This is the behavior that makes Use a RediSearch FLAT vector index with the matching distance metric appropriate for the given scenario.
Incorrect Answers
A:Structured filter fields support selective metadata constraints in vector queries. This does not establish the required control: FLAT performs exhaustive comparisons rather than approximate HNSW search.
B:Time-to-live bounds the freshness period and reduces repeated upstream queries. The decisive condition here is different: FLAT performs exhaustive comparisons rather than approximate HNSW search.
D:The pgvector cosine distance operator and index must align with the similarity measure. This does not establish the required control: FLAT performs exhaustive comparisons rather than approximate HNSW search.
Question 307
A small corpus needs exact vector similarity results in Redis and minimizing approximate-index uncertainty is more important than speed. A team instead suggests: "Use an HNSW index and claim every result is guaranteed exact." Which risk would the review team identify in the shortcut?
- HNSW is approximate and can trade recall for performance
- FLAT performs exhaustive comparisons rather than approximate HNSW search
- Text sorting is not nearest-neighbor distance ordering
- Persistent stale cache values can survive the source update
Explanation
Correct Answer
A:HNSW is approximate and can trade recall for performance. The proposal Use an HNSW index and claim every result is guaranteed exact cannot meet the requirement; Use a RediSearch FLAT vector index with the matching distance metric is the targeted remediation.
Incorrect Answers
B:FLAT performs exhaustive comparisons rather than approximate HNSW search. In this question, HNSW is approximate and can trade recall for performance.
C:Text sorting is not nearest-neighbor distance ordering. This does not establish the required control: HNSW is approximate and can trade recall for performance.
D:Persistent stale cache values can survive the source update. The decisive condition here is different: HNSW is approximate and can trade recall for performance.
Question 308
A small corpus needs exact vector similarity results in Redis and minimizing approximate-index uncertainty is more important than speed. After the planned remediation, which result should an engineer record after the change?
- The query filters by tenant and date before returning authorized nearest neighbors
- The new instance lists RediSearch and executes a KNN query successfully
- The measured query plan and RUs change after the dataset exceeds the index population threshold
- The FLAT results match exhaustive reference distance ranking on the test corpus
Explanation
Correct Answer
D:The FLAT results match exhaustive reference distance ranking on the test corpus. This directly verifies that the required change, Use a RediSearch FLAT vector index with the matching distance metric, produced the specified outcome.
Incorrect Answers
A:The query filters by tenant and date before returning authorized nearest neighbors. In this question, the FLAT results match exhaustive reference distance ranking on the test corpus.
B:The new instance lists RediSearch and executes a KNN query successfully. This does not establish the required control: the FLAT results match exhaustive reference distance ranking on the test corpus.
C:The measured query plan and RUs change after the dataset exceeds the index population threshold. The decisive condition here is different: the FLAT results match exhaustive reference distance ranking on the test corpus.
Question 309
A large Azure Managed Redis semantic cache needs low-latency approximate nearest-neighbor lookup and metadata filtering. A reviewer recommends: Use an HNSW vector index with appropriate vector dimensions, metric and query filters. Which technical property makes the recommended implementation suitable?
- The index needs an indexed vector expression with known dimensions
- HNSW trades some recall for lower latency using a graph-based index
- Cosmos vector indexes must match the vector path, dimensions and intended similarity function
- RediSearch HNSW supports approximate similarity at scale and can combine metadata predicates
Explanation
Correct Answer
D:RediSearch HNSW supports approximate similarity at scale and can combine metadata predicates. This is the behavior that makes Use an HNSW vector index with appropriate vector dimensions, metric and query filters appropriate for the given scenario.
Incorrect Answers
A:The index needs an indexed vector expression with known dimensions. This does not establish the required control: rediSearch HNSW supports approximate similarity at scale and can combine metadata predicates.
B:HNSW trades some recall for lower latency using a graph-based index. The decisive condition here is different: rediSearch HNSW supports approximate similarity at scale and can combine metadata predicates.
C:Cosmos vector indexes must match the vector path, dimensions and intended similarity function. In this question, rediSearch HNSW supports approximate similarity at scale and can combine metadata predicates.
Question 310
A large Azure Managed Redis semantic cache needs low-latency approximate nearest-neighbor lookup and metadata filtering. A team instead suggests: "Use Redis GET to compute nearest neighbors without building a search index." Why would that proposed shortcut fail?
- HNSW is approximate and can trade recall for performance
- Cosmos flat vector index has a lower maximum dimension than 1536
- RediSearch HNSW supports approximate similarity at scale and can combine metadata predicates
- Key lookup does not rank high-dimensional vectors by similarity
Explanation
Correct Answer
D:Key lookup does not rank high-dimensional vectors by similarity. The proposal Use Redis GET to compute nearest neighbors without building a search index cannot meet the requirement; Use an HNSW vector index with appropriate vector dimensions, metric and query filters is the targeted remediation.
Incorrect Answers
A:HNSW is approximate and can trade recall for performance. The decisive condition here is different: key lookup does not rank high-dimensional vectors by similarity.
B:Cosmos flat vector index has a lower maximum dimension than 1536. In this question, key lookup does not rank high-dimensional vectors by similarity.
C:RediSearch HNSW supports approximate similarity at scale and can combine metadata predicates. This does not establish the required control: key lookup does not rank high-dimensional vectors by similarity.