AWS Certified DevOps Engineer – Professional — Question 30

A company wants to migrate a legacy application to AWS and develop a deployment pipeline that uses AWS services only. A DevOps engineer is migrating all of the application code from a Git repository to AWS CodeCommit while preserving the history of the repository. The DevOps engineer has set all the permissions within CodeCommit, installed the Git client and the AWS CLI on a local computer, and is ready to migrate the repository.
Which actions will follow?

Answer options

Correct answer: D

Explanation

Option D is correct because it efficiently uses the mirror option to clone the entire Git repository, ensuring that all history is preserved during the migration to CodeCommit. The other options either do not preserve history or require unnecessary steps, making them less effective for this migration process.