Several teams use separate AWS CodeArtifact repositories for internal npm packages. They need access to public npm packages through a shared CodeArtifact repository rather than separate public connections. Which configuration meets this requirement?
Show the answer
Correct answerC. Connect the shared repository to npm public and make it each team's upstream.
AWhy not this: This reverses dependency resolution: the shared repository could search team repositories, not the other way around.
BWhy not this: Separate external connections do not meet the requirement to use a shared public-package connection.
CWhy this is right: Team repositories can resolve public packages through the shared upstream repository's npm public connection.
DWhy not this: A CodeBuild cache is not a managed npm registry endpoint or a replacement for CodeArtifact upstream relationships.
An external connection gives the shared repository access to npm public, and upstream relationships let team repositories resolve packages through it. Reversing the upstream relationship does not give team repositories access through the shared repository.