Question 210
A semantic Redis cache reuses a sensitive answer between different user roles because its similarity search ignores access context. What should the engineer change?
Explanation
Correct Answer
High vector similarity does not justify sharing restricted content across principals.
Incorrect Answers
Include an authorized tenant identifier in cache-key construction and enforce isolation: include an authorized tenant identifier in cache-key construction and enforce isolation: key namespacing prevents collisions between distinct customer data scopes.
Version cache entries by source revision and invalidate entries after content updates: version cache entries by source revision and invalidate entries after content updates: retrieval relevance cannot compensate for obsolete underlying evidence; Filter semantic cache results by user or tenant authorization metadata before reuse.
Use embedding-based similarity lookup in a semantic Redis cache with relevance thresholds: use embedding-based similarity lookup in a semantic Redis cache with relevance thresholds: semantic caching compares meaning-based vectors rather than requiring byte-identical prompts.





Developing AI Cloud Solutions on Azure (AI-200) Practice Tests