AWS Certified Solutions Architect – Professional (SAP-C02) — Question 168
A company uses an AWS CodeCommit repository. The company must store a backup copy of the data that is in the repository in a second AWS Region.
Which solution will meet these requirements?
Answer options
- A. Configure AWS Elastic Disaster Recovery to replicate the CodeCommit repository data to the second Region.
- B. Use AWS Backup to back up the CodeCommit repository on an hourly schedule. Create a cross-Region copy in the second Region.
- C. Create an Amazon EventBridge rule to invoke AWS CodeBuild when the company pushes code to the repository. Use CodeBuild to clone the repository. Create a .zip file of the content. Copy the file to an S3 bucket in the second Region.
- D. Create an AWS Step Functions workflow on an hourly schedule to take a snapshot of the CodeCommit repository. Configure the workflow to copy the snapshot to an S3 bucket in the second Region
Correct answer: C
Explanation
Option C is correct because it effectively uses automation to back up the repository data in real-time by leveraging Amazon EventBridge and AWS CodeBuild. The other options either do not provide real-time backup (A, B, D) or do not directly address the requirement of storing a backup in a second Region as efficiently as option C does.