SDLC Automation

A company stores approved npm packages in a central CodeArtifact repository that has an external connection to npmjs.com. Developers must retrieve both approved packages and public dependencies through a team repository endpoint. How should the team repository be configured?

Show the answer

Correct answerD. Add the central repository as an upstream repository.

AWhy not this: ECR stores container images and OCI artifacts; it does not proxy npm dependencies for CodeArtifact.

BWhy not this: npmjs.com is accessed through an external connection, not configured as a CodeArtifact upstream repository.

CWhy not this: S3 stores objects but cannot serve as a CodeArtifact package origin or upstream repository.

DWhy this is right: An upstream relationship provides access to central packages and public dependencies through the team endpoint.

A CodeArtifact upstream repository lets a downstream repository resolve packages from the central repository and its external connection. An upstream repository is another CodeArtifact repository, not the public npm registry itself.