Safety, Security & Responsible AI·Question 44 of 70Advanced

A customer reports that another tenant's data appeared in their agent's response. Walk me through the next 72 hours.

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Contain narrowly, scope precisely, then disclose. Scoping is the hard part and it is decided by logging you did months ago.

Full worked answer

Contain narrowly, scope precisely, then disclose. Scoping is the hard part and it is decided by logging you did months ago.

First hour. Believe the report. Preserve evidence before it rotates: the trace, request IDs, retrieved document IDs, prompt hash, model version, cache state. Reproduce in a replica, not in production, because reproducing in prod destroys the state you need. Contain by disabling the narrowest thing that stops the bleeding: feature-flag the retrieval path off or degrade to no-context answers, rather than taking the product down. Open an incident with legal in the room from the start, because the clock may already be running.

Scoping. This is where you find out whether your logs were designed for this. You need, per request: tenant ID, retrieved doc IDs, cache key, and principal. With those you replay the log window and answer both directions: which requests returned foreign data, and whose data was exposed to whom. Without them you cannot bound the incident, and an unbounded incident is disclosed as worst-case. That is the postmortem finding, and it is worth stating even before you know the root cause.

Root causes, ranked by how often they are the answer. Cache key missing the tenant ID, and semantic caches are the classic because near-miss matching crosses tenants by design. ACL filter applied at ingest instead of query. A shared embedding namespace with a post-filter that a code path skipped. A background job or eval harness running under a superuser service account. A prompt-template bug concatenating the wrong context. Note that none of these are model failures, which is the useful observation: the model faithfully summarised a document it should never have been handed. Authorisation had leaked into the application layer instead of living in the datastore.

Fix and verify. Fix, then write the test that would have caught it: an automated cross-tenant probe in CI, plus a permanent canary tenant whose data must never appear anywhere.

Disclosure. Under GDPR, personal-data breaches are notifiable to the supervisory authority within 72 hours where the risk threshold is met, and affected tenants have contractual notification terms. Do not say "no data was leaked" before scoping completes; say what you know, when you will know more, and hold to it.

What a good answer covers

  • Contain narrowly, scope precisely, then disclose
  • Scoping is the hard part and it is decided by logging you did months ago
  • Preserve evidence before it rotates
  • Reproduce in a replica, not in production, because reproducing in prod destroys the state you need
  • Contain by disabling the narrowest thing that stops the bleeding

Key terms: First hour · Scoping · Fix and verify · Disclosure

Interviewer follow-ups to expect

  1. Suppose you find your logs do not record tenant ID per retrieval. What do you tell the customer, and how do you bound the incident?

  2. Why are semantic caches particularly dangerous here compared to exact-match caches?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep