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

A company's DevOps team uses Node Package Manager (NPM) open source libraries to build applications. The DevOps team runs its application build process in an AWS CodeBuild project that downloads the NPM libraries from public NPM repositories.

The company wants to host the NPM libraries in private NPM repositories. The company also needs to be able to run checks on new versions of the libraries before the DevOps team uses the libraries.

Which solution will meet these requirements with the LEAST operational effort?

Answer options

Correct answer: A

Explanation

AWS CodeArtifact is a fully managed artifact repository service that natively supports NPM, making it the ideal choice to host private packages and proxy public ones via upstream repositories with minimal operational overhead. Using AWS CodePipeline to automatically run validation checks and update the package status to 'unlisted' ensures only approved library versions are used by developers. Other options involving CodeCommit require high maintenance overhead for managing individual repositories per package, and CodeBuild caching is not a secure or robust private package hosting solution.