CodeCommit is a fully managed, private Git repository hosting service. It stores your source code securely in AWS, integrated with IAM for access control and with the rest of the developer tools.

The tell

When a scenario needs a private, managed Git repository inside AWS (the source stage of a pipeline), that’s CodeCommit — the AWS equivalent of a private GitHub/GitLab repo, with IAM-based access. It feeds CodePipeline/CodeBuild.

Test yourself

Practice question

A company wants a private, managed Git repository hosted in AWS with IAM-based access control for its source code. Which service?

  1. Amazon S3
  2. AWS CodeCommit
  3. AWS CodeBuild
  4. Amazon ECR
👉 Click to reveal the answer & explanation

Correct answer: B. CodeCommit is the managed private Git repository service with IAM access control. S3 (A) stores objects, not Git repos; CodeBuild (C) builds code; ECR (D) stores container images.

Related topics

AWS CodePipeline · AWS CodeBuild · AWS IAM

CloudExamPro Premium

Ready to pass your AWS exam?

Stop guessing whether you’re ready. Our full-length, exam-realistic practice exams put you through the exact question style you’ll face — with a detailed explanation behind every answer, so you learn why, not just what.

  • ✓  6 full-length practice exams
  • ✓  A detailed explanation for every single question
  • ✓  Realistic, scenario-based questions — not memory dumps
  • ✓  Lifetime access, kept current for 2026

See the Practice Exam Packs →

Limited-time offer · ends in --Days:--Hrs:--Min:--Sec
Get Instant Access