3.0 Deployment DVA-C02 Practice Quiz
120 exam-style questions covering 24% of the DVA-C02 exam. Instant feedback on every answer, progress tracking, no signup required.
This domain is part of the AWS Certified Developer Associate practice test. Each question is tagged by exam objective and difficulty so you can drill exactly the areas you need.
Sample Questions
A Lambda deployment ZIP fails because the handler imports a library that was not included. What should be added to the artifact?
- A. The required runtime dependency or a referenced Lambda layer
- B. An API Gateway stage variable
- C. A CodePipeline manual approval
- D. A CloudWatch alarm
Lambda can import the library only if it is packaged with the function or supplied by a layer available at runtime. This is the correct answer.
A Lambda function needs a shared observability extension across multiple functions. Which packaging option fits?
- A. A Lambda layer or extension included with the functions
- B. A DynamoDB global secondary index
- C. A Route 53 record set
- D. A CodeBuild badge
Layers and extensions can distribute shared runtime components without copying the same files into every function package. This is the correct answer.
A containerized application must use a specific application configuration file at startup. Where should the file be handled?
- A. Only in the CodeCommit pull request description
- B. Inside the container image or mounted and referenced by the task configuration
- C. Only as an API Gateway model
- D. Only in a Lambda destination
The runtime needs the configuration file through the image or task definition so the application can read it when the container starts. This is the correct answer.
A SAM application has multiple Lambda functions and shared source code. What directory practice helps deployment?
- A. Store all files in one untracked desktop folder
- B. Use a clear source tree with function folders and shared modules referenced consistently
- C. Put handler code only in API Gateway stage names
- D. Place deployment templates inside CloudWatch metrics
A predictable structure lets build tools locate handlers, dependencies, templates, and shared modules during packaging. This is the correct answer.
A container build fails because the Dockerfile copies files from paths that do not exist in the build context. What should be fixed?
- A. API Gateway throttling limits
- B. Dockerfile COPY paths or repository directory layout
- C. Lambda asynchronous destination settings
- D. Cognito user pool domain
The Docker build context controls which files are available, so COPY instructions must match the repository layout. This is the correct answer.
A Node.js Lambda deployment uses native dependencies compiled for a laptop OS and fails in AWS. What should the developer do?
- A. Increase the API Gateway timeout
- B. Add an SNS subscription filter
- C. Build dependencies for the Lambda runtime environment
- D. Rename the handler file only
Native packages must match the Lambda runtime and architecture, so they should be built in a compatible environment. This is the correct answer.
A CodeBuild project cannot find the buildspec file. What should be checked?
- A. The Lambda reserved concurrency value
- B. The SQS visibility timeout
- C. The repository path and expected buildspec.yml location
- D. The KMS rotation schedule
CodeBuild needs the buildspec at the configured path so it can run the install, build, and artifact phases. This is the correct answer.
A deployment artifact includes dev-only test frameworks and becomes too large. What should be adjusted?
- A. Disable all unit tests permanently
- B. Move dependencies into CloudWatch Logs
- C. Put the package in every API Gateway stage variable
- D. Package only production dependencies needed at runtime
Removing dev-only dependencies reduces artifact size while preserving the libraries the application actually needs in production. This is the correct answer.
Key Terms in This Domain
- AWS CodeDeploy: Automated application deployment to compute services
- AWS CodePipeline: Continuous delivery service for application and infrastructure updates
- API Gateway stages: Named deployment of an API (dev, test, prod) with its own settings and stage variables
- AWS SAM: Framework to package and deploy serverless applications via CloudFormation
- AWS CloudFormation: Infrastructure as code via declarative templates
- CloudFormation change sets: Preview of resource changes before applying a template update
- AWS CodeArtifact: Managed artifact repository for software packages
- AWS CodeBuild: Managed build service for compiling code and running tests
- AWS IAM: Identity and access management for AWS resources
- Blue/green deployment: Run two production environments and switch traffic between them
Link to this quiz
Studying with a group or teaching a class? Send this address or paste the link into your notes, wiki, or course page:
https://quizbuffet.com/aws-developer-associate/deployment/
<a href="https://quizbuffet.com/aws-developer-associate/deployment/">AWS Certified Developer Associate Deployment practice quiz on QuizBuffet</a>
Other DVA-C02 Domains
← Back to DVA-C02 practice test overview
Questions are written against the published DVA-C02 objectives and checked for accuracy and balance before they go live. How QuizBuffet writes and reviews its questions.