DVA-C02 practice question · Deployment
A company wants one managed service for internal packages. Its teams use npm, pip, Maven, and the NuGet CLI, and want to…
A company wants one managed service for internal packages. Its teams use npm, pip, Maven, and the NuGet CLI, and want to keep using those native tools. The company wants as little infrastructure to manage as possible. Which approach meets these requirements?
- ACreate one CodeArtifact domain with repositories for the teams, and point each team's package manager at its repository endpoint
- BCreate a separate CodeArtifact domain for each package format, because each repository can hold only one format
- CStore the packages in CodeCommit repositories and configure each package manager to use the Git repository URL
- DUpload the packages to an S3 bucket with static website hosting and maintain index files for each package manager
Show the answer and explanation
Correct answer: A) Create one CodeArtifact domain with repositories for the teams, and point each team's package manager at its repository endpoint
CodeArtifact is a managed, polyglot artifact repository that supports npm, PyPI, Maven, NuGet and other formats. One domain with team repositories lets each team keep its native package manager.
Why each option is right or wrong
- A) Correct. CodeArtifact works with npm, pip/twine, Maven/Gradle, NuGet and other package managers. Its repositories are polyglot, and AWS recommends one production domain with one or more repositories, for example one per team. Each team keeps its native CLI.
- B) Incorrect. CodeArtifact repositories are polyglot: one repository can hold packages of any supported type. Separate domains per format aren't needed, and they would make it harder to share packages through upstream repositories, which only work within a single domain.
- C) Incorrect. CodeCommit is a Git source control service, not a package repository. npm, pip, Maven and NuGet expect a package repository endpoint, which CodeArtifact provides.
- D) Incorrect. This is a hand-built repository. The team would have to create and maintain the format-specific metadata and access control themselves, which is the overhead that CodeArtifact, a managed service, removes.
- Exam domain
- Deployment · 24% of DVA-C02
- Question type
- Multiple choice (one answer)
Related DVA-C02 questions
- Drift detection shows that an engineer manually changed a property on a resource in an AWS CloudFormation stack.Deployment
- A team moves its CodeBuild build instructions from the repository root to config/buildspec-release.yml.Deployment
- Which AWS service is specifically designed to orchestrate the end-to-end release process — source, build, test, and…Deployment
- During a CodeDeploy deployment to EC2 instances, which file in the application's deployment bundle defines the lifecycle…Deployment
All 67 free DVA-C02 questions by domain · 15 sample questions on one page
Practise the full DVA-C02 exam
This question is one of a small free sample from the CertRidge DVA-C02 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with AWS; never copied from the real exam.
Worth reading: DVA-C02 cheat sheet, Lambda, DynamoDB, API Gateway, IAM and Cognito, messaging, CI/CD and X-Ray in tables, plus what DVA-C03 changes.