Courseiva
SDLC Automation →easyMultiple Choice

DOP-C02 SDLC Automation Practice Question

A development team wants to automate infrastructure provisioning using AWS CloudFormation. Which tool is specifically designed to manage CloudFormation templates as part of a deployment pipeline?

⚠ Common exam trap

Many candidates confuse AWS CodeDeploy (which deploys application code) with CloudFormation (which provisions infrastructure), leading them to select CodeDeploy instead of recognizing that CodePipeline is the service that orchestrates the entire deployment pipeline including CloudFormation actions.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

AWS CodePipeline

AWS CodePipeline is the correct answer because it is a fully managed continuous delivery service that allows you to model, visualize, and automate the steps required to release your infrastructure changes. You can integrate CloudFormation as a deployment action within a pipeline stage, enabling the automated creation, update, or deletion of stacks based on template changes committed to a source repository.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    AWS CodePipeline

    Why this is correct

    AWS CodePipeline is a fully managed continuous delivery service that orchestrates the entire release workflow, from source through build to deployment. As an orchestration engine, it can directly invoke AWS CloudFormation actions to provision or update infrastructure stacks at any stage. It supports custom actions, manual approval gates, and seamless integration with other AWS services, making it the correct choice for automating infrastructure provisioning as part of a CI/CD pipeline.

  • ✗

    AWS CodeCommit

    Why it's wrong here

    AWS CodeCommit is a highly available and secure Git-based version control service designed to store and manage source code, configuration files, and artifacts. It is purely a source control system and provides distributed revision control only, with no runtime for executing commands or scheduling workflows. Because it does not trigger or orchestrate any deployment processes, it cannot automate infrastructure provisioning; it only supplies the revision input that other CI/CD tools would consume.

  • ✗

    AWS CodeBuild

    Why it's wrong here

    AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs unit tests, and produces deployable artifacts using build specifications. Although it can execute the AWS CLI or run CloudFormation templates as shell commands, it is a build worker, not a deployment orchestrator, and it lacks the built-in stage sequencing, cross-account action integration, and lifecycle management of a pipeline service. Using CodeBuild alone to provision CloudFormation stacks would place an operational burden on script logic and would not provide the automated transitions and approvals needed for a robust infrastructure delivery pipeline.

  • ✗

    AWS CodeDeploy

    Why it's wrong here

    AWS CodeDeploy is a service that automates the deployment of application revisions (e.g., code, scripts, packaged apps) to a set of targets such as Amazon EC2 instances, AWS Lambda, or Amazon ECS. It focuses on the application-level release process and does not have native actions to create, update, or delete AWS CloudFormation stacks or other infrastructure resources. CodeDeploy is therefore the wrong tool for infrastructure provisioning, which requires an orchestration layer that understands the desired-state mechanics of infrastructure as code.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

About these practice questions

Courseiva writes every DOP-C02 question from scratch — 1,298 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.