DOP-C02 · Question #358
A company uses an AWS CodeArtifact repository to store Python packages that the company developed internally. A DevOps engineer needs to use AWS CodeDeploy to deploy an application to an Amazon EC2 in
Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #358. The question stem and answer options stay visible for context.
Question
A company uses an AWS CodeArtifact repository to store Python packages that the company developed internally. A DevOps engineer needs to use AWS CodeDeploy to deploy an application to an Amazon EC2 instance. The application uses a Python package that is stored in the CodeArtifact repository. A BeforeInstall lifecycle event hook will install the package. The DevOps engineer needs to grant the EC2 instance access to the CodeArtifact repository. Which solution will meet this requirement?
Options
- ACreate a service-linked role for CodeArtifact. Associate the role with the EC2 instance. Use the
- BConfigure a resource-based policy for the CodeArtifact repository that allows the
- CConfigure ACLs on the CodeArtifact repository to allow the EC2 instance to access the Python
- DCreate an instance profile that contains an IAM role that has access to CodeArtifact. Associate
Unlock DOP-C02 to see the answer
You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.