A development team in an AWS Organizations organization needs to use a Python package hosted in a centralized AWS CodeArtifact repository. Their CodeBuild jobs run in a VPC without internet access; they have created CodeArtifact VPC endpoints and updated the buildspec, but the build still cannot download the package. Which combination of actions should a DevOps engineer take so the team can use the CodeArtifact package? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Amazon S3 gateway endpoint and update the route tables for the subnets used by the CodeBuild job., Grant the IAM role used by the CodeBuild project sufficient permissions to access the CodeArtifact repository..
Why this is the answer
To resolve the issue, two actions are necessary. First, CodeArtifact uses Amazon S3 for package storage. Therefore, a CodeBuild job in a private VPC needs an Amazon S3 gateway endpoint configured in its VPC and associated route tables to access the packages. Without this, the CodeBuild job cannot retrieve the package data. Second, the IAM role assumed by the CodeBuild project must have explicit permissions to access the CodeArtifact repository. Even with network connectivity, insufficient IAM permissions will prevent package download. Modifying the CodeArtifact repository policy's Principal is not the primary solution; direct IAM role permissions are more straightforward for CodeBuild. Sharing with AWS RAM is for cross-account access, which isn't the core problem here. Designating a delegated administrator is for organizational management, not direct package access for a build job.
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