AWS Certified DevOps Engineer – Professional — Question 13

A company has a single developer writing code for an automated deployment pipeline. The developer is storing source code in an Amazon S3 bucket for each project. The company wants to add more developers to the team but is concerned about code conflicts and lost work. The company also wants to build a test environment to deploy newer versions of code for testing and allow developers to automatically deploy to both environments when code is changed in the repository.
What is the MOST efficient way to meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is the best choice because it facilitates collaboration among multiple developers by using feature branches and pull requests, effectively managing code changes and preventing conflicts. Option B, while introducing S3 buckets and Lambda, lacks the structured version control and collaboration benefits provided by CodeCommit. Option C does not separate the testing and production code adequately, and Option D relies on S3, which is not optimized for source code management and does not support the same level of branching and merging as CodeCommit.