AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Managed databases in the cloud: recovery, replicas and choosing a plan

See how a snapshot plus a log of changes lets you recover a database to any minute, why a read replica can show out-of-date data right after you save, and choose a backup and failover plan from the loss and downtime a business can bear.

A managed database is a database that a cloud provider runs for you: installing, patching, backing up and failing over are handled by the service. That removes a lot of work and creates three decisions you still own: how much data you can afford to lose, how long you can be down, and what your application does about copies that lag behind.

This course models these ideas with small programs you can run in your browser, using Python's built-in database for the first one. They mimic the behaviour of managed services; they are not any provider's product. Check your provider's documentation for exact features, limits and prices. All numbers are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

Some SQL helps (see the SQL course). Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min Free sample 🔒 AiTeky Pass Snapshots, logs and point-in-time recovery Take a snapshot of a small database, keep a log of every change after it, make a destructive mistake, and recover to the minute before the mistake by restoring the snapshot and replaying the log, then work out the data you could lose and the time it takes.
  2. 02 30 min 🔒 AiTeky Pass Replicas and the stale read Add a read replica that copies the primary a moment later, see a user save a change and then not see it, and compare three fixes (read from the primary after writing, wait for the replica, send a version number with the request) by how often users see stale data and how much load stays on the primary.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass On the job: choosing a backup and failover plan An online booking company must decide how much data it can lose and how long it can be down. Put a price on an outage, compare four plans (nightly backup only, point-in-time recovery, recovery plus a standby in the same region, recovery plus a standby in another region) against the targets and the budget, choose, and write the plan.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in