Question 1
An invoice leak is traced to a shared cache. Administrators may read invoices only within their own tenant, and invoice numbers can repeat across tenants. Database queries use the tenant from the validated session. Cache keys contain only invoice_number, however, and hits bypass access checks. Where must the tenant boundary be restored while retaining caching?
Show answer & explanation
Correct answer: C - Include the authenticated tenant in cache keys and access checks.