Practice CloudFormation Questions Now
Start a timed practice session focusing on AWS CloudFormation topics from the DVA-C02 question bank.
Start DVA-C02 Practice Quiz →DVA-C02 CloudFormation Question Bank (26 Questions)
Browse all 26 practice questions covering AWS CloudFormation 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.
- Question 1Deployment
A developer uses AWS SAM to define a serverless application. Which CloudFormation transform is required in the template?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 2Deployment
A developer needs to pass sensitive configuration values to a CloudFormation stack without storing them in the template. Which parameter type should they use?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 3Deployment
A developer wants to deploy a CloudFormation stack across multiple accounts and regions from a single template. Which feature handles this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 4Deployment
A developer uses CloudFormation Nested Stacks. The root stack creates child stacks. What is a key operational consideration?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 5Deployment
A developer uses CloudFormation. A Lambda function requires the ARN of an SNS topic created in the same template. Which method is MOST appropriate?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 6Deployment
A team needs to deploy the same application stack to multiple AWS regions with different configurations per region. Which CloudFormation approach is most appropriate?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 7Troubleshooting and Optimization
A developer wants to check if a CloudFormation stack drift has occurred (resources changed outside of CloudFormation). Which feature detects this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 8Deployment
A developer uses SAM and wants to include shared infrastructure (e.g., a VPC) defined in a separate CloudFormation stack. Which SAM/CloudFormation feature is used?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 9Deployment
A developer uses CloudFormation to create a Lambda function. The function needs the ARN of an SQS queue created in the same stack. How should they reference it?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 10Deployment
Which AWS CDK command synthesizes a CDK app into a CloudFormation template?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 11Deployment
A CloudFormation template creates an S3 bucket. A developer wants to prevent accidental deletion. Which CloudFormation attribute enables this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 12Deployment
A developer uses CloudFormation to deploy an ECS service. The task definition references an ECR image. How should the image tag be managed in the template?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 13Troubleshooting 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?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 14Deployment
A developer wants to test a CloudFormation change set before executing it. Which feature shows the exact diff between current and proposed resource states?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 15Deployment
A CloudFormation stack update fails. What does CloudFormation do by default?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 16Deployment
A developer uses CloudFormation cross-stack references. Which functions allow exporting and importing values between stacks?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 17Deployment
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?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 18Deployment
A developer uses CloudFormation and wants to execute custom provisioning logic during stack create/update. Which resource type allows this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 19Deployment
A CloudFormation stack needs to create resources in a specific order. Resource B depends on Resource A's ARN. How should this dependency be expressed?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 20Deployment
Which CloudFormation resource enables a developer to wait for an EC2 instance to complete initialization (e.g., run user data scripts) before the stack proceeds?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 21Deployment
A developer uses CloudFormation and wants to deploy an RDS instance. Which DeletionPolicy protects against accidental data loss if the stack is deleted?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 22Deployment
A developer wants to prevent certain CloudFormation resources from being deleted when a stack is updated. Which resource attribute provides this protection?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 23Deployment
A developer uses CloudFormation to update a stack. The update requires replacing an EC2 instance. How can the developer minimize disruption?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 24Deployment
A developer creates a SAM template with an API Gateway and Lambda. After deployment, they update only the Lambda function code. What is the FASTEST way to redeploy?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 25Deployment
A developer builds a microservices application. Each service has its own CloudFormation stack. How should they manage shared infrastructure like a VPC?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz - Question 26Select All That ApplyDeployment
A developer uses AWS SAM and wants to define environment-specific settings (dev vs prod) without changing the template. Which SAM feature supports this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DVA-C02 Quiz
Key CloudFormation Concepts for DVA-C02
DVA-C02 CloudFormation Exam Tips
AWS CloudFormation questions in DVA-C02 are typically scenario-based. Focus on application development patterns, event-driven integration, and secure coding on AWS. Priority concepts: cloudformation, template, stack, change set, nested stack, drift.
What DVA-C02 Expects
- Anchor your answer in select developer-friendly managed services and patterns that minimize custom undifferentiated code.
- CloudFormation 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 CloudFormation 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 CloudFormation Concepts
- Know the core CloudFormation building blocks cold: cloudformation, template, stack, change set.
- Review the edge-case features and limits for nested stack, drift; these details are commonly used to differentiate answer choices.
- Practice service-integration reasoning: how CloudFormation pairs with SAM, CDK, Elastic Beanstalk in real deployment patterns.
- For DVA-C02, explain why the chosen CloudFormation 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 CloudFormation 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 CloudFormation 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 CloudFormation without relying on default-open assumptions?
- Can you describe how CloudFormation integrates with SAM and CDK during failure, scaling, and monitoring events?