A company is moving from on-premises CI/CD to AWS. They want their packages and dependent public repositories available in CodeArtifact with minimal operational overhead. Which combination of steps should they take? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create an AWS IAM Roles Anywhere trust anchor, create an IAM role that permits CodeArtifact actions and trusts the Roles Anywhere anchor, then update the on-premises CI/CD pipeline to assume that IAM role and publish packages to CodeArtifact., For each public repository dependency, create a CodeArtifact repository configured with an external connection, and set the public repositories as upstream dependencies..
Why this is the answer
The first correct option, using AWS IAM Roles Anywhere, allows on-premises CI/CD pipelines to securely assume an IAM role with permissions to publish packages to CodeArtifact without managing long-lived AWS credentials. This minimizes operational overhead and enhances security. The second correct option, creating CodeArtifact repositories with external connections to public repositories and setting them as upstream dependencies, efficiently handles public dependencies. CodeArtifact will automatically fetch and cache packages from these public repositories on first request, making them available to your builds without manual intervention. The incorrect option involving VM images and AWS Import/Export is overly complex for publishing packages and doesn't align with modern CI/CD practices. The S3 bucket and Lambda trigger option adds unnecessary layers of abstraction and operational overhead compared to direct publishing via Roles Anywhere. The final incorrect option, configuring multiple external connections as downstream of a single repository, misuses the upstream/downstream relationship; external connections should be upstream to fetch packages.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed