Courseiva
Development with AWS ServiceshardMultiple SelectObjective-mapped

DVA-C02 Development with AWS Services Practice Question

A company is using AWS CodePipeline to automate its deployment pipeline. The pipeline has a source stage that pulls code from Amazon S3, a build stage using AWS CodeBuild, and a deploy stage using AWS CodeDeploy. The developer wants to add a manual approval step before deployment to production. Which of the following are correct steps to implement this? (Choose THREE.)

⚠ Common exam trap

Candidates often think a separate pipeline or a custom script is needed for manual approval, but AWS CodePipeline provides a built-in approval action that integrates directly with SNS and IAM, making those external workarounds incorrect.

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

Configure the approval action to use an SNS topic for notifications.

AWS CodePipeline approval actions can be configured to send notifications via Amazon SNS when the action requires manual approval. This allows approvers to be alerted that an approval is pending, enabling timely review and progression of the pipeline.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add a second pipeline for the approval step.

    Why it's wrong here

    AWS CodePipeline is designed to manage a complete release process within a single pipeline, progressing through defined stages like Source, Build, Test, and Deploy. Introducing a second, separate pipeline solely for an approval step would break the continuous flow and introduce unnecessary complexity and orchestration challenges. Manual approval actions are inherently integrated as a stage within the *same* pipeline to gate subsequent stages, maintaining a cohesive deployment workflow.

  • Configure the approval action to use an SNS topic for notifications.

    Why this is correct

    When a manual approval action is configured in AWS CodePipeline, it can be integrated with Amazon SNS to send notifications to designated approvers. Upon reaching the approval stage, CodePipeline publishes a message to the specified SNS topic, which can then trigger email subscriptions or other endpoints to alert approvers. This ensures timely communication and allows approvers to access the approval console link directly from the notification, facilitating a prompt decision.

  • Use AWS CodeBuild to run a script that waits for manual approval.

    Why it's wrong here

    AWS CodeBuild is a fully managed build service primarily used for compiling source code, running tests, and producing deployable artifacts. It is not designed to pause execution indefinitely while waiting for external human input or manual approval. Attempting to implement a manual approval mechanism within a CodeBuild project would be an anti-pattern, leading to inefficient resource utilization and a complex, unreliable workaround for CodePipeline's native approval actions.

  • Create an IAM role that allows the pipeline to publish to the SNS topic.

    Why this is correct

    For AWS CodePipeline to successfully publish messages to an Amazon SNS topic when an approval action is initiated, it requires appropriate permissions. This is achieved by associating an IAM service role with the CodePipeline, which must include a policy granting `sns:Publish` actions on the specific SNS topic's ARN. Without these explicit permissions, the pipeline would fail to send notifications to approvers, halting the workflow and preventing progress.

  • Add an approval action to the pipeline before the deploy stage.

    Why this is correct

    To implement a manual gate before critical deployments, an approval action must be added as a dedicated stage within the AWS CodePipeline. Placing this stage directly before the deploy stage ensures that human review and explicit consent are obtained before any changes are pushed to production environments. This configuration effectively pauses the pipeline's execution until an authorized user manually approves or rejects the pending changes, providing a critical control point.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 724 original DVA-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 DVA-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 DVA-C02 exam.