SDLC Automation

A company will publish a new internal package to AWS CodeArtifact, where a public repository is configured as an upstream source. Which package origin configuration permits internal publishing while preventing ingestion of public versions with the same package name?

Show the answer

Correct answerB. Allow direct publishing and block upstream ingestion.

AWhy not this: This permits internal releases but also permits ingestion of public versions with the same package name.

BWhy this is right: Internal publishers can release versions, while versions of that package cannot enter from an upstream repository.

CWhy not this: This excludes public versions but also prevents the required internal publishing.

DWhy not this: This prevents internal publishing while permitting the public versions the company needs to exclude.

Package origin controls distinguish direct publishing from upstream ingestion. Allowing publishing while blocking upstream ingestion preserves internal releases and prevents public versions from entering through the upstream; blocking publishing instead would prevent internal releases.