nerdexam
AmazonAmazon

DOP-C02 · Question #399

DOP-C02 Question #399: Real Exam Question with Answer & Explanation

The correct answer is A: Create an AWS CodeArtifact repository and associate the upstream repositories. Create an AWS. By using AWS CodeArtifact as your central artifact repository with upstreams configured for open- source package registries, you get both version management (semantic versions you publish) and caching of dependencies out of the box. Your CodeBuild project can bump and tag your bu

Submitted by suresh_in· Mar 6, 2026SDLC Automation

Question

A company is developing code and wants to use semantic versioning. The company's DevOps team needs to create a pipeline for compiling the code. The team also needs to manage versions of the compiled code. If the code uses any open source libraries, the libraries must also be cached in the build process. Which solution will meet these requirements?

Options

  • ACreate an AWS CodeArtifact repository and associate the upstream repositories. Create an AWS
  • BUse AWS CodeDeploy to upload the generated semantic version of the artifact to an Amazon
  • CUse an AWS CodeBuild project to build the code and to publish the generated semantic version
  • DCreate a new AWS CodeArtifact repository. Create an AWS Lambda function that pulls open

Explanation

By using AWS CodeArtifact as your central artifact repository with upstreams configured for open- source package registries, you get both version management (semantic versions you publish) and caching of dependencies out of the box. Your CodeBuild project can bump and tag your build with the semantic version, authenticate to CodeArtifact, publish the compiled artifact, and automatically pull cached dependencies from CodeArtifact’s upstreams, meeting all requirements with minimal custom work.

Topics

#CodeArtifact#artifact management#dependency caching#semantic versioning

Community Discussion

No community discussion yet for this question.

Full DOP-C02 PracticeBrowse All DOP-C02 Questions