Q97 — AWS DVA-C02 Ch.3

Question 97 of 100 | ← Chapter 3

A developer is using AWS Copilot to build a new containerized application. The developer deploys the application during development using the AWS Copilot CLI. The application code is pushed to a new AWS CodeCommit repository. Before releasing the new application to production, the developer must create an automated deployment pipeline. To meet these requirements with maximum operational efficiency, what should the developer do?

Correct Answer: C. Use the AWS Copilot CLI to define an AWS Copilot pipeline and deploy AWS CodePipeline. Select CodeCommit as the source for the AWS CodePipeline.

Explanation

Option C is correct. AWS Copilot natively supports defining and deploying CI/CD pipelines via its CLI using the `copilot pipeline init` and `copilot pipeline deploy` commands. When initialized with CodeCommit as the source, Copilot automatically generates and deploys a fully configured AWS CodePipeline—including source, build (CodeBuild), and deploy (ECS/EKS) stages—without requiring manual CloudFormation authoring, external tooling (e.g., SAM), or custom buildspecs. This approach maximizes operational efficiency by leveraging Copilot’s opinionated, integrated pipeline automation. Options A, B, and D introduce unnecessary complexity, external dependencies, or unsupported configurations (e.g., SAM CLI doesn’t orchestrate Copilot pipelines; CloudFormation add-ons aren’t a Copilot feature).