Quiz 5 Question 13 of 20

A production AI system processes sensitive user financial data through Claude. Security team discovers that user data submitted in one session has appeared in Claude's responses to a different user's session during testing. The architect claims this is impossible because each API call is stateless. Upon investigation, they find that the platform's server-side prompt caching implementation stores assembled prompts (including user data) in a shared Redis cache keyed only by system prompt hash — not by user ID. This causes a cache collision where User B's request matches User A's cached prompt. What is the correct fix?

Select an answer to reveal the explanation.

Motivation