24. Where should tenant isolation be enforced?
- Only in the UI
- Only in the prompt
- In the database (row-level security, collections or namespaces), tested automatically
- Nowhere
Show answer
Answer: In the database (row-level security, collections or namespaces), tested automatically
Isolation must hold even if application code or prompts are wrong.
Lesson: Security and Multi-Tenancy
25. How should you switch to a new embedding model?
- Replace the model and keep old vectors
- Mix old and new vectors in the same index
- Build a new index, re-embed everything, compare, then switch with a rollback option
- Delete the sources
Show answer
Answer: Build a new index, re-embed everything, compare, then switch with a rollback option
Different models produce incompatible spaces.
Lesson: Backups, Migrations and Re-Embedding