Courseiva
Design for New SolutionseasyMultiple ChoiceObjective-mapped

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 the CI/CD pipeline but does not build code.

  • AWS CodeDeploy

    Why it's wrong here

    CodeDeploy is for deploying code to compute services.

  • AWS CodeCommit

    Why it's wrong here

    CodeCommit is for storing code, not building.

  • AWS CodeBuild

    Why this is correct

    CodeBuild is a managed build service for compiling and testing code.

About these practice questions

This SAP-C02 question is part of Courseiva's 1,660-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.