🔨 AWS CodeBuild - DVA-C02 Practice Questions

Compile, test, and package code with CodeBuild — buildspec.yml, phases, environment variables, caching, custom images, reports, and VPC access.

10Questions Available
1Exam Domains

Practice CodeBuild Questions Now

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

Start DVA-C02 Practice Quiz →

DVA-C02 CodeBuild Question Bank (10 Questions)

Browse all 10 practice questions covering AWS CodeBuild 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 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
  2. Question 2Deployment

    A developer creates a CodeBuild project that builds a Docker image and pushes to ECR. Which buildspec.yml phase should contain the 'docker push' command?

    Ainstall
    Bpre_build
    Cbuild
    Dpost_build

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  3. Question 3Deployment

    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
  4. Question 4Deployment

    A CodeBuild project needs to cache npm dependencies between builds. Which cache type stores the cache in S3?

    ALOCAL cache
    BNO_CACHE
    CS3 cache
    DECR cache

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  5. Question 5Deployment

    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
  6. Question 6Deployment

    A developer uses CodeBuild for CI. The build must access a private GitHub repo. How should CodeBuild authenticate to GitHub?

    AEmbed GitHub credentials in buildspec.yml
    BUse a GitHub personal access token stored in Secrets Manager, referenced in the CodeBuild source credentials
    CUse an EC2 key pair for GitHub SSH
    DUse AWS IAM role for GitHub OAuth

    Answer hidden for practice.

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

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

    A developer uses CodeBuild and the build times out after 60 minutes. The default timeout is 8 hours. What might cause this?

    AThe build is hitting a rate limit from AWS
    BA custom timeout was set on the CodeBuild project (60 minutes) that is too short
    CCodeBuild does not support builds longer than 60 minutes
    DThe buildspec.yml is missing a timeout configuration

    Answer hidden for practice.

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

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

    A developer is building a mobile app backend using API Gateway and Lambda. They want to cache frequently accessed API responses to reduce Lambda invocations and latency. Which feature should they enable?

    ALambda Provisioned Concurrency
    BAPI Gateway Usage Plans
    CAPI Gateway Caching
    DLambda Reserved Concurrency

    Answer hidden for practice.

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

    Start DVA-C02 Quiz
  9. Question 9Deployment

    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
  10. Question 10Development with AWS Services

    A developer is building a real-time leaderboard. Which data structure in ElastiCache for Redis is BEST suited for ranking users by score?

    AString
    BHash
    CSorted Set
    DList

    Answer hidden for practice.

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

    Start DVA-C02 Quiz

Key CodeBuild Concepts for DVA-C02

codebuildbuildspecbuildcompiletestcacheenvironment variablereportartifact

DVA-C02 CodeBuild Exam Tips

AWS CodeBuild questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: codebuild, buildspec, build, compile, test, cache.

What DVA-C02 Expects

  • Anchor your answer in select developer-friendly managed services and patterns that minimize custom undifferentiated code.
  • CodeBuild 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 CodeBuild 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 CodeBuild Concepts

  • Know the core CodeBuild building blocks cold: codebuild, buildspec, build, compile.
  • Review the edge-case features and limits for test, cache; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how CodeBuild pairs with CodePipeline, CodeDeploy, ECR in real deployment patterns.
  • For DVA-C02, explain why the chosen CodeBuild 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 CodeBuild 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 CodeBuild 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 CodeBuild without relying on default-open assumptions?
  • Can you describe how CodeBuild integrates with CodePipeline and CodeDeploy during failure, scaling, and monitoring events?

Exam Domains Covering CodeBuild

Related Resources

More DVA-C02 Study Resources