exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 361 discussion

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?

  • A. Create an AWS CodeArtifact repository with an upstream repository named npm-store. Configure the application build process to use the CodeArtifact repository as the default source for NPM. Create an AWS CodePipeline pipeline to perform the required checks on package versions in the CodeArtifact repository. Set the package status to unlisted if a failure occurs.
  • B. Enable Amazon S3 caching in the CodeBuild project configuration. Add a step in the buildspec.yaml config file to perform the required checks on the package versions in the cache.
  • C. Create an AWS CodeCommit repository for each library. Clone the required NPM libraries to the appropriate CodeCommit repository. Modify the CodeBuild appspec.yaml config file to use the private CodeCommit repositories. Add a step to perform the required checks on the package versions.
  • D. Create an AWS CodeCommit repository for each library. Clone the required NPM libraries to the appropriate CodeCommit repository. Modify the CodeBuild buildspec.yaml config file so that NPM uses the private CodeCommit repositories. Add an AWS CodePipeline pipeline that performs the required checks on the package versions for each new commit to the repositories. Configure the pipeline to revert to the most recent commit in the event of a failure.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GripZA
2 days, 16 hours ago
Selected Answer: A
CodeArtifact stores software packages in repositories. You can create a connection between your private CodeArtifact repository and an external, public repository, such as npmjs.com. CodeArtifact will then fetch and store packages on demand from the public repository when they're requested by a package manager. https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html
upvoted 1 times
...
Bwhizzy
1 month, 4 weeks ago
Selected Answer: A
CodeArtifact with Upstream Repository Proxy Public Packages: The npm-store upstream repository acts as a proxy for npm.org, automatically caching public packages in CodeArtifact13. Centralized Control: The build process uses CodeArtifact as the default NPM source, ensuring all dependencies are managed privately. CodePipeline for Version Checks Automated Validation: The pipeline runs tests or checks on new package versions before they’re approved for use. Unlisted Status: Failed packages are marked as unlisted, preventing their inclusion in builds until resolved16. Why Other Options Fail: B/C/D: Cloning libraries into CodeCommit (C/D) or using S3 caching (B) adds manual effort and complexity compared to CodeArtifact’s native proxying. No Need for Manual Cloning: CodeArtifact’s upstream eliminates the need to clone public packages into private repositories
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago