Courseiva

DOP-C02 Configuration Management and IaC Practice Question

Match each AWS service to its primary function in a DevOps pipeline.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Continuous delivery service for release pipelines

Fully managed continuous integration build service

Automates code deployments to any instance

Unified user interface for managing software development activities

Fully managed source control service hosting Git repositories

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

✓

CodeCommit: Source control service for storing and managing code

In a DevOps pipeline, AWS CodeCommit provides source control, CodeBuild compiles and tests code, CodeDeploy automates deployments, and CodePipeline orchestrates the entire CI/CD process. Common confusions include mixing up the roles of CodeCommit and CodeDeploy or CodeCommit and CodeBuild.

Answer analysis

Option-by-option breakdown

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

  • ✓

    CodeCommit: Source control service for storing and managing code

    Why this is correct

    AWS CodeCommit is a fully managed source control service that hosts secure, Git-based repositories, providing version control, branching, and pull request workflows. It stores and manages your source code and artifacts in private repositories with IAM-based access control, encryption, and integration with other AWS services. Unlike build or deployment tools, its scope ends at source management—no compilation or runtime deployment happens here.

  • ✓

    CodeBuild: Build service for compiling source code and running tests

    Why this is correct

    CodeBuild is a fully managed continuous integration build service that compiles source code, runs unit tests, and produces deployable artifacts such as JAR files or container images. It spins up ephemeral build environments on demand, scales automatically, and can be invoked directly or orchestrated by CodePipeline. It is not involved in hosting repositories or pushing deployments to instances.

  • ✓

    CodeDeploy: Deployment service for automating code deployments

    Why this is correct

    CodeDeploy is a fully managed deployment service that automates the rollout of application code and built artifacts to compute services such as Amazon EC2, AWS Lambda, and on-premises instances. It controls the pace of deployment using strategies like rolling, blue/green, and canary updates, and uses an AppSpec file to define lifecycle events like BeforeInstall and AfterInstall. It does not compile code or manage source control.

  • ✓

    CodePipeline: CI/CD service for automating build, test, and deploy phases

    Why this is correct

    CodePipeline is a fully managed continuous integration and continuous delivery (CI/CD) orchestration service that automates the build, test, and deploy phases as a configurable release process. It models workflows as pipelines containing stages (for example, Source, Build, Test, Production) and integrates natively with CodeCommit, CodeBuild, CodeDeploy, and third-party tools like GitHub or Jenkins. Its primary function is orchestrating the entire release process rather than performing any single step itself.

  • ✗

    CodeCommit: Service for deploying code to EC2 instances

    Why it's wrong here

    This is incorrect because CodeCommit is a source control service that stores and versions your code in Git repositories; it has no mechanism to deploy code to EC2 instances. Deployment—including pushing code to EC2, registering it with a load balancer, and managing the deployment lifecycle—is the responsibility of AWS CodeDeploy. Confusing the two would break the CI/CD pipeline because you would be expecting a Git repository to execute runtime operations that require deployment agents and orchestration.

  • ✗

    CodeBuild: Service for managing source code repositories

    Why it's wrong here

    This is incorrect because CodeBuild takes source code from a repository and compiles, tests, and packages it; it does not host repositories or manage branches, commits, or pull requests. Managing source code repositories is the job of CodeCommit, which provides Git-based storage, access control, and collaboration features. CodeBuild only consumes code as input during a build—it never acts as the system of record for your source.

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.