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

A company needs to manage shared libraries for various projects across its development AWS account and production AWS account. The company has configured IAM roles for developers and has defined an AWS CodePipeline pipeline by using the AWS Cloud Development Kit (AWS CDK).

A DevOps engineer must implement a solution to ensure that only developers can access the latest versions of the libraries. The solution must test shared packages independently before the shared packages are consumed by other applications and before they go to production.

Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

AWS CodeArtifact is the AWS native service designed specifically for secure, scalable package management and sharing of libraries. Creating separate development and production repositories allows for clean environment segregation, and using a repository policy ensures only developers can access the development packages. Automating the workflow using an Amazon EventBridge rule to trigger AWS CodePipeline ensures that the packages are fully tested through the pipeline before they are copied to the production repository.