AWS S3 Cross-Region Replication for Multi-Region HA
Short answer
AD Configure IAM roles and two-way S3 replication to ensure all objects exist in both regions for failover.
Question
Key Takeaways
The exam traps candidates who assume standard unidirectional CRR is sufficient; 'fail over with no data loss' in an active-active context requires two-way replication.
This question tests the configuration of bidirectional Amazon S3 replication to ensure zero data loss during multi-region failover, requiring IAM roles and specific replication rules.
Common mistake: Candidates select A and C, failing to realize that unidirectional replication allows data divergence when the application fails over to the secondary region.
Expert Analysis
Why the Answer Is Correct
To achieve high availability with no data loss across two regions, the solution must support writes from both sides. Option A provides the necessary IAM permissions for S3 Batch Operations (often used for initial bulk sync) and S3 replication itself. Option C sets up the first leg of the replication (Primary to Secondary). Crucially, Option D ('Create a two-way replication rule') addresses the requirement that data created in the secondary region post-failover must also be replicated back to the primary, preventing data loss. While technically this involves creating rules on both buckets, the option phrasing 'two-way replication rule' is the key discriminator here.
Why the Other Options Are Wrong
Option B references AWS Batch, which is irrelevant for S3 replication tasks. Option E suggests using AWS Batch with Fargate to run CLI sync commands, which is operationally inefficient compared to native S3 features like CRR or S3 Batch Operations. Option D is correct because it explicitly mandates the bidirectional flow required by the scenario.
Community Comment Notes
Many learners initially hesitate on 'two-way replication' because they are taught CRR is unidirectional. However, comments like those from 'that1guy' correctly point out that 'All existing and new objects must be in BOTH S3 buckets' necessitates bidirectional sync. As 'xdkonorek2' noted, unidirectional replication fails if you failover to Region B and then back to A, as data created in B would be lost. The consensus confirms that 'ADF' is the correct combination.
Official Reference
https://docs.aws.amazon.com/AmazonS3/latest/userguide/mrp-create-two-way-replication-rules.html
This link opens the official vendor documentation in a new tab.
Exam Strategy
When a question specifies 'no data loss' in a multi-region active-active or failover scenario, always look for bidirectional replication options. Standard unidirectional CRR will cause data loss if the secondary region becomes the writer.
Frequently Asked Questions
Why is unidirectional CRR insufficient?
Is 'two-way replication rule' a real AWS feature?
Discussion 17 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 17
-
that1guy 👍 6ADF, "All existing and new objects must be in BOTH S3 buckets." this requires two-way replication.
-
d9iceguy 👍 5Note: Application deployed to both regions, bi-directional replication will be required
-
xdkonorek2 👍 4"The application must fail over between the Regions with no data loss." C is not enough, because if we failover to region B and then to A application couldn't access data that was created in region B in the meantime
-
auxwww 👍 4D - for failover between regions. Any data stored on secondary bucket post failover operations needs to be replicated as well
-
Trex247 👍 3I think it's ADF check out this: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mrap-create-two-way-replication-rules.html
Show 12 more comments
-
MalonJay 👍 3ADF The secondary also needs to replicate to the primary.
-
jamesf 👍 3Option D: two-way replication required
-
everydaysmile 👍 2Two-way replication is possible using CRR. "Replication is configured via rules. There is no rule for bi-directional replication. You will however setup a rule to replicate from the S3 bucket in the east AWS region to the west bucket, and you will setup a second rule to replicate going the opposite direction. These two rules will enable bi-directional replication across AWS regions." - https://catalog.workshops.aws/well-architected-reliability/en-US/4-failure-management/1-backup/20-bidirectional-replication-for-s3/2-configure-replication
-
aws_god 👍 2Not D because it states creating the two-way replication on the source bucket and you need to configure it on both to work: When two-way replication is set up, a replication rule from the source bucket (DOC-EXAMPLE-BUCKET-1) to the bucket containing the replicas (DOC-EXAMPLE-BUCKET-2) is created. Then, a second replication rule from the bucket containing the replicas (DOC-EXAMPLE-BUCKET-2) to the source bucket (DOC-EXAMPLE-BUCKET-1) is created.
-
6ef9a08 👍 2Two-Way Replication Rule is bidirectional, meaning objects are replicated from bucket A to bucket B and from bucket B to bucket A. This ensures that both buckets always contain the same data. S3 Cross-Region Replication (CRR) is unidirectional, meaning it replicates objects from a source bucket to a destination bucket. Changes made in the destination bucket do not propagate back to the source bucket. So D, not C
-
fdoxxx 👍 2ACF for sure. A - we need a replication role with principles for S3 Batch Operation, replicate job, and S3. C - will replicate all new objects, F - will replicate existing objects
-
VerRi 👍 2Poor wording. An active-active solution is recommended for HA, but bidirectional replication means CRR * 2. 'a two-way replication rule' is quite misleading
-
[Removed] 👍 2ADF here, because there is no mention of two way replication in C
-
hzaki 👍 1there is nothing called (Create a two-way replication rule on the source S3 bucket), the two-way replication is configured separately in each region per each bucket, that's why option D is incorrect.
-
ogerber 👍 2its ACF for me
-
dkp 👍 2answer acf
-
seetpt 👍 1ACF for me
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All DOP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full DOP-C02 Practice Test →