About eight years ago, when I was still a QA, Microsoft Azure “lost” our primary database. Without it, we were basically out of business - it was the main source of truth for, well, almost everything. I don’t remember exactly what the database held anymore, but I do remember the chaos that day. And the stress. A lot of it.
Today, I saw a tweet about how the Korean government had all its data in a single location, with no backups.
It reminded me: we all know this lesson, but we keep relearning it the hard way.
I’m sure you’ve lost a phone before and suddenly realized half your photos were gone because you didn’t have a backup. I have too. Since then, I’ve synced everything to Google - yes, there’s a privacy tradeoff, but that’s not the point here.
The point is this: if you’re building a service someone depends on, you want backups. Period.
And you also want to protect your data from accidental deletion. I learned that the hard way too - I once deleted my Amplify sandbox for oneiras.com, not realizing it would also wipe the DynamoDB table storing my dreams. When I recreated the sandbox and the login screen told me “account doesn’t exist,” that was my “oh no” moment.
So, let’s talk about how not to repeat that mistake.
1. Turn On Deletion Protection
Start simple. Turn on deletion protection (sometimes called “termination protection”).
If you use the AWS console, go to DynamoDB → Tables, select your table, and choose Actions → Turn On Deletion Protection.
If you manage infrastructure as code, just Google “DynamoDB deletion protection” along with your tool name (Terraform, CDK, etc.). Then actually do it.
The best part? It costs nothing. But it could save you a lot of gray hair later.
2. Enable Point-in-Time Recovery (PITR)
Even with deletion protection, things can go wrong. Maybe you accidentally delete the wrong database (it happens), or your protection gets overridden.
That’s where Point-in-Time Recovery (PITR) comes in. It automatically backs up your data, so you can restore it to any second in the past 35 days.
To enable it, go to DynamoDB → Tables → Actions → Update Settings → Backups, then toggle on Point-in-Time Recovery.
It costs around $0.20 per GB/month according to AWS pricing. The bigger your table and indexes, the more you’ll pay - but that cost is nothing compared to losing production data.
Backups aren’t glamorous, but neither is explaining to your boss why you lost everything.
3. Create a Cross-Region Replica
Backups are great, but restores take time. And sometimes, entire regions go down. (Yes, it happens. I’ve seen it.)
Each AWS region has multiple availability zones - think of them as data centers within driving distance - and DynamoDB automatically replicates across those behind the scenes. That’s usually enough.
But “usually” isn’t “always.” I’ve seen regions go dark due to bad code pushes, DNS issues, or worse. That’s why you should create a replica in another region.
For my team, we operate mainly in us-west-2 (PDX) and replicate to us-east-1 (IAD).
To set that up: DynamoDB → Tables → Actions → Create Replica, choose your region and consistency, and hit Create.
It’s not free, but it’s worth it. Here’s the pricing if you want the details.
Replication is your Plan B for when “that’ll never happen” inevitably does.
4. Learn from the Pros (Even When You Don’t Agree)
Before any new AWS service launches globally, it has to pass an Operational Readiness Review (ORR) - a checklist of 100+ questions covering alarms, throttling, backups, security, and more.
I don’t agree with everything on that list, but the backup questions? Absolutely essential.
These steps - deletion protection, PITR, cross-region replication - are all on that checklist. And for good reason.
They’re easy to set up, cheap to maintain, and might just save your job someday.
Final Thoughts
If you’re running anything that stores user data, take an hour today to protect it.
Turn on deletion protection. Enable PITR. Add a replica.
Because if you don’t have a backup, it’s not if you’ll need one - it’s when.
(And yes, I still use Google Photos to back up my pictures, so at least my travel photos are safe.)
Have you ever lost data because you didn’t have a backup? I’d love to hear your story - misery loves company.
Cheers!
Evgeny Urubkov (@codevev)