🔄 AWS CodePipeline - DVA-C02 Practice Questions

Automate CI/CD with CodePipeline — stages, actions, source providers, build and deploy actions, manual approvals, cross-region/account pipelines, and artifact stores.

21Questions Available
1Exam Domains

Practice CodePipeline Questions Now

Start a timed practice session focusing on AWS CodePipeline topics from the DVA-C02 question bank.

Start DVA-C02 Practice Quiz →

DVA-C02 CodePipeline Question Bank (21 Questions)

Browse all 21 practice questions covering AWS CodePipeline for the DVA-C02 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.

  1. Question 1Deployment

    A developer uses CodePipeline and wants to test the artifact from the build stage before deploying. Which stage type is appropriate?

    ADeploy stage with manual approval
    BTest stage using CodeBuild or a third-party testing provider
    CSource stage with a test script
    DBuild stage with a test phase

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  2. Question 2Deployment

    A developer uses AWS CodePipeline to automate the release of a serverless application. They want commits to the main branch to automatically build, test, and deploy. Which CodePipeline action provider builds and packages the application?

    AAWS CodeDeploy
    BAWS CodeBuild
    CAWS CloudFormation
    DAmazon S3

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  3. Question 3Deployment

    A CodePipeline action uses CodeBuild to build artifacts. Where does CodeBuild look for build instructions?

    Aappspec.yml
    Bbuildspec.yml
    CMakefile
    Dtemplate.yml

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  4. Question 4Deployment

    A developer uses CodeBuild and wants build output (artifacts) to be available in the next CodePipeline stage. Where should artifacts be configured?

    AIn the CodeBuild environment variables
    BIn the buildspec.yml artifacts section and the CodeBuild action's output artifacts in CodePipeline
    CUploaded manually to S3
    DIn the CodeBuild source credentials

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  5. Question 5Deployment

    A developer wants CodePipeline to deploy to an ECS service using a new Docker image. Which action provider performs this deployment?

    ACodeDeploy action with ECS
    BAmazon ECS action (Deploy to ECS)
    CCloudFormation action with ECS update
    DCodeBuild action with ECS CLI

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  6. Question 6Deployment

    A developer uses CodePipeline with a manual approval stage. Who receives notification of pending approvals?

    AThe pipeline automatically approves after a timeout
    BAn SNS topic configured on the approval action
    CThe AWS root account
    DCloudWatch Events triggers an alert

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  7. Question 7Deployment

    In a CodePipeline pipeline, what is the role of the Source stage?

    ACompiles and builds application artifacts
    BTriggers the pipeline on code changes and retrieves source artifacts
    CDeploys the application to the target environment
    DRuns automated tests

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  8. Question 8Deployment

    A developer uses CodePipeline with a CodeDeploy deploy stage. The deployment fails. Where should the developer look for the root cause?

    ACodePipeline console execution history
    BCodeDeploy deployment event log and EC2 instance CodeDeploy agent log (/var/log/aws/codedeploy-agent)
    CCloudTrail event history for CodePipeline
    DS3 artifact bucket access logs

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  9. Question 9Troubleshooting and Optimization

    A developer uses CodePipeline and wants to get notified when a deployment fails. Which is the SIMPLEST configuration?

    AAdd a Lambda function to poll CodePipeline status
    BCreate an EventBridge rule for CodePipeline state change (FAILED) and target an SNS topic
    CUse CloudTrail to detect CodePipeline failures
    DAdd a manual approval step that triggers an alert

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  10. Question 10Deployment

    A developer uses CodePipeline with a GitHub source. The GitHub connection uses OAuth. Which service manages this connection securely?

    AAWS Secrets Manager
    BAWS CodeStar Connections (now AWS Connections)
    CAWS IAM OAuth integration
    DAWS Systems Manager Parameter Store

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  11. Question 11Deployment

    A developer wants to run integration tests against a deployed Lambda function as part of the CodePipeline after deployment. Which approach is BEST?

    ARun tests in the CodeBuild build stage before deployment
    BAdd a Test stage after Deploy, using CodeBuild to invoke Lambda endpoints and validate responses
    CUse CloudWatch alarms to detect test failures
    DAdd a manual approval stage for testing

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  12. Question 12Deployment

    A developer builds a multi-stage Docker image for a Lambda function. Which base image should they use for production Lambda deployments?

    Aubuntu:latest
    BAn AWS-provided Lambda base image from ECR Public (public.ecr.aws/lambda/python:3.12)
    Calpine:latest
    Damazonlinux:2

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  13. Question 13Deployment

    A developer uses AWS SAM to define Lambda functions and API Gateway resources as code. Which AWS service does SAM use to deploy the infrastructure?

    AAWS Elastic Beanstalk
    BAWS CodeDeploy
    CAWS CloudFormation
    DAWS Systems Manager

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  14. Question 14Deployment

    A CloudFormation stack fails to create due to a missing IAM permission. The developer fixes the permission and re-runs the deployment. What does CloudFormation do with resources created before the failure?

    ALeaves them as-is from the first attempt
    BRolls them back, then re-creates all resources in the new attempt
    CSkips re-creating them since they already exist
    DDeletes the stack and requires a fresh deployment

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  15. Question 15Deployment

    A developer uses CloudFormation and needs to create a resource only when a specific condition is true (e.g., deploy in production). Which feature handles this?

    ACloudFormation Mappings
    BCloudFormation Conditions with Fn::If
    CCloudFormation Parameters with AllowedValues
    DCloudFormation Rules

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  16. Question 16Deployment

    A developer uses AWS CodeStar Connections to connect CodePipeline to a GitHub repository. What does the connection enable?

    AGitHub Actions to trigger CodePipeline
    BCodePipeline to detect GitHub repository changes and pull source code
    CGitHub to deploy directly to Lambda
    DAWS CodeCommit to mirror GitHub

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  17. Question 17Deployment

    A developer uses AWS CDK. After running 'cdk deploy', the deployment fails because a resource type is not supported in the target region. What should they do?

    AUse CloudFormation StackSets
    BCheck AWS regional service availability and select a supported region
    CUse the --region flag to deploy to a different region
    DUpgrade the CDK version

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  18. Question 18Troubleshooting and Optimization

    A CloudFormation deployment fails with 'ROLLBACK_IN_PROGRESS'. The developer wants to keep failed resources for debugging. How?

    ADisable rollback by setting --on-failure DO_NOT_ROLLBACK when creating the stack
    BUse a CloudFormation change set
    CEnable CloudFormation drift detection
    DUse DeletionPolicy: Retain on all resources

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  19. Question 19Troubleshooting and Optimization

    A developer wants to verify that a CloudFormation template change will not replace or delete critical resources before deploying. Which feature provides this?

    ACloudFormation drift detection
    BCloudFormation change sets
    CCloudFormation stack policies
    DCloudFormation rollback triggers

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  20. Question 20Deployment

    A developer uses CloudFormation and needs to conditionally set a resource property based on whether the deployment is in a production environment. Which intrinsic function is used?

    AFn::Select
    BFn::If
    CFn::FindInMap
    DFn::Join

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz
  21. Question 21Development with AWS Services

    A developer wants to build a GraphQL API backed by multiple data sources (DynamoDB, Lambda, HTTP). Which AWS service is designed for this?

    AAPI Gateway REST API
    BAWS AppSync
    CAPI Gateway HTTP API
    DAWS Step Functions

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DVA-C02 Quiz

Key CodePipeline Concepts for DVA-C02

codepipelinepipelineci/cdstageactionsourcebuilddeploymanual approvalartifact

DVA-C02 CodePipeline Exam Tips

AWS CodePipeline questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: codepipeline, pipeline, ci/cd, stage, action, source.

What DVA-C02 Expects

  • Anchor your answer in select developer-friendly managed services and patterns that minimize custom undifferentiated code.
  • CodePipeline scenarios for DVA-C02 are frequently mapped to Domain 3 (24%), so read the objective carefully before picking controls or architecture.
  • Expect multi-topic scenarios where CodePipeline interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated question.
  • When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Associate) and vendor best practices.

High-Value CodePipeline Concepts

  • Know the core CodePipeline building blocks cold: codepipeline, pipeline, ci/cd, stage.
  • Review the edge-case features and limits for action, source; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how CodePipeline pairs with CodeBuild, CodeDeploy, Codecommit in real deployment patterns.
  • For DVA-C02, explain why the chosen CodePipeline design meets reliability, security, and cost expectations better than the alternatives.

Common DVA-C02 Traps

  • Watch for using infrastructure-centric answers instead of application-centric ones.
  • Questions in Deployment often include distractors that look correct for CodePipeline but violate least-privilege, durability, or availability requirements.
  • Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
  • If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.

Fast Review Checklist

  • Can you compare at least two CodePipeline implementation paths and justify which one best fits the scenario?
  • Can you map the chosen answer back to Deployment (24%) outcomes for DVA-C02?
  • Can you explain security and access boundaries for CodePipeline without relying on default-open assumptions?
  • Can you describe how CodePipeline integrates with CodeBuild and CodeDeploy during failure, scaling, and monitoring events?

Exam Domains Covering CodePipeline

Related Resources

More DVA-C02 Study Resources