Q31 — AWS SAP-C02 Ch.1
Question 31 of 75 | ← Chapter 1
Q106. A company's solutions architect is reviewing a web application that runs on AWS. The application references static assets in an Amazon S3 bucket in the us-east-1 Region. The company needs resiliency across multiple AWS Regions. The company already has created an S3 bucket in a second Region. Which solution will meet these requirements with the LEAST operational overhead?
- A. Configure the application to write each object to both S3 buckets. Set up an Amazon Route 53public hosted zone with a record set by using a weighted routing policy for each S3bucket. Configure the application to reference the objects by using the Route 53 DNS name.
- B. Create an AWS Lambda function to copy objects from the S3 bucket in us-east-1to the S3 bucket in the second Region. Invoke the Lambda function each time an object is written to the S3 bucket in us-east- 1.Set up an Amazon CloudFront distribution with an origin group that contains the two S3 buckets as origins.
- C. Configure replication on the S3 bucket in us-east-1to replicate objects to the S3 bucket in the second Region. Set up an Amazon CloudFront distribution with an origin group that contains the two S3 buckets as origins. ✓
- D. Configure replication on the S3 bucket in us-east-1to replicate objects to the S3 bucket in the second Region. If failover is required, update the application code to load S3 objects from the S3 bucket in the second Region.
Correct Answer: C. Configure replication on the S3 bucket in us-east-1to replicate objects to the S3 bucket in the second Region. Set up an Amazon CloudFront distribution with an origin group that contains the two S3 buckets as origins.
Explanation
To meet the requirement of achieving resiliency across multiple AWS Regions with the least operational overhead, the solutions architect should recommend: C. Configure replication on the S3 bucket in us-east-1 to replicate objects to the S3 bucket in the second Region. Set up an Amazon CloudFront distribution with an origin group that contains the two S3 buckets as origins. Explanation: C. Configure replication on the S3 bucket in us-east-1 to replicate objects to the S3 bucket in the second Region: By configuring cross-region replication on the S3 bucket in the us-east-1 Region, you can automatically replicate objects to the S3 bucket in the second Region. This ensures data resiliency and redundancy across multiple Regions. Set up an Amazon CloudFront distribution with an origin group that contains the two S3 buckets as origins: By configuring CloudFront with an origin group that includes both S3 buckets, you can distribute the traffic to the closest S3 bucket, improving performance and providing resiliency. CloudFront will automatically route requests to the appropriate bucket based on the requester's location. Option A is incorrect because it suggests configuring the application to write each object to both S3 buckets. This approach would require additional development effort and introduce operational overhead. Option B is incorrect because it suggests using an AWS Lambda function to copy objects from the S3 bucket in us-east-1 to the S3 bucket in the second Region. While this would achieve replication, it would introduce additional complexity and operational overhead compared to the built-in cross-region replication feature of S3. Option D is incorrect because it suggests configuring replication on the S3 bucket in us-east-1 and updating the application code to load objects from the S3 bucket in the second Region during failover. This approach requires manual intervention during failover and introduces additional complexity compared to using CloudFront with an origin group. Therefore, the solution with the least operational overhead is C: Configure replication on the S3 bucket in us-east-1 and set up a CloudFront distribution with an origin group containing the two S3 buckets.