
Answer-first summary for fast verification
Answer: 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.
Creating an Amazon EventBridge rule to invoke AWS CodeBuild when the company pushes code to the repository allows for an automatic and event-driven process. CodeBuild can then clone the repository and create a .zip file of the content, which can be stored in an S3 bucket in the second Region. This solution leverages the event-driven nature of EventBridge to trigger actions in real-time whenever there is an update, ensuring that the backup is always up-to-date with the latest changes. The use of S3 provides a cost-effective, durable, and scalable storage solution across regions. This approach is both automated and efficient, making it suitable for keeping a consistent backup in another AWS Region.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
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?
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