Design a caching model that respects freshness, privacy, and correctness.

Instruction: Explain how you would build caching without undermining accuracy or privacy. At 10:00 U can read document D and a private answer is cached. At 10:01 the grant is revoked; at 10:02 the permission service is unavailable. Cache TTL is one hour. The contract requires current permission for every disclosure. Serve, regenerate, or refuse?

Context: Assesses whether the candidate can design a practical architecture and explain the main tradeoffs. Explain how you would build caching without undermining accuracy or privacy.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

I would cache only where the validity rules are explicit. Freshness defines how long the result stays usable. Privacy defines which identities may reuse it. Correctness defines what surrounding context must still match for reuse to be safe...

Your preparation path

Work through these questions in order. Read the answer aloud, then explain it in your own words.

Related Questions