AWS Backup · Vault Lock

One policy object — a Backup Plan — that snapshots EBS · EFS, RDS · Aurora, DynamoDB, S3, FSx and Storage Gateway volumes on a schedule, into a vault, with retention. The whole selling point is that you delete the Lambda-and-cron snapshot scripts you wrote per service.

Một đối tượng chính sách duy nhất — Backup Plan — chụp snapshot cho EBS · EFS, RDS · Aurora, DynamoDB, S3, FSx và volume của Storage Gateway theo lịch, đổ vào một vault, kèm thời hạn lưu. Điểm bán hàng của nó là bạn xoá được đống script snapshot chạy bằng Lambda và cron viết riêng cho từng service.

Reach for it / not the right toolKhi nào dùng / khi nào không

Reach for AWS BackupChọn AWS Backup

  • "Backups are handled by six different scripts and nobody knows if they still run" — one plan, one place, one dashboard."Backup đang do sáu script khác nhau lo và không ai biết chúng còn chạy không" — một plan, một chỗ, một dashboard.
  • A retention policy the auditor can read: 35 days hot, then cold, delete at 7 years — declared, not coded.Cần chính sách lưu trữ mà auditor đọc được: 35 ngày nóng, rồi cold, xoá sau 7 năm — khai báo chứ không lập trình.
  • Every account in the Organization must back up the same way → Backup policies pushed from the management account.Mọi account trong Organization phải sao lưu giống nhau → đẩy Backup policy từ management account.
  • Backups must survive a compromised admin or a wiped Region → cross-account copy + Vault Lock.Backup phải sống sót khi admin bị chiếm quyền hoặc mất cả Region → copy cross-account + Vault Lock.
  • New resources should be protected the moment they're tagged, with no ticket to update a list.Tài nguyên mới cần được bảo vệ ngay khi được gắn tag, không cần ticket để cập nhật danh sách.

Not the right toolKhông phải chỗ dùng

  • An RPO in seconds and RTO in minutes — that's replication and warm standby, not backup. See Disaster Recovery.Cần RPO tính bằng giây, RTO tính bằng phút — đó là replication và warm standby, không phải backup. Xem Disaster Recovery.
  • Backing up on-premises servers or a SaaS app — Backup covers AWS resources (plus VMware and a few hybrid cases), not your laptops.Sao lưu máy chủ on-premises hay ứng dụng SaaS — Backup lo tài nguyên AWS (thêm VMware và vài trường hợp hybrid), không lo laptop của bạn.
  • Object-level versioning and undelete inside one bucket — that's S3 Versioning + Object Lock, a cheaper and closer answer.Versioning và khôi phục object trong một bucket — đó là Versioning + Object Lock của S3, rẻ hơn và sát hơn.
  • A service Backup doesn't support — you still own that snapshot job. Check support before you promise "everything is covered".Service mà Backup không hỗ trợ — job snapshot đó vẫn là của bạn. Kiểm tra danh sách hỗ trợ trước khi hứa "mọi thứ đã được lo".

The shape: plan → resources → vaultHình dạng: plan → tài nguyên → vault

Three objects and one arrow between each. The plan is the policy, the assignment is who it applies to, the vault is where the recovery points sit. Everything else on the page is a detail hanging off one of those three. Ba đối tượng và một mũi tên nối giữa chúng. Plan là chính sách, assignment là áp cho ai, vault là nơi các recovery point nằm. Mọi thứ còn lại trên trang này chỉ là chi tiết móc vào một trong ba.

A backup plan on the left holds four settings: frequency, backup window, transition to cold storage and retention period. An arrow leads to the middle panel, where AWS resources are assigned to the plan — EC2 and EBS, S3, RDS and Aurora, DynamoDB, DocumentDB, Neptune, EFS, FSx and Storage Gateway — either directly or by carrying a tag such as backup equals daily. A second arrow leads to a backup vault on the right holding recovery points, wrapped in a Backup Vault Lock that denies deletes and retention edits, even for the root user. Below, a band notes that the plan can also copy each backup to a vault in another Region and to a vault in a separate account through AWS Organizations. 1 · BACKUP PLAN frequency 12h · daily · cron backup window when it may run cold storage never / days / years retention always / days / years 2 · ASSIGN RESOURCES EC2 · EBS S3 RDS · Aurora DynamoDB DocumentDB Neptune EFS FSx Storage GW by ARN, or by tag: backup=daily → auto-enrolled no per-resource list to keep 3 · BACKUP VAULT recovery points ebs · 2026-08-03 rds · 2026-08-03 efs · 2026-08-02 VAULT LOCK · WORM delete → denied retention edit → denied even root cannot delete the same plan can copy each backup onward: cross-Region → vault in another Region · survives Region loss cross-account → vault in a separate account (Organizations) a copy is a new recovery point in the destination vault — lock that vault too

Read it right to left when you're designing: decide what the vault must guarantee, then work back to the plan that fills it. The lock is a property of the vault, not of the plan or of any single backup.

Khi thiết kế thì đọc từ phải sang trái: quyết định vault phải bảo đảm điều gì, rồi lần ngược về plan đổ dữ liệu vào nó. Khoá là thuộc tính của vault, không phải của plan hay của từng bản backup.

What a Backup Plan actually holdsBackup Plan thực sự chứa gì

A plan is a list of rules. Each rule names a target vault and answers four questions. Copy rules and a Region hang off the same rule — that's why cross-Region backup is a checkbox, not a project. Plan là một danh sách rule. Mỗi rule chỉ định một vault đích và trả lời bốn câu hỏi. Copy rule và Region cũng gắn vào chính rule đó — nên backup cross-Region chỉ là một ô tick, không phải một dự án.

FrequencyTần suất every 12 hours · daily · weekly · monthly · or a cron expressionmỗi 12 giờ · ngày · tuần · tháng · hoặc biểu thức cron
Backup windowCửa sổ chạy backup start time + how long the job may wait to start, and how long it may rungiờ bắt đầu + job được chờ bao lâu để khởi động và được chạy bao lâu
Transition to cold storageChuyển sang cold storage never / days / weeks / months / years · cheaper tier, slower restorekhông bao giờ / ngày / tuần / tháng / năm · tầng rẻ hơn, khôi phục chậm hơn
Retention periodThời hạn lưu always / days / weeks / months / years · "always" means it never expiresluôn luôn / ngày / tuần / tháng / năm · "luôn luôn" nghĩa là không bao giờ hết hạn
Cold storage has arithmeticCold storage có ràng buộc số học Cold storage is billed for a minimum of 90 days, and the transition must happen at least 30 days before the retention expiry — so a plan can't say "cold after 30 days, delete at 45". The console silently rejects it and you lose an afternoon. Cold storage also isn't available for every resource type. Cold storage tính tiền tối thiểu 90 ngày, và việc chuyển tầng phải xảy ra ít nhất 30 ngày trước thời điểm hết hạn lưu — nên plan không thể nói "cold sau 30 ngày, xoá lúc 45". Console từ chối lặng lẽ và bạn mất cả buổi chiều. Cold storage cũng không có cho mọi loại tài nguyên.

Assignment is a tag query, not a listGán tài nguyên là truy vấn tag, không phải danh sách

You can pin resources by ARN, but the useful mode is tag-based: a resource is enrolled because it carries backup=daily. New volume, new database, new file system — protected the moment it's tagged, which is why the tagging standard matters more than the backup config. See Cost Allocation Tags. Bạn có thể chỉ định tài nguyên theo ARN, nhưng cách hữu ích là theo tag: tài nguyên được nhận vào vì nó mang backup=daily. Volume mới, database mới, file system mới — được bảo vệ ngay khi có tag, nên chuẩn đặt tag còn quan trọng hơn cả cấu hình backup. Xem Cost Allocation Tags.

  • On-demand backups exist too — one click, its own retention, straight into a vault. Use them before a risky migration; don't build a habit on them. Cũng có backup theo yêu cầu — một cú click, thời hạn lưu riêng, đi thẳng vào vault. Dùng trước một đợt migration rủi ro; đừng biến nó thành thói quen.
  • PITR (point-in-time recovery) is separate from scheduled snapshots — continuous backup lets you restore to any second in a rolling window (up to 35 days) for the services that support it: RDS · Aurora, DynamoDB, S3. A daily snapshot plan gives you an RPO of a day; PITR gives you seconds. PITR (khôi phục về một thời điểm) tách biệt với snapshot theo lịch — continuous backup cho phép khôi phục về bất kỳ giây nào trong cửa sổ trượt (tối đa 35 ngày) với các service hỗ trợ: RDS · Aurora, DynamoDB, S3. Plan snapshot hằng ngày cho RPO một ngày; PITR cho RPO tính bằng giây.
  • Organizations backup policies push a plan from the management account down an OU, the same way an SCP travels. That's the "standardise backups across 200 accounts" answer. Backup policy của Organizations đẩy một plan từ management account xuống một OU, y như cách SCP lan xuống. Đó là đáp án cho "chuẩn hoá backup trên 200 account".
  • Backup Audit Manager is the reporting half: frameworks and controls that flag "this resource is in no plan" or "retention is under 90 days", with a scheduled report. Reach for it when the question says prove compliance rather than enforce it. Backup Audit Manager là nửa báo cáo: framework và control đánh dấu "tài nguyên này không nằm trong plan nào" hay "thời hạn lưu dưới 90 ngày", kèm báo cáo theo lịch. Dùng khi đề yêu cầu chứng minh tuân thủ chứ không phải cưỡng chế nó.

Backup Vault Lock — WORM, and root doesn't helpBackup Vault Lock — WORM, và root cũng bó tay

A lock on the vault puts every recovery point in it into a Write Once Read Many state. It is not an IAM policy you can out-vote with a bigger principal — it's an additional layer that sits under IAM. Deletes are refused; so are updates that shorten or alter retention. Khoá đặt lên vault đưa mọi recovery point trong đó vào trạng thái ghi một lần, đọc nhiều lần. Nó không phải policy IAM mà bạn có thể lấn át bằng một principal to hơn — nó là lớp bảo vệ nằm dưới IAM. Lệnh xoá bị từ chối; sửa đổi làm rút ngắn hay thay đổi thời hạn lưu cũng vậy.

Governance modeChế độ governance Compliance modeChế độ compliance
Can the lock be removed?Gỡ khoá được không? yes — by a principal holding backup:DeleteBackupVaultLockConfigurationđược — bởi principal có quyền backup:DeleteBackupVaultLockConfiguration no, once the cooling-off period passes — not by an admin, not by the root user, not by AWS Supportkhông, khi hết thời gian ân hạn — admin không gỡ được, root user cũng không, AWS Support cũng không
Cooling-off periodThời gian ân hạn not applicable — it's reversible by designkhông áp dụng — nó vốn có thể đảo ngược you set it (minimum 3 days); until it expires the lock can still be cancelled — that's your only chance to undo a typobạn tự đặt (tối thiểu 3 ngày); trước khi hết hạn vẫn huỷ được khoá — đó là cơ hội duy nhất để sửa một lỗi gõ nhầm
What it's forDùng để làm gì guardrail against accident — stops the wrong console click, keeps a break-glass pathrào chắn chống tai nạn — chặn cú click nhầm trong console, vẫn giữ đường thoát hiểm defence against malice and regulators — ransomware, a compromised admin, SEC 17a-4 style retentionphòng thủ trước ý đồ xấu và cơ quan quản lý — ransomware, admin bị chiếm quyền, kiểu lưu trữ SEC 17a-4
Retention floor / ceilingSàn / trần thời hạn lưu both enforced — a backup job whose retention falls outside MinRetentionDays … MaxRetentionDays failscả hai đều được cưỡng chế — job backup có thời hạn lưu ngoài khoảng MinRetentionDays … MaxRetentionDays sẽ thất bại same, and now unchangeable — pick the numbers as if you can never touch them again, because you can'tgiống vậy, nhưng không sửa được nữa — hãy chọn con số như thể không bao giờ đụng lại được, vì đúng là vậy
Compliance mode is a one-way doorCompliance mode là cánh cửa một chiều Once locked in compliance mode, you cannot delete the vault, cannot delete a recovery point before its retention expires, and cannot shorten retention. You will keep paying for that storage until the last backup expires on its own schedule. Test the whole thing in governance mode first, then re-create it locked. Một khi đã khoá ở compliance mode, bạn không xoá được vault, không xoá được recovery point trước khi hết thời hạn, và không rút ngắn được thời hạn. Bạn sẽ trả tiền lưu trữ cho tới khi bản backup cuối cùng tự hết hạn. Hãy thử toàn bộ ở governance mode trước, rồi tạo lại với khoá thật.
The ransomware pattern, in fullMẫu chống ransomware, đầy đủ Backup plan in the workload account → cross-account copy into a vault in a dedicated, locked-down backup account → Vault Lock in compliance mode on that vault → nobody in the workload account, up to and including its root user, can reach the copies. Add a cross-Region copy rule and the same set survives losing a Region. This combination is the intended answer whenever a question mentions both "malicious insider" and "backups". Backup plan ở account chạy workload → copy cross-account sang vault trong một account backup riêng, siết chặt → Vault Lock ở compliance mode trên vault đó → không ai trong account workload, kể cả root user của nó, chạm được vào bản sao. Thêm copy rule cross-Region thì bộ dữ liệu này còn sống sót khi mất cả một Region. Tổ hợp này là đáp án dự kiến mỗi khi đề nhắc cả "người trong nội bộ có ý đồ xấu" lẫn "backup".

Things that catch you outNhững chỗ dễ vấp

  • A backup you have never restored is a rumour. Backup can run restore testing plans on a schedule — restore into a sandbox, validate, tear down — and that's what turns "we have backups" into a measured RTO. Nothing else in the service proves recoverability. Bản backup chưa từng khôi phục chỉ là tin đồn. Backup có thể chạy plan restore testing theo lịch — khôi phục vào môi trường sandbox, kiểm tra, rồi dọn đi — và đó là thứ biến "chúng ta có backup" thành một RTO đo được. Không có gì khác trong service chứng minh được khả năng khôi phục.
  • Cross-account copy needs both ends to agree. The organization must have the backup-policy feature enabled, and the destination vault's access policy must allow the source account to copy into it. Missing that policy is the usual reason a copy job fails with an unhelpful message. Copy cross-account cần cả hai đầu đồng ý. Organization phải bật tính năng backup policy, và access policy của vault đích phải cho phép account nguồn copy vào. Thiếu policy đó là lý do quen thuộc khiến job copy lỗi kèm thông báo khó hiểu.
  • KMS keys travel badly. A backup encrypted with a customer-managed key in one Region or account is useless in the destination unless the key policy grants the destination access — for cross-Region copies you need a key in the destination Region. Some services also keep their own encryption rather than the vault's key, so don't assume one key covers everything. See KMS. Khoá KMS không đi xa được. Bản backup mã hoá bằng customer-managed key ở một Region hay account sẽ vô dụng ở đích nếu key policy không cấp quyền cho đích — với copy cross-Region bạn cần một khoá ở Region đích. Một số service còn giữ cơ chế mã hoá riêng thay vì dùng khoá của vault, nên đừng cho rằng một khoá lo hết. Xem KMS.
  • A tag-based assignment protects nothing until things are tagged. The plan will happily run and back up zero resources, and the dashboard looks green. Pair the plan with an AWS Config rule that flags untagged resources, or you'll discover the gap during the incident. Gán theo tag không bảo vệ gì cho tới khi tài nguyên có tag. Plan vẫn chạy vui vẻ và sao lưu đúng không tài nguyên nào, dashboard vẫn xanh. Hãy ghép plan với một rule AWS Config đánh dấu tài nguyên thiếu tag, nếu không bạn sẽ phát hiện lỗ hổng ngay giữa sự cố.
  • Backups are not free and retention is a cost lever. "Retention: always" on an hourly plan across a fleet is how a backup bill quietly passes the workload's bill. Cold storage and a real expiry are the fix, not a smaller vault. Backup không miễn phí và thời hạn lưu là đòn bẩy chi phí. "Retention: always" trên một plan chạy hằng giờ cho cả fleet là cách hoá đơn backup lặng lẽ vượt hoá đơn workload. Cách sửa là cold storage và một mốc hết hạn thật, không phải vault nhỏ hơn.
  • Backup is not DR by itself. It gives you durable, immutable copies with an RPO of hours and an RTO of "however long a restore takes". If the question demands minutes, you're in pilot light / warm standby territory — Disaster Recovery. Riêng Backup không phải là DR. Nó cho bạn bản sao bền vững, bất biến, với RPO tính bằng giờ và RTO là "bao lâu tuỳ thời gian khôi phục". Nếu đề đòi vài phút thì bạn đang ở địa hạt pilot light / warm standby — Disaster Recovery.

Exam reflexesPhản xạ khi thi

The question says…Đề nói… AnswerTrả lời
"Centrally manage and automate backups across many services and accounts, without custom scripts""Quản lý tập trung và tự động hoá backup trên nhiều service và nhiều account, không dùng script tự viết" AWS Backup + a Backup Plan, pushed as an Organizations backup policyAWS Backup + một Backup Plan, đẩy xuống bằng backup policy của Organizations
"Backups must be immutable — even an administrator or the root user must not be able to delete them""Backup phải bất biến — kể cả admin hay root user cũng không được xoá" Backup Vault Lock in compliance mode — WORM on the vaultBackup Vault Lock ở compliance mode — WORM trên vault
"Protect against ransomware encrypting the production account, including its backups""Chống ransomware mã hoá account production, kể cả backup của nó" Cross-account copy to an isolated backup account, vault locked thereCopy cross-account sang một account backup tách biệt, vault ở đó được khoá
"New EBS volumes and RDS instances must be protected automatically as they're created""Volume EBS và instance RDS mới phải được bảo vệ tự động ngay khi tạo" Tag-based resource assignment on the plan — not a list of ARNsGán tài nguyên theo tag trên plan — không phải danh sách ARN
"Restore the database to any second in the last few weeks""Khôi phục database về bất kỳ giây nào trong vài tuần gần đây" PITR / continuous backup, not a nightly snapshot planPITR / continuous backup, không phải plan snapshot hằng đêm
"Prove to the auditor that every production resource is covered and retained ≥ 7 years""Chứng minh với auditor rằng mọi tài nguyên production đều được sao lưu và giữ ≥ 7 năm" Backup Audit Manager frameworks + scheduled reports — Vault Lock enforces, Audit Manager evidencesFramework của Backup Audit Manager + báo cáo theo lịch — Vault Lock cưỡng chế, Audit Manager chứng minh