Courseiva
SDLC Automation →mediumMultiple Choice

DOP-C02 SDLC Automation Practice Question

A DevOps engineer needs to automate the creation of an AWS CodeStar project for a new microservice. The engineer wants to use AWS CloudFormation to define the project and its resources. Which CloudFormation resource should be used?

⚠ Common exam trap

A common mix-up: candidates confuse CodeStar with its underlying services (CodePipeline, CodeBuild) and select a resource that creates only a part of the CI/CD pipeline, rather than the integrated project resource that automates the entire CodeStar project setup.

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::CodeStar::Project

AWS::CodeStar::Project is the correct CloudFormation resource because it directly creates an AWS CodeStar project, which is a project management hub that integrates AWS services like CodeCommit, CodeBuild, CodeDeploy, and CodePipeline for continuous delivery. This resource allows you to define the project template, source repository, and other settings in a single CloudFormation stack, automating the entire CodeStar project creation.

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::CodeStar::Project

    Why this is correct

    AWS::CodeStar::Project is the CloudFormation resource that directly provisions a CodeStar project, bundling the project's underlying CI/CD infrastructure (typically CodePipeline, CodeBuild, an S3 bucket, and IAM roles) into a managed unit. It also creates the CodeStar project entry that appears in the developer dashboard and supports team member management. This is the only resource among the options that represents the CodeStar project itself, rather than a single constituent service.

  • ✗

    AWS::ServiceCatalog::CloudFormationProduct

    Why it's wrong here

    AWS::ServiceCatalog::CloudFormationProduct is used to define a Service Catalog product, which lets you package a CloudFormation template that end users can launch through the AWS Service Catalog catalog. It has no relationship to CodeStar project creation, as it deals with product portfolios, versioning, and provisioning constraints rather than orchestrating a developer project and its pipeline. Selecting it would build a self-service catalog item, not a CodeStar project.

  • ✗

    AWS::CodePipeline::Pipeline

    Why it's wrong here

    AWS::CodePipeline::Pipeline creates only a continuous delivery pipeline—a sequence of stages (source, build, deploy)—and not the CodeStar project wrapper around it. While a CodeStar project does automatically create a pipeline as part of its resource stack, the CodePipeline resource alone lacks the project dashboard, team management features, and the associated project metadata that CodeStar project creation requires.

  • ✗

    AWS::CodeBuild::Project

    Why it's wrong here

    AWS::CodeBuild::Project provisions a single build project where the service runs build commands against source repositories, producing build artifacts. It is only one possible component of a CodeStar project's toolchain and does not generate the CodeStar project itself, so a developer would still need to manually create or else orchestrate the CodeStar wrapper and its integrated dashboard.

About these practice questions

One of 1,298 original DOP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 DOP-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 DOP-C02 exam.