A company uses AWS CodeCommit and needs to keep a backup copy of the repository data in a second AWS Region. Which approach satisfies this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an EventBridge rule that triggers AWS CodeBuild on each repository push. In CodeBuild, clone the repository, create a .zip of the content, and copy that file to an S3 bucket in the second Region..
Why this is the answer
The correct approach leverages EventBridge to react to CodeCommit pushes, triggering CodeBuild. CodeBuild can then clone the repository, package its contents (e.g., into a .zip file), and upload this artifact to an S3 bucket in the desired secondary Region. This provides a near real-time, event-driven backup of the repository's state. AWS Elastic Disaster Recovery (DRS) is designed for replicating entire servers or instances, not individual CodeCommit repositories. AWS Backup does not natively support CodeCommit as a backup target. While a Step Functions workflow could be scheduled, it would be less real-time than an event-driven approach and "snapshotting" a CodeCommit repository directly isn't a native feature in the way it is for EBS volumes or databases; you'd still need to clone and package the contents, making the CodeBuild option more direct for individual pushes.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed