CodeBuild is a fully managed build service. It compiles your source code, runs tests, and produces deployable artifacts — scaling automatically so there are no build servers to manage.
The tell
When a scenario needs to compile code and run tests without maintaining build servers, that’s CodeBuild. It’s the build/test stage that CodePipeline usually invokes. Distinguish it from CodeDeploy (deployment) and CodeCommit (source repo).
Test yourself
A pipeline needs to compile source code and run unit tests on demand without managing any build servers. Which service?
- AWS CodeDeploy
- AWS CodeBuild
- AWS CodeCommit
- Amazon EC2
👉 Click to reveal the answer & explanation
Correct answer: B. CodeBuild is the managed build/test service that compiles code and runs tests with no servers to manage. CodeDeploy (A) handles deployment; CodeCommit (C) stores source; EC2 (D) would mean managing build servers yourself.
Related topics
AWS CodePipeline · AWS CodeDeploy · AWS CodeCommit
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