AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 386

A company is examining its disaster recovery capability and wants the ability to switch over its daily operations to a secondary AWS Region. The company uses AWS CodeCommit as a source control tool in the primary Region.

A DevOps engineer must provide the capability for the company to develop code in the secondary Region. If the company needs to use the secondary Region, developers can add an additional remote URL to their local Git configuration.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is the correct solution because it replicates the Git repository to a secondary AWS CodeCommit repository using AWS CodeBuild, triggered automatically on merge events via Amazon EventBridge and AWS Lambda. Option B is incorrect because storing the mirrored files in Amazon S3 does not create an active Git repository that developers can target as a remote URL. Option C is incorrect because AWS CodeArtifact is a package management service, not a Git-compatible source control repository.