Skip to main content
InterviewHubPRO
Section Overview
Q45

Question 45 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

90%
Vector DBs & RAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

Vector Database Disaster Recovery, Backup, and Snapshotting.

senior LevelMost AskedDatabases & SQL

In Simple Words: Re-generating millions of vector embeddings during a disaster takes days and thousands of dollars in LLM API fees:

  • Write-Ahead Logging (WAL): All vector insertions, updates, and deletes are committed to an immutable append-only disk log before updating in-memory HNSW graphs.
  • Automated S3/GCS Snapshots: Periodic point-in-time snapshots of index files and WAL segments uploaded to cloud object storage.
  • Recovery SLA: On catastrophic node failure, the database loads the latest snapshot from S3 and replays remaining WAL delta records, restoring full cluster read/write capability in minutes without re-embedding.