M9-031M9: Senior ML & AI System DesignRisk, Pricing & Large-Scale RetrievalHard
⚡Flashcard Drill➔Mastery:
Design a Glean-Style ACL-Aware Enterprise Permissioned Search Architecture
🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
📐 Mathematical Definition
⚡ One-Sentence Core Answer
Flatten transitive identity groups across SaaS apps, sync permission deltas via sub-second webhooks, and push RBAC bitmaps into hybrid pre-filtering to guarantee zero cross-ACL leakage.
📌 Key Takeaways
- •L1 Zero-Leak Invariant: retrieved chunks, snippets, and LLM citations must never surface unauthorized documents even briefly
- •L2 Decoupled ACL Index: separate heavy document embeddings from lightweight flattened
Principal_IDACL tables so group edits don't re-embed documents - •L2 Pre-Filtered Hybrid Search: intersect Roaring Bitmap user principals inside HNSW traversal rather than post-filtering Top-K
- •L3 Indirection & Double-Check: use group-indirection tokens for million-doc folder flips and verify strict source ACLs on final Top-10 candidates
📐 Mathematical Derivations
With transitive principal set , inline bitmap pre-filtering visits only nodes where ; when selectivity , fall back to inverted-index-first exact scan.
🏭 Production Trade-offs
1) Combining fast local bitmap pre-filtering with live source-API verification on Top-10 candidates balances speed and revocation freshness; 2) Isolate strictly private silos (Mail/DM) in user-keyed shards.
⚠️ Common Interview Pitfalls
- ✕Applying post-filtering after Top-K ANN retrieval, returning zero results when top hits belong to restricted exec folders
- ✕Sharing a global semantic cache across users without keying cache entries on exact ACL principal hashes
🎯 Interviewer Follow-up Inquiries
- ?How do you revoke access to a 500K-doc shared drive within 1 second without re-indexing 500K vector rows?
- ?How do you maintain high-precision identity resolution across heterogeneous SaaS accounts (Okta, Slack, Jira)?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
📚