Question #565
A company’s solutions architect is designing a web application that stores user-uploaded files in an Amazon S3 bucket in the eu-west-1 Region. The company requires high availability across multiple AWS Regions and has already provisioned a second S3 bucket in another Region. Which solution provides multi-region resiliency with the LEAST operational overhead?
Configure the application to upload each file to both S3 buckets. Use Amazon Route 53 with a failover routing policy pointing to each bucket. Update the application to reference the Route 53 DNS name.
Create an AWS Lambda function triggered on upload to copy objects to the second S3 bucket. Set up an Amazon CloudFront distribution with an origin group that includes both S3 buckets as origins.
Enable S3 replication from the primary bucket to the secondary bucket. Configure an Amazon CloudFront distribution with an origin group that uses both S3 buckets as origins.
Configure S3 replication from the primary bucket to the secondary bucket. Modify the application code to switch to the secondary bucket during failover events.
Explanation
Option C is correct because:
1. S3 Replication: Automates copying objects to the secondary bucket, ensuring data consistency across regions without manual intervention.
2. CloudFront Origin Group: Automatically routes traffic to the secondary origin if the primary fails, eliminating the need for application-level failover logic.
Other options are incorrect because:
- A: Requires application code changes to upload to both buckets and manual DNS management via Route 53.
- B: Adds operational complexity with Lambda-triggered replication and potential delays.
- D: Relies on manual application code changes to handle failover, increasing operational effort.
Key Points:
- Use S3 replication for automated cross-region data sync.
- CloudFront origin groups enable seamless failover without code changes.
- Minimize operational overhead by leveraging AWS-managed services.
Answer
The correct answer is: C