A developer used the AWS Copilot CLI during development to deploy a containerized application and committed the code to a new CodeCommit repository. The developer now needs an automated deployment pipeline for production with minimal operational effort. What is the most efficient way to create the automation?
Choose an answer
Tap an option to check your answer.
Correct answer: Use the AWS Copilot CLI to define and create a Copilot-managed pipeline (CodePipeline) and select the CodeCommit repository as the pipeline source..
Why this is the answer
The AWS Copilot CLI is designed to simplify the deployment and management of containerized applications. It includes built-in functionality to create and manage CI/CD pipelines (AWS CodePipeline) directly from the CLI. Since the application was initially deployed using Copilot, leveraging its pipeline creation feature (copilot pipeline init and copilot pipeline deploy) is the most efficient and integrated approach, requiring minimal operational effort. This command will automatically configure CodePipeline with CodeCommit as the source and integrate with Copilot's deployment mechanisms. The other options are less efficient: Adding a buildspec.yml and manually creating a CodePipeline with Copilot CLI commands in CodeBuild is possible but more complex than using Copilot's native pipeline creation. The AWS SAM CLI is for serverless applications and is not the primary tool for managing containerized applications deployed with Copilot. Authoring a CloudFormation template for CodePipeline and registering it as a Copilot add-on is overly complex for this common use case, as Copilot already provides a direct solution.
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