Replication & global scopeReplication & phạm vi global

"Global", "replica", "multi-Region" — the same words mean different machines in different services. Before picking an answer, pin down four things: what scope the resource lives in, who can write, is the copy synchronous, and who presses the failover button. Most wrong options get one of those four wrong.

"Global", "replica", "multi-Region" — cùng một chữ nhưng mỗi service là một cỗ máy khác nhau. Trước khi chọn đáp án, chốt bốn điều: tài nguyên nằm ở phạm vi nào, ai được ghi, bản sao có đồng bộ không, và ai bấm nút failover. Phần lớn phương án sai là sai một trong bốn điều đó.

At a glanceNhìn một hình

Summary: global services above two Regions; for each data service, how Region A copies to Region B, how fast, and what Region B can do — only DynamoDB global tables accept writes in both; everything else is promoted by you GLOBAL Route 53 health check → failover CloudFront cert must be in us-east-1 IAM · Organizations one copy, every Region Global Accelerator moves users, not data REGION A · primary inside a Region: sync, RPO 0 (Multi-AZ) REGION B · DR / far reads you promote it — never automatic ACROSS · async RPO > 0 DynamoDB global table writes here replica writes here too — multi-writer ~1 s · last writer wins MRSC: sync · RPO 0 Aurora Global Database 1 writer secondary · read-only ≤ 10 Regions · promote in minutes storage-level · ~1 s switchover = RPO 0 ElastiCache Global Datastore secondary · read-only ≤ 2 Regions · manual promote < 1 s same account only RDS Multi-AZ = sync, in-Region read replica promote = standalone, new endpoint replays binlog / WAL lag grows with writes S3 bucket versioning on bucket · writable old objects → Batch Replication async · RTC ≤ 15 min new objects only EFS Standard = multi-AZ replica read-only until you delete replication ~15 min RPO EBS snapshot · AMI zonal volume copy new AMI ID · re-encrypt with key B copy on schedule RPO = interval KMS key · secret keys are Regional replica Parameter Store: no replication mrk- · replica secret DR = two steps: make Region B writable (promote / switchover) + move users (Route 53 / Global Accelerator) green = you get it for free · orange = limit or manual step

Top band: truly global, nothing to copy. Each row below: how Region A copies to Region B, how fast, and what Region B can do with it. Only the first row accepts writes on both sides; every other Region B copy waits for you to promote it.

Dải trên: global thật, không cần sao chép. Mỗi hàng bên dưới: Region A sao chép sang Region B thế nào, nhanh cỡ nào, và Region B làm được gì với nó. Chỉ hàng đầu tiên nhận ghi ở cả hai phía; mọi bản sao khác ở Region B đều chờ bạn promote.

Really globalGlobal thật

  • IAM users, roles, policies — one copy, every Region.IAM user, role, policy — một bản, mọi Region.
  • Route 53 zones and health checks, CloudFront distributions.Route 53 zone và health check, CloudFront distribution.
  • Organizations, SCPs, Global Accelerator, Shield Advanced subscription.Organizations, SCP, Global Accelerator, gói Shield Advanced.
  • The S3 bucket name — the namespace is global.Tên S3 bucket — namespace là global.

Looks global, isn'tTrông global, nhưng không

  • The S3 bucket itself — the console says "Global", the data sits in one Region.Bản thân S3 bucket — console ghi "Global", dữ liệu nằm ở một Region.
  • KMS keys, AMIs, snapshots, ACM certificates, Secrets, Parameter Store.KMS key, AMI, snapshot, ACM certificate, Secret, Parameter Store.
  • Aurora "Global" Database — one writer Region, not global writes.Aurora "Global" Database — một Region ghi, không phải ghi toàn cầu.
  • Service quotas — per Region; the DR Region starts at default limits.Service quota — theo Region; Region DR bắt đầu ở mức mặc định.

1 · Three scopes: global, Regional, zonal1 · Ba phạm vi: global, Regional, zonal

The scope tells you what survives what. A zonal resource dies with its AZ — spreading it is your job. A Regional service is already spread across AZs for you, but stops at the Region edge. A global service has one control plane and no Region picker. Phạm vi cho biết cái gì sống sót qua cái gì. Tài nguyên zonal chết cùng AZ của nó — rải nó ra là việc của bạn. Service Regional đã được rải qua các AZ sẵn, nhưng dừng ở biên Region. Service global có một control plane và không có ô chọn Region.

Nested scopes: global services such as IAM, Route 53 and CloudFront wrap Regional services such as S3 buckets, DynamoDB, KMS keys and AMIs, which wrap zonal resources such as EC2 instances, EBS volumes, subnets and NAT gateways GLOBAL one control plane IAM · STS* Route 53 CloudFront WAF (CloudFront) Organizations · SCP Global Accelerator Shield Advanced S3 bucket NAMES * STS also has Regional endpoints REGIONAL spread over ≥ 3 AZs for you S3 buckets (the data) DynamoDB tables SQS · SNS · Lambda VPC · security groups EFS (Standard) · ELB KMS keys AMIs · EBS snapshots ACM certificates Secrets · Parameter Store service quotas copy to another Region = your job ZONAL dies with its AZ EC2 instance EBS volume subnet · NAT gateway RDS single-AZ instance EFS One Zone a cache node spread across AZs = your job

Read it outside-in as "who handles the spreading": AWS spreads global and Regional things inside their boundary; you spread zonal things across AZs, and Regional things across Regions.

Đọc từ ngoài vào như "ai lo việc rải ra": AWS rải thứ global và Regional bên trong biên của nó; bạn rải thứ zonal qua các AZ, và thứ Regional qua các Region.

Global, but anchored in us-east-1Global, nhưng neo ở us-east-1

Things that must be created or watched in us-east-1: ACM certificates for CloudFront, Lambda@Edge functions, WAF web ACLs for CloudFront, billing metrics and alarms, Route 53 health check metrics, IAM and Organizations API events, global Health events, Trusted Advisor events us-east-1 ACM cert for CloudFronta cert in any other Region won't attach Lambda@Edge functionauthored here, replicated to edges WAF web ACL for CloudFrontscope CLOUDFRONT → API in us-east-1 Billing metrics · alarmsEstimatedCharges lives only here Route 53 health-check metricsalarm on them from us-east-1 IAM · Organizations eventsEventBridge rule must live here global Health eventsnon-Regional issues land here Trusted Advisor eventsEventBridge in us-east-1 only

Pattern: a global service still needs a home Region for its control plane, and AWS picked N. Virginia. Whenever a question pairs "global service" with "not working / not receiving", check whether the thing was built in us-east-1.

Quy luật: service global vẫn cần một Region "nhà" cho control plane, và AWS chọn N. Virginia. Mỗi khi đề ghép "service global" với "không chạy / không nhận được", kiểm tra xem thứ đó có được tạo ở us-east-1 không.

2 · The "Global ___" naming trap2 · Cái bẫy tên "Global ___"

Five features carry "global" in their name; only one of them lets every Region write. Draw the W/R pattern and the confusion disappears. Năm tính năng có chữ "global" trong tên; chỉ một cái cho phép mọi Region ghi. Vẽ ra mẫu W/R là hết nhầm.

Which Regions can write: DynamoDB global tables in eventual mode write everywhere; in strong mode three Regions write synchronously, optionally with a witness; Aurora Global Database, DocumentDB global clusters and ElastiCache Global Datastore have one writer and read-only secondaries; S3 cross-Region replication links two independent writable buckets; Global Accelerator moves packets, not data FEATURE REGION A · B · C WHAT IT MEANS DynamoDB global tables MREC (default) W W W every Region writes · async ~1 s conflict → last writer wins DynamoDB global tables MRSC (strong) W W Wor witness exactly 3 Regions · sync · RPO 0 slower writes, no TTL / txns Aurora Global Database MySQL · PostgreSQL W R R 1 writer · ≤ 10 secondaries storage-level copy, lag ~1 s DocumentDB global cluster same design as Aurora W R R 1 writer · ≤ 10 secondaries promote a secondary to fail over ElastiCache Global Datastore Valkey · Redis OSS W R R 1 writer · ≤ 2 secondaries manual promote · same account S3 Cross-Region Replication bucket → bucket W W — two independent buckets one-way unless you add B → A Global Accelerator and Route 53, CloudFront no data copied at all moves users, not data pair it with one of the rows above

Filled = accepts writes, outlined = read-only. "Users in every Region must write with low latency" → only the first row. "One writer, fast reads far away, fast DR" → Aurora Global. Traffic steering (row 7) never replaces data replication — it sends users to a Region that already has the data.

Tô đậm = nhận ghi, viền = chỉ đọc. "Người dùng ở mọi Region phải ghi với độ trễ thấp" → chỉ hàng đầu tiên. "Một chỗ ghi, đọc nhanh ở xa, DR nhanh" → Aurora Global. Điều hướng traffic (hàng 7) không bao giờ thay cho sao chép dữ liệu — nó chỉ gửi người dùng tới Region đã có sẵn dữ liệu.

3 · Sync vs async — and what RPO it buys3 · Đồng bộ hay bất đồng bộ — và RPO tương ứng

Synchronous means the write isn't acknowledged until the copy has it — no data loss, but every write pays the round trip. Between AZs (a few ms) that's affordable, so AWS does it by default. Between Regions (tens to hundreds of ms) it isn't, so nearly everything cross-Region is asynchronous and loses whatever was in flight. Đồng bộ nghĩa là lệnh ghi chưa được xác nhận cho tới khi bản sao có nó — không mất dữ liệu, nhưng mỗi lần ghi phải trả giá một vòng đi-về. Giữa các AZ (vài ms) thì chịu được, nên AWS làm mặc định. Giữa các Region (vài chục tới vài trăm ms) thì không, nên gần như mọi thứ xuyên Region đều bất đồng bộ và mất phần dữ liệu đang trên đường đi.

Typical recovery point by mechanism on a log scale: in-Region synchronous copies and DynamoDB MRSC at zero; Aurora Global, DynamoDB MREC and ElastiCache Global Datastore around one second; RDS cross-Region replicas seconds to minutes; S3 replication mostly seconds with a 15-minute guarantee under Replication Time Control; EFS replication around 15 minutes; snapshot copies at the backup interval 01 s1 min15 min1 h24 h MECHANISM · TYPICAL RPO → SYNCHRONOUS RDS Multi-AZ (in Region) Aurora · 6 copies, 3 AZs DynamoDB MRSC (3 Regions!) the only sync cross-Region option ASYNCHRONOUS · CROSS-REGION Aurora Global Database DynamoDB MREC ElastiCache Global Datastore RDS cross-Region replica S3 CRR S3 CRR + RTC EFS replication snapshot / Backup copy ~1 s · switchover = 0 ~1 s, last writer wins < 1 s grows with write load most in seconds 99.99 % ≤ 15 min 15 min for most = interval

Green band = the write waits for the copy. Amber = the write returns first, the copy catches up. RPO for async is "whatever was in flight when the Region died"; for snapshots it's "everything since the last snapshot". RTC is the one async option that comes with a time guarantee (and a price).

Dải xanh = lệnh ghi chờ bản sao. Vàng = lệnh ghi trả về trước, bản sao đuổi theo sau. RPO của bất đồng bộ là "phần đang trên đường lúc Region sập"; của snapshot là "mọi thứ kể từ snapshot gần nhất". RTC là lựa chọn bất đồng bộ duy nhất có cam kết thời gian (và tốn thêm tiền).

  • Multi-AZ ≠ read scaling. The classic RDS Multi-AZ standby is synchronous and not readable — it exists only to fail over. Read replicas are asynchronous and readable — they exist to scale reads (and can be promoted). The Multi-AZ DB cluster variant has two readable standbys.Multi-AZ ≠ tăng khả năng đọc. Standby của RDS Multi-AZ kiểu cũ là đồng bộ và không đọc được — chỉ để failover. Read replica là bất đồng bộ và đọc được — để tăng khả năng đọc (và có thể promote). Biến thể Multi-AZ DB cluster có hai standby đọc được.
  • Aurora writes are durable when 4 of 6 storage copies acknowledge; reads need 3 of 6. That's why an AZ loss (2 copies) doesn't stop writes.Lệnh ghi Aurora bền vững khi 4 trên 6 bản lưu trữ xác nhận; đọc cần 3 trên 6. Vì vậy mất một AZ (2 bản) không làm dừng việc ghi.
  • MRSC is not free: every write waits for another Region, it needs exactly three Regions (or two + a witness), and it drops TTL, LSIs and transactions. Pick it only when the question says RPO zero across Regions.MRSC không miễn phí: mỗi lần ghi phải chờ Region khác, cần đúng ba Region (hoặc hai + một witness), và mất TTL, LSI, transaction. Chỉ chọn khi đề nói RPO bằng 0 giữa các Region.

4 · What layer is being copied4 · Đang sao chép ở tầng nào

"Replication" can happen at five different depths. The depth decides what it costs the source, what lag looks like under load, and what you get on the other side. "Replication" có thể diễn ra ở năm độ sâu khác nhau. Độ sâu quyết định nó tốn gì ở nguồn, độ trễ ra sao khi tải cao, và bên kia nhận được gì.

Five replication layers from top to bottom: object and item level (S3 replication, DynamoDB global tables), database engine log (RDS read replicas, Redis replication), storage layer (Aurora and Aurora Global Database), block device continuous (Elastic Disaster Recovery), and point-in-time snapshot copies (EBS, RDS, Redshift, AWS Backup) OBJECT / ITEM S3 replication · DynamoDB global tables each change copied on its own filters per prefix / tag · conflicts per item ENGINE LOG RDS read replicas · Redis / Valkey · DMS CDC replica REPLAYS the binlog / WAL heavy writes → replica falls behind STORAGE Aurora (in Region) · Aurora Global Database storage nodes ship redo records no engine load on the source · lag ~1 s BLOCK DEVICE Elastic Disaster Recovery (DRS) agent copies every disk write any app, any DB · RPO seconds SNAPSHOT COPY EBS · RDS · Redshift · AWS Backup · AMI point-in-time image, copied on a schedule cheapest · RPO = schedule · RTO = restore

Why Aurora Global beats an RDS cross-Region replica on lag: the replica has to re-execute the source's writes and falls behind when they're heavy; Aurora just ships the storage log, so the source engine doesn't even notice.

Vì sao Aurora Global có độ trễ tốt hơn RDS cross-Region replica: replica phải chạy lại các lệnh ghi của nguồn và bị tụt lại khi ghi nhiều; Aurora chỉ chuyển storage log, nên engine nguồn thậm chí không hề hay biết.

5 · Who presses the failover button5 · Ai bấm nút failover

Inside a Region, failover is AWS's job and it's automatic. Across Regions it's yours: promote the copy, then move traffic. The detail that matters in the exam is whether the endpoint changes — if it does, the app or DNS has to follow. Trong một Region, failover là việc của AWS và tự động. Giữa các Region thì là việc của bạn: promote bản sao, rồi chuyển traffic. Chi tiết quan trọng khi thi là endpoint có đổi không — nếu đổi, app hoặc DNS phải đổi theo.

Service In-Region failoverFailover trong Region Cross-Region failoverFailover giữa Region Endpoint afterEndpoint sau đó
RDS Auto — Multi-AZ standby takes over, 1–2 minTự động — standby Multi-AZ tiếp quản, 1–2 phút Manual — promote the read replica; replication ends, it's standaloneThủ công — promote read replica; replication chấm dứt, thành độc lập Same DNS in-Region · new endpoint cross-RegionCùng DNS trong Region · endpoint mới khi qua Region
Aurora Auto — a replica becomes writer, ~30 sTự động — một replica thành writer, ~30 s You trigger: switchover (planned, RPO 0) or failover (outage, allow data loss)Bạn kích hoạt: switchover (có kế hoạch, RPO 0) hoặc failover (sự cố, chấp nhận mất dữ liệu) Global writer endpoint follows the new primaryGlobal writer endpoint tự trỏ tới primary mới
DynamoDB Nothing to do — Regional, multi-AZKhông cần làm gì — Regional, multi-AZ Nothing to promote — every replica already writes; just send traffic elsewhereKhông có gì để promote — mọi replica đều ghi được; chỉ cần chuyển traffic Regional endpoint of the other RegionEndpoint Regional của Region kia
ElastiCache Auto — replica promoted (Multi-AZ on)Tự động — replica được promote (bật Multi-AZ) Manual — promote a secondary, < 1 minThủ công — promote secondary, < 1 phút Use the new primary's endpointDùng endpoint của primary mới
S3 Nothing to do — 3+ AZsKhông cần làm gì — 3+ AZ No promotion — the replica bucket is already writable; switch the app, or use Multi-Region Access Point failover controlsKhông có promote — bucket replica vốn đã ghi được; đổi app, hoặc dùng failover control của Multi-Region Access Point Other bucket name · or one MRAP aliasTên bucket khác · hoặc một alias MRAP
EFS Nothing to do (Standard) · gone with the AZ (One Zone)Không cần làm gì (Standard) · mất cùng AZ (One Zone) Delete the replication → destination becomes writableXoá replication → đích thành ghi được Mount the destination file systemMount file system đích
The full DR move is always two stepsMột lần DR đầy đủ luôn có hai bước (1) Make the data writable in Region B — promote / switchover / delete replication. (2) Send users there — Route 53 failover record with a health check, Global Accelerator endpoint weights, or ARC routing controls. Answers that do only one step are incomplete. (1) Làm cho dữ liệu ghi được ở Region B — promote / switchover / xoá replication. (2) Đưa người dùng sang đó — record failover của Route 53 kèm health check, trọng số endpoint của Global Accelerator, hoặc routing control của ARC. Đáp án chỉ làm một bước là chưa đủ.

6 · Service by service — the details that get tested6 · Từng service — các chi tiết hay bị hỏi

S3 replication (CRR · SRR)

S3 replication: source and destination buckets both need versioning; replicated are new objects, metadata, tags, Object Lock retention and encrypted objects; not replicated are pre-existing objects, replicas of replicas, version-ID deletes, lifecycle actions, Glacier archive objects and bucket-level configuration source bucket versioning ON async · IAM role · any Region / account can change storage class + owner on the way destination bucket versioning ON · writable ✓ REPLICATED objects created AFTER the rule metadata · tags · ACL changes Object Lock retention SSE-S3 · SSE-C · SSE-KMS (opt-in + destination key) delete markers (opt-in) replica edits back (replica mod. sync) ✕ NOT REPLICATED objects that existed before → S3 Batch Replication replicas of replicas (A→B→C) deletes of a specific version protects against malicious delete lifecycle actions Glacier Flexible / Deep Archive objs bucket config: lifecycle, notifications

The "not replicated" column is where questions hide: "we enabled replication but old data isn't there" → Batch Replication; "bucket C never got the objects" → no chaining; "someone deleted a version and the replica still has it" → by design.

Cột "không replicate" là chỗ đề hay giấu bẫy: "đã bật replication nhưng dữ liệu cũ không có" → Batch Replication; "bucket C không bao giờ nhận object" → không có chuyền tiếp; "ai đó xoá một version mà replica vẫn còn" → đúng thiết kế.

  • RTC (Replication Time Control) = 99.99 % of objects within 15 minutes, backed by an SLA, plus replication metrics. Pick it when the question puts a number of minutes on replication.RTC (Replication Time Control) = 99,99 % object trong vòng 15 phút, có SLA, kèm replication metrics. Chọn khi đề đặt một con số phút cho replication.
  • Multi-Region Access Point = one global endpoint over buckets in several Regions; routes each request to the nearest, and can flip active/passive for failover. Pair with two-way replication.Multi-Region Access Point = một endpoint global trên các bucket ở nhiều Region; định tuyến mỗi request tới bucket gần nhất, và có thể đảo active/passive để failover. Ghép với replication hai chiều.
  • SRR (same Region) exists for log aggregation, prod → test copies, or a copy in another account for compliance — not for DR.SRR (cùng Region) dùng để gom log, copy prod → test, hoặc bản sao sang account khác cho compliance — không phải để DR.

DynamoDB global tables — MREC vs MRSC

DynamoDB global tables: multi-Region eventual consistency replicates asynchronously within about a second with last-writer-wins conflicts; multi-Region strong consistency replicates synchronously to at least one other Region across exactly three Regions and rejects concurrent writes with a conflict exception MREC · eventual (default) us-east-1 W eu-west-1 W ap-se-1 W write returns at once · copy follows ~1 s same item written in 2 Regions → last writer wins (per item) strong read = latest only for writes made in THIS Region transactions atomic per Region only add / remove Regions any time replicates via DynamoDB Streams MRSC · strong Region A W Region B W C: replicaor witness write returns after ≥ 1 other Region has it same item in 2 Regions at once → ReplicatedWriteConflictException strong read = latest, anywhere exactly 3 Regions · fixed at create table must be empty to convert no TTL · no LSI · no transactions RPO 0 · higher write latency

Default answer for "active-active, users write in every Region" is MREC. Only switch to MRSC when the question forbids stale reads or any data loss across Regions — and check it doesn't also need TTL or transactions.

Đáp án mặc định cho "active-active, người dùng ghi ở mọi Region" là MREC. Chỉ đổi sang MRSC khi đề cấm đọc dữ liệu cũ hoặc cấm mất dữ liệu giữa các Region — và kiểm tra là nó không cần thêm TTL hay transaction.

  • Settings: capacity mode, GSIs, TTL, encryption type sync across replicas. PITR, deletion protection, tags, Kinesis streaming do not — set them in each Region.Cấu hình: capacity mode, GSI, TTL, kiểu mã hoá được đồng bộ giữa các replica. PITR, deletion protection, tag, Kinesis streaming thì không — phải bật ở từng Region.
  • DAX in front of a global table goes stale for writes that arrive by replication — they bypass the cache until its TTL expires.DAX đặt trước global table sẽ bị cũ với các lệnh ghi tới bằng replication — chúng đi vòng qua cache cho tới khi TTL của cache hết hạn.
  • Global tables offer a 99.999 % availability SLA vs 99.99 % for a single-Region table.Global table có SLA 99,999 % so với 99,99 % của bảng một Region.

Aurora · Aurora Global · RDS cross-Region replica

Three relational options side by side: Aurora in one Region with a writer and up to fifteen replicas over shared six-copy storage; Aurora Global Database with storage-level replication to read-only secondary Regions, write forwarding and switchover or failover; RDS cross-Region read replica replaying the engine log and becoming standalone when promoted Aurora · one Region writer replica … ≤ 15 shared storage volume 6 copies · 3 AZs replicas read the SAME storage → lag in milliseconds writer dies → replica promoted automatically, ~30 s promotion tiers pick which one HA, not DR Aurora Global Database primaryRegion Awriter secondaryRegion B…read-only storage replication → · ← write forwarding lag ~1 s · ≤ 10 secondary Regions switchover = planned, RPO 0 failover = outage, allow data loss global writer endpoint follows headless secondary = cheap DR DR in minutes, reads far away RDS cross-Region replica source DBRegion A read replicaRegion B engine replays binlog / WAL lag grows with write load promote = standalone DB, replication link is gone new endpoint → update app/DNS MySQL · PG · MariaDB · Oracle · SQL Server cheapest relational DR

"RPO about a second, RTO about a minute, across Regions, relational" → Aurora Global Database. "Already on RDS MySQL, minimal change, DR in another Region" → cross-Region read replica. Neither is automatic across Regions.

"RPO khoảng một giây, RTO khoảng một phút, xuyên Region, quan hệ" → Aurora Global Database. "Đang dùng RDS MySQL, ít thay đổi nhất, DR sang Region khác" → cross-Region read replica. Cả hai đều không tự động khi qua Region.

The rest, in one tablePhần còn lại, gom một bảng

Service Cross-Region mechanismCơ chế xuyên Region Watch outChú ý
EBS · AMISnapshot → copy to Region B (DLM / AWS Backup can schedule it); AMI → CopyImageSnapshot → copy sang Region B (DLM / AWS Backup lên lịch được); AMI → CopyImageVolume is zonal; snapshot is Regional. AMI IDs differ per Region — launch templates must be updated.Volume là zonal; snapshot là Regional. AMI ID khác nhau theo Region — launch template phải cập nhật.
EFSEFS replication to another Region (or AZ)EFS replication sang Region (hoặc AZ) khácRPO ~15 min; destination is read-only until you delete the replication.RPO ~15 phút; đích chỉ đọc cho tới khi xoá replication.
RedshiftCross-Region snapshot copy, automatic once enabledCopy snapshot xuyên Region, tự động khi đã bậtKMS-encrypted clusters need a snapshot copy grant for a key in the destination Region.Cluster mã hoá KMS cần snapshot copy grant cho một key ở Region đích.
Secrets ManagerReplica secrets — rotation on the primary flows to replicasReplica secret — rotation ở primary chảy sang các replicaReplicas are read-only; promote one to stand alone. Parameter Store has no replication.Replica chỉ đọc; promote một cái để thành độc lập. Parameter Store không có replication.
ECRRegistry-level replication rules — cross-Region and cross-accountRule replication cấp registry — xuyên Region và xuyên accountOnly images pushed after the rule.Chỉ image được push sau khi có rule.
AWS BackupCopy rule in the backup plan → vault in another Region / accountCopy rule trong backup plan → vault ở Region / account khácOne place to do it for EBS, RDS, DynamoDB, EFS, FSx… Cross-account needs Organizations.Một chỗ làm cho EBS, RDS, DynamoDB, EFS, FSx… Xuyên account cần Organizations.
Elastic Disaster RecoveryAgent streams block changes to a cheap staging area in Region BAgent đẩy thay đổi block sang vùng staging rẻ ở Region BRPO seconds, RTO minutes; works for on-prem and EC2, any app.RPO vài giây, RTO vài phút; dùng cho on-prem và EC2, mọi loại app.
CloudFormationStackSets deploy the same stack to many Regions / accountsStackSets triển khai cùng một stack ra nhiều Region / accountReplicates infrastructure, never data.Sao chép hạ tầng, không bao giờ sao chép dữ liệu.

7 · Keys don't travel — encryption across Regions7 · Key không đi theo — mã hoá giữa các Region

Every encrypted copy has to be decryptable on the other side, and a normal KMS key exists in one Region only. So every cross-Region copy of encrypted data quietly includes a re-encrypt with a destination key step — or uses a multi-Region key so the "same" key already exists there. Mỗi bản sao đã mã hoá phải giải mã được ở bên kia, mà một KMS key thường chỉ tồn tại ở một Region. Vì vậy mọi bản copy dữ liệu mã hoá sang Region khác đều ngầm có bước mã hoá lại bằng key ở Region đích — hoặc dùng multi-Region key để key "giống hệt" đã có sẵn ở đó.

Copying an encrypted snapshot from Region A to Region B: it must be re-encrypted with a key in Region B. Alternatively a multi-Region key has replicas with the same key ID and key material in both Regions, each with its own key policy Region A Region B snapshot · key A snapshot · key B copy + re-encrypt you must name key B mrk-1234 (primary) own key policy mrk-1234 (replica) own key policy multi-Region key same ID + key material encrypt in A, decrypt in B — no call back to A

Multi-Region keys are independent resources that share key material, not one global key — each replica has its own key policy and grants, while key material and rotation are shared. Use them when ciphertext itself crosses Regions (client-side encryption, DynamoDB global tables with app-level encryption); for AWS-managed copies, re-encrypting with a local key is the normal answer.

Multi-Region key là các tài nguyên độc lập dùng chung key material, không phải một key global — mỗi replica có policy, grant riêng. Dùng khi chính ciphertext đi qua Region (mã hoá phía client, DynamoDB global tables có mã hoá ở tầng app); với các bản copy do AWS quản lý, mã hoá lại bằng key tại chỗ là đáp án bình thường.

DR-Region checklist — none of this follows you automaticallyChecklist Region DR — không cái nào tự đi theo AMIs (new IDs) · KMS keys · ACM certificates (request again in B) · Parameter Store values · Lambda code and layers · security groups and VPC · service quotas (raise them before the disaster) · CloudWatch alarms. Global already: IAM roles, Route 53, CloudFront. AMI (ID mới) · KMS key · ACM certificate (xin lại ở B) · giá trị Parameter Store · code và layer Lambda · security group và VPC · service quota (nâng trước khi có thảm hoạ) · CloudWatch alarm. Đã global sẵn: IAM role, Route 53, CloudFront.

Exam reflexesPhản xạ khi thi

  • "Users on several continents must read and write locally with low latency" → DynamoDB global tables. Aurora Global can't — its secondaries only read (write forwarding still goes to one Region)."Người dùng ở nhiều châu lục phải đọc và ghi tại chỗ với độ trễ thấp" → DynamoDB global tables. Aurora Global không được — secondary chỉ đọc (write forwarding vẫn đi về một Region).
  • "Relational, cross-Region DR, RPO ~1 s, RTO ~1 min" → Aurora Global Database. "Planned Region move without data loss" → switchover, not failover."Quan hệ, DR xuyên Region, RPO ~1 s, RTO ~1 phút" → Aurora Global Database. "Chuyển Region có kế hoạch không mất dữ liệu" → switchover, không phải failover.
  • "RPO zero across Regions" → DynamoDB MRSC. For anything else cross-Region, RPO 0 is impossible — look for the option that admits seconds."RPO bằng 0 giữa các Region" → DynamoDB MRSC. Với mọi thứ khác xuyên Region, RPO 0 là không thể — tìm phương án chấp nhận vài giây.
  • "Multi-AZ RDS, but reads are slow" → add read replicas (or move to Multi-AZ DB cluster). The Multi-AZ standby can't serve reads."RDS Multi-AZ nhưng đọc chậm" → thêm read replica (hoặc chuyển sang Multi-AZ DB cluster). Standby Multi-AZ không phục vụ đọc được.
  • "Replication enabled, old objects missing" → S3 Batch Replication. "Must replicate within 15 minutes, provably" → S3 RTC."Đã bật replication, object cũ không có" → S3 Batch Replication. "Phải replicate trong 15 phút, chứng minh được" → S3 RTC.
  • "Copy encrypted snapshots / AMIs to the DR Region" → copy and re-encrypt with a KMS key in that Region; for Redshift, a snapshot copy grant."Copy snapshot / AMI đã mã hoá sang Region DR" → copy và mã hoá lại bằng KMS key ở Region đó; với Redshift là snapshot copy grant.
  • "CloudFront can't see the certificate" → it isn't in us-east-1. Same reflex for Lambda@Edge and a CloudFront WAF web ACL."CloudFront không thấy certificate" → nó không nằm ở us-east-1. Cùng phản xạ với Lambda@Edge và WAF web ACL cho CloudFront.
  • "Secrets must be available in the DR Region" → Secrets Manager replica secrets. Parameter Store → you replicate it yourself (Lambda / StackSets)."Secret phải có sẵn ở Region DR" → Secrets Manager replica secret. Parameter Store → tự replicate (Lambda / StackSets).
  • "Cache must survive a Region loss" → ElastiCache Global Datastore, promote manually; max 2 secondary Regions, same account."Cache phải sống sót khi mất Region" → ElastiCache Global Datastore, promote thủ công; tối đa 2 Region phụ, cùng account.
  • "DR for on-prem servers / any app, RPO seconds" → Elastic Disaster Recovery. "Cheapest DR, hours acceptable" → AWS Backup cross-Region copy."DR cho server on-prem / mọi loại app, RPO vài giây" → Elastic Disaster Recovery. "DR rẻ nhất, chấp nhận vài giờ" → AWS Backup copy xuyên Region.
  • Distractor smell: "enable automatic cross-Region failover" on RDS / Aurora / ElastiCache. No such switch — it's always a promote you trigger, plus a traffic shift.Mùi đáp án nhiễu: "bật failover tự động xuyên Region" cho RDS / Aurora / ElastiCache. Không có công tắc nào như vậy — luôn là một lần promote do bạn kích hoạt, cộng với việc chuyển traffic.
RelatedLiên quan Strategy on top of these mechanisms: Disaster Recovery. Per service: S3, DynamoDB, RDS · Aurora, ElastiCache, KMS, AWS Backup. Moving the users: Route 53, Global Accelerator. Chiến lược dựng trên các cơ chế này: Disaster Recovery. Theo service: S3, DynamoDB, RDS · Aurora, ElastiCache, KMS, AWS Backup. Chuyển người dùng: Route 53, Global Accelerator.