nerdexam
Amazon

DVA-C02 · Question #357

A developer is building a new containerized application by using AWS Copilot. The developer uses the AWS Copilot command line interface (CLI) to deploy the application during development. The develope

The correct answer is C. Use the AWS Copilot CLI to define the AWS Copilot pipeline and to deploy the AWS. AWS Copilot has native pipeline support that integrates with CodeCommit and can provision a full CI/CD pipeline with a single CLI command, making it the most operationally efficient option for automating deployments.

Submitted by paula_co· Mar 5, 2026Deployment

Question

A developer is building a new containerized application by using AWS Copilot. The developer uses the AWS Copilot command line interface (CLI) to deploy the application during development. The developer committed the application code to a new AWS CodeCommit repository. The developer must create an automated deployment process before releasing the new application to production. What should the developer do to meet these requirements in the MOST operationally efficient way?

Options

  • ACreate a buildspec file that invokes the AWS Copilot CLI commands to build and deploy the
  • BUse the AWS Serverless Application Model (AWS SAM) CLI to bootstrap and initialize an AWS
  • CUse the AWS Copilot CLI to define the AWS Copilot pipeline and to deploy the AWS
  • DDefine an AWS CloudFormation template for an AWS CodePipeline with CodeCommit as the

How the community answered

(52 responses)
  • A
    10% (5)
  • B
    17% (9)
  • C
    69% (36)
  • D
    4% (2)

Why each option

AWS Copilot has native pipeline support that integrates with CodeCommit and can provision a full CI/CD pipeline with a single CLI command, making it the most operationally efficient option for automating deployments.

ACreate a buildspec file that invokes the AWS Copilot CLI commands to build and deploy the

Writing a buildspec file that calls Copilot CLI commands requires separately creating and maintaining a CodeBuild project or CodePipeline, duplicating orchestration that Copilot's native pipeline feature already handles automatically.

BUse the AWS Serverless Application Model (AWS SAM) CLI to bootstrap and initialize an AWS

The AWS SAM CLI is designed for serverless (Lambda-based) applications and does not natively manage or deploy containerized workloads defined with AWS Copilot.

CUse the AWS Copilot CLI to define the AWS Copilot pipeline and to deploy the AWSCorrect

Running copilot pipeline init generates the pipeline manifest and provisions an AWS CodePipeline tied to the CodeCommit repository, enabling automated build and deployment of the containerized application with minimal manual configuration and no separate tooling required.

DDefine an AWS CloudFormation template for an AWS CodePipeline with CodeCommit as the

Manually authoring a CloudFormation template for CodePipeline requires significantly more effort and ongoing maintenance compared to using Copilot's built-in pipeline commands, which generate and manage the infrastructure automatically.

Concept tested: AWS Copilot native CI/CD pipeline provisioning

Source: https://aws.github.io/copilot-cli/docs/concepts/pipelines/

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice