Module 14 · Project 14 · Plan and Test Disaster Recovery · Lesson 45 of 48

Build it: backups you've actually restored

Set up backups that attackers and mistakes can't reach, write a DR runbook, run a game day, and test yourself.

In this lesson · about 40 minutes

  • Build Project 14 in stages
  • Run and time a real restore
  • Explain DR in interview language

Backups that survive the disaster

  • The 3-2-1 rule: 3 copies of the data, on 2 kinds of storage, with 1 somewhere else (another region or account).
  • Point-in-time recovery: RDS keeps transaction logs so you can restore to any second in the last 1–35 days. That's how you undo "the migration at 10:03 deleted rows": restore to 10:02.
  • Immutable backups: AWS Backup Vault Lock or S3 Object Lock means nobody, not even an admin with stolen keys, can delete backups before they expire. This is your ransomware defense.
  • A separate account: copy backups to a dedicated backup account with very few people able to log in.
  • Everything else as code: Terraform, Helm charts and the GitOps repo let you rebuild the infrastructure in a new region. Data is the hard part; the rest should be one pipeline run.

An untested backup is a hope

Backups fail silently: wrong permissions, missing tables, a restore that takes 9 hours when you planned for 1. Test restores on a schedule, automatically if you can: restore last night's snapshot to a temporary instance every week, run a check query, record the time, delete it.

The runbook and the game day

Write a DR runbook: who decides to declare a disaster, the exact steps and commands, how to switch DNS, how to check it worked, and how to fail back later. Then run a game day: on a planned date, actually fail over staging (or production, once you're confident), follow only the runbook, and time every step. Each game day finds gaps; fix them in the runbook.

Build it in stages

  1. Backups: RDS automated backups with 14-day point-in-time recovery; AWS Backup plans for RDS, EBS and S3 with cross-region and cross-account copies and Vault Lock.
  2. Code: make your Terraform region a variable, and prove you can terraform apply the whole stack in a second region.
  3. Pilot light: an RDS cross-region read replica (or Aurora Global Database) in the DR region, and Route 53 failover records with health checks.
  4. Restore test: a scheduled job that restores the latest snapshot, checks row counts and records the time.
  5. Game day: fail over staging using only the runbook. Write down the real RPO and RTO you achieved.

Hands-on lab (simulated terminal)

Lab: undo a bad migration with point-in-time recovery

At 10:03 a migration deleted most rows in the notes table on notes-prod. You have the AWS CLI with admin access to the practice account.

Step 1 of 4. Type each command and press Enter. Nothing runs on your computer.

Lab: undo a bad migration with point-in-time recovery

1. Check the latest time you can restore notes-prod to.

you@laptop:~$

Decision scenario

Ransomware on a Saturday

You're on call for the notes app.

At 06:10 Saturday, monitoring shows the API failing. Logging in, you find the production database encrypted and a ransom note. CloudTrail shows an old CI access key was used from an unknown IP at 05:40. It also tried to delete backups.

What do you recommend?

0 of 3 options explored. Try the others to see how each would play out.

Guided dialogue

Mock interview: disaster recovery

0 of 3 answered

I

Three common questions.

I

What's the difference between RPO and RTO?

Flashcards

Project 14 flashcards

0 of 6 known

Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.

6 left in the deck

Practice exam

Project 14 practice test

Eight questions, 10 minutes.

  • 8 questions · 10 minutes
  • No feedback until you submit. Flag questions to come back to them.
  • Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.

Write the 'Disaster recovery' section for your project.

Consider these questions and write down your thoughts. What you write stays on this device.

Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.