A team wants every push to the main branch to compile the application, run the test suite, and — only if the tests pass — deploy to a staging environment, with the whole sequence visible and repeatable rather than living in someone's shell history. Which service models that sequence?

AWS Certified Cloud Practitioner (CLF-C02), objective 3. Cloud technology and services medium

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

The options

Correct AWS CodePipeline

Correct. CodePipeline is the continuous delivery service: it models the stages, their order and the condition that one must succeed before the next runs, and it shows where a given change has reached.

Not correct AWS CodeBuild on its own

Wrong, because it is one stage of the sequence. CodeBuild compiles and tests and produces an artifact; it does not express 'and then deploy, if that passed'.

Not correct AWS CodeDeploy on its own

Wrong, and it is the other single stage. CodeDeploy takes an artifact that already exists and installs it onto instances, Lambda or ECS, with rollback. It neither builds nor orchestrates.

Not correct AWS CloudFormation

Wrong. CloudFormation provisions infrastructure from a template, and it is very often a step INSIDE such a pipeline. It is not the thing that decides which step runs next.

Why

Learn the developer tools by their verb. CodePipeline decides the order. CodeBuild makes the artifact. CodeDeploy puts it where it goes. The source repository is either AWS CodeCommit or a third-party service the pipeline connects to. Around them sit AWS Cloud9 as a browser IDE, AWS X-Ray for tracing a request across services, and AWS Amplify for building and hosting web and mobile front ends.

Where this comes from

Cited
AWS exam guide task statement 3.8

Practise this

Reading one question is not practice. The trainer will draw a set from objective 3 and space the ones you get wrong.

Practise AWS Certified Cloud Practitioner (CLF-C02)

More questions on this objective

All questions on Cloud technology and services