
Answer-first summary for fast verification
Answer: Create a second S3 bucket in us-east-1. Use S3 Cross-Region Replication to copy photos from the existing S3 bucket to the second S3 bucket.
## Explanation **Correct Answer: A** **Why Option A is correct:** 1. **S3 Cross-Region Replication (CRR)** is specifically designed for this exact use case - automatically replicating objects from one S3 bucket to another bucket in a different AWS Region. 2. **Least operational effort**: Once configured, CRR operates automatically without any additional management. New objects uploaded to the source bucket are automatically replicated to the destination bucket. 3. **Native AWS service**: CRR is a built-in S3 feature that requires minimal setup and no custom code. 4. **Reliable and managed**: AWS handles the replication process, including retries and error handling. **Why other options are incorrect:** **Option B (CORS configuration):** - CORS is for controlling cross-origin HTTP requests from web browsers, not for data replication between regions. - Specifying a region in AllowedOrigin doesn't copy data; it only allows web applications from that region to access the bucket. **Option C (Lifecycle rules):** - S3 Lifecycle rules are for transitioning objects between storage classes or expiring objects, not for cross-region replication. - Lifecycle rules cannot copy objects to buckets in different regions. - The mention of "across multiple Availability Zones" is irrelevant since S3 buckets are already regionally distributed. **Option D (Lambda function):** - While technically possible, this requires custom code development, testing, deployment, and ongoing maintenance. - Higher operational effort compared to native CRR. - Additional costs for Lambda invocations and potential error handling complexity. - More complex architecture that needs to handle edge cases and failures. **Key AWS Concepts:** - **S3 Cross-Region Replication (CRR)**: Automatically replicates objects across AWS Regions with versioning enabled. - **Use Cases**: Compliance requirements, minimizing latency, operational reasons, and disaster recovery. - **Requirements**: Both source and destination buckets must have versioning enabled. - **Benefits**: Fully managed, automatic, and reliable replication service.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An online photo-sharing company stores its photos in an Amazon S3 bucket that exists in the us-west-1 Region. The company needs to store a copy of all new photos in the us-east-1 Region.
Which solution will meet this requirement with the LEAST operational effort?
A
Create a second S3 bucket in us-east-1. Use S3 Cross-Region Replication to copy photos from the existing S3 bucket to the second S3 bucket.
B
Create a cross-origin resource sharing (CORS) configuration of the existing S3 bucket. Specify us-east-1 in the CORS rule's AllowedOrigin element.
C
Create a second S3 bucket in us-east-1 across multiple Availability Zones. Create an S3 Lifecycle rule to save photos into the second S3 bucket.
D
Create a second S3 bucket in us-east-1. Configure S3 event notifications on object creation and update events to invoke an AWS Lambda function to copy photos from the existing S3 bucket to the second S3 bucket.