Design Point-in-Time Restore for a Managed Azure SQL Database

Last updated: November 29, 2026

Quick Overview

Design the backup and restore system for a managed relational database service that lets a customer restore any database to any second within the last 35 days, including after the database was deleted.

Microsoft
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
Onsite
System Design
Medium

0

0

0 solved


Design the backup and restore system for a managed relational database service that lets a customer restore any database to any second within the last 35 days, including after the database was deleted.

Azure SQL and similar managed databases advertise point-in-time restore, and storage-focused Microsoft teams use it to test knowledge of logs, snapshots and recovery time. The interviewer looks for full plus differential plus log backup reasoning and clear recovery time math.

What the Interviewer Expects
  • Combines periodic full backups, differential backups and frequent log backups
  • Explains how a restore to time T replays the log
  • Estimates recovery time and how to bound it
  • Stores backups in geo-redundant storage separate from the database
  • Handles restore of a deleted database and retention policy
Key Topics to Cover
Write-ahead log
Full and differential backups
Log replay
Recovery time objective
Geo-redundant storage
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How long does a restore take for a 4 TB database, and how would you shorten it?
  • How do you guarantee the log chain has no gaps?
  • How would geo-restore work if the primary region is down?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Customers choose retention from 7 to 35 days. Restore target is any timestamp in that window to a new database. Recovery point objective: under 10 minutes of data loss for geo-restore, zero for in-reg...

High-Level Design

A backup scheduler per region tracks every database and drives three backup types: full weekly, differential every 12 to 24 hours, and transaction log backups every 5 to 10 minutes. Backups stream...


Submit Your Answer
Markdown supported