Courseiva
Design for New Solutions →easyMultiple Choice

SAP-C02 Design for New Solutions Practice Question

A company is designing a new CI/CD pipeline for a web application that will be deployed on Amazon ECS. Which AWS service should the company use to build and test the application code?

⚠ Common exam trap

A common mix-up: candidates confuse AWS CodePipeline (the orchestration layer) with the actual build service, mistakenly thinking that CodePipeline itself performs the build and test steps, when in fact it only coordinates other services like CodeBuild.

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 CodeBuild

AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs tests, and produces software packages that are ready to deploy. For a CI/CD pipeline that requires building and testing application code before deployment to Amazon ECS, CodeBuild is the correct service to perform these build and test actions.

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 it's wrong here

    CodePipeline orchestrates stages and invokes other services; it does not compile or run tests itself. It is the right choice for modelling the release workflow end to end, but the build and test execution must be performed by AWS CodeBuild.

  • ✗

    AWS CodeDeploy

    Why it's wrong here

    CodeDeploy orchestrates deployment of application revisions onto compute targets such as EC2, Lambda or ECS; it performs no compilation or test execution. It is tempting because it belongs to the same CI/CD family and integrates with CodePipeline, but the build-and-test stage requires CodeBuild, which compiles source and runs test commands in a provisioned container.

  • ✗

    AWS CodeCommit

    Why it's wrong here

    CodeCommit is a managed Git repository that stores and versions source code; it cannot compile artefacts or execute test suites. It is tempting because it sits at the start of the same pipeline and triggers downstream stages, but the question asks for the service that builds and tests, which is CodeBuild.

  • ✓

    AWS CodeBuild

    Why this is correct

    AWS CodeBuild is a fully managed build service that compiles source code, runs unit tests, and produces deployable artefacts, integrating natively with CodePipeline and ECS. This satisfies the requirement to build and test the application code within the CI/CD pipeline.

About these practice questions

This SAP-C02 question is part of Courseiva's 984-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 SAP-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 SAP-C02 exam.