Courseiva
Cloud Technology and ServiceseasyMultiple ChoiceObjective-mapped

CLF-C02 Cloud Technology and Services Practice Question

A company needs to implement DevOps practices and wants a fully managed service to store their application source code with version control. Which AWS service provides managed Git repositories?

⚠ Common exam trap

Many exam-takers confuse AWS CodeCommit with AWS CodeBuild or CodeDeploy because all three are part of the AWS Developer Tools suite, but only CodeCommit provides managed Git repositories for version control.

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 CodeCommit

AWS CodeCommit is a fully managed source control service that hosts secure Git-based repositories. It eliminates the need to operate your own source control system by providing managed Git repositories that integrate with other AWS services, making it the correct choice for storing application source code with version control.

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 CodeBuild

    Why it's wrong here

    CodeBuild is a fully managed continuous integration service that compiles source code, runs unit tests, and produces deployable artifacts. It pulls source from a repository such as CodeCommit, GitHub, or S3, but it provides no Git remote endpoints, no commit or branch management, and no version history storage. Because it only consumes source code during the build process, CodeBuild is a build engine rather than a source control repository.

  • AWS CodeCommit

    Why this is correct

    AWS CodeCommit is a managed source control service that hosts private Git repositories, giving developers full Git functionality including push, pull, branching, merging, and commit history. It integrates with IAM for fine-grained authentication and authorization, encrypts repositories in transit and at rest using AWS KMS, and works natively with CodeBuild, CodePipeline, and other AWS developer tools. This makes CodeCommit the correct service when the requirement is a durable, versioned repository for source code.

  • AWS CodeDeploy

    Why it's wrong here

    CodeDeploy is an automated deployment service that copies an application revision from an external source—such as Amazon S3, GitHub, or CodeCommit—to target compute resources including EC2, Lambda, or ECS. It orchestrates rolling updates, deployment strategies, and lifecycle hooks, but it does not host a Git repository or provide any mechanism for storing source code revision history. CodeDeploy is the delivery mechanism that pushes code into production, not the authority where source code lives.

  • AWS CodeArtifact

    Why it's wrong here

    CodeArtifact is a managed artifact repository for software packages such as npm, Maven, PyPI, and NuGet, enabling centralized storage, sharing, and dependency management with support for upstream repositories. It stores versioned binary/package artifacts and their metadata, not human-authored source files or Git commit history. Since the question asks for a source code repository, CodeArtifact corresponds to a later stage of the CI/CD pipeline where compiled packages are stored, not source files.

About these practice questions

This CLF-C02 question is part of Courseiva's 988-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 CLF-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 CLF-C02 exam.