Practice CloudFormation Questions Now
Start a timed practice session focusing on AWS CloudFormation topics from the DOP-C02 question bank.
Start DOP-C02 Practice Quiz →DOP-C02 CloudFormation Question Bank (43 Questions)
Browse all 43 practice questions covering AWS CloudFormation for the DOP-C02 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.
- Question 1Configuration Management and IaC
A DevOps engineer is deploying a CloudFormation stack with an RDS database. The RDS master password should not appear in the CloudFormation template. What is the CORRECT approach?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 2Configuration Management and IaC
A team wants to ensure that CloudFormation nested stacks' outputs can be referenced by parent stacks. What is the CloudFormation construct for this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 3Configuration Management and IaC
A company has a large CloudFormation template with 500+ resources. Template updates are slow (20+ minutes). What techniques reduce CloudFormation stack update time?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 4Configuration Management and IaC
A company's CloudFormation stack includes a custom resource (Lambda-backed) that calls an external API during deployment. The external API is rate-limited to 1 request per second. CloudFormation calls the custom resource for many resources simultaneously, causing throttling. What resolves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 5Configuration Management and IaC
A company wants to manage application configuration (database URLs, feature flags) separately from their CloudFormation infrastructure templates. Changes to application config should not require CloudFormation stack updates. What service is BEST for this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 6Configuration Management and IaC
A company uses CloudFormation with 20 stacks. Stack creation takes a long time because of complex custom resources. They want to identify which custom resources are slow. What debugging approach helps?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 7Configuration Management and IaC
A company uses CloudFormation StackSets to deploy to 100 accounts. A change to the StackSet template should only deploy to 10 accounts at a time to limit blast radius. What StackSet setting controls deployment rate?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 8Security and Compliance
A DevOps team wants to scan CloudFormation templates in their CodeBuild pipeline to reject templates that create overly permissive IAM roles. Which AWS-native tool provides rule-based CloudFormation template validation?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 9Configuration Management and IaC
A company wants to enforce that all CloudFormation templates are validated against security policies before deployment. Policies include: 'no security groups allow 0.0.0.0/0 on port 22'. What tool enables policy-as-code for CloudFormation?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 10Configuration Management and IaC
A CloudFormation template creates an EC2 instance and a database. The database must be created BEFORE the instance. How should this dependency be specified?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 11Configuration Management and IaC
A DevOps engineer needs to detect when EC2 instances' software configurations diverge from their CloudFormation template definitions. What CloudFormation feature provides this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 12SDLC Automation
A company needs to create a CodePipeline that automatically deploys infrastructure changes when a CloudFormation template is modified in CodeCommit. What is the pipeline structure?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 13Configuration Management and IaC
A team uses CDK for infrastructure. They run 'cdk synth' and the resulting CloudFormation template is 6MB — too large for direct CloudFormation deployment (limit is 1MB for API calls). What is the solution?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 14Security and Compliance
A company wants to verify that their AWS CDK-generated CloudFormation templates comply with their internal security policy before any deployment. What is the MOST scalable approach?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 15SDLC Automation
A company wants to implement testing for their CloudFormation templates using TaskCat. TaskCat deploys the template in multiple regions with different parameter configurations. How should this integrate with CodePipeline?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 16Configuration Management and IaC
A company uses CloudFormation and wants to validate all templates against NIST 800-53 security controls automatically. What tool provides NIST-aligned CloudFormation template scanning?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 17Configuration Management and IaC
A company's CloudFormation templates contain hundreds of duplicate resource configurations (the same S3 bucket policy across 50 templates). They want to eliminate duplication. What CloudFormation feature reduces this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 18SDLC Automation
A company's pipeline produces multiple artifacts (Docker image, Lambda zip, CloudFormation template). They need to store all artifacts and share them between pipeline stages. What is the correct CodePipeline configuration?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 19SDLC Automation
A company wants to automate deployment of AWS Service Catalog products via pipeline. New versions of portfolio products should be deployed automatically when the underlying CloudFormation template changes. What is the CORRECT implementation?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 20Configuration Management and IaC
A company wants to prevent CloudFormation from ever deleting their production DynamoDB table, even if the template is updated to remove the resource. What is the CORRECT configuration?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 21Configuration Management and IaC
A company's CloudFormation custom resource Lambda function needs to return values (e.g., generated password) back to CloudFormation for use in other resources. How should the Lambda return data?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 22Security and Compliance
A company wants to implement security controls in their CDK pipeline that automatically scan CloudFormation templates for hardcoded secrets before deployment. What tool provides this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 23Configuration Management and IaC
A team uses AWS CloudFormation to deploy infrastructure. During an update, the stack fails. The team wants to prevent automatic rollback to investigate the failure state. How should they configure this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 24Configuration Management and IaC
A CloudFormation stack update fails and the stack rolls back, but the rollback also fails. The stack enters UPDATE_ROLLBACK_FAILED state. What is the recommended course of action?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 25Configuration Management and IaC
A company has 50 AWS accounts and needs to deploy a standard CloudFormation stack (VPC, security groups, baseline IAM roles) to all accounts. What service manages this at scale?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 26Configuration Management and IaC
A team is migrating from CloudFormation to AWS CDK. They have 200 existing CloudFormation stacks. What is the RECOMMENDED approach to adopt CDK without disrupting existing infrastructure?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 27Configuration Management and IaC
A company uses CloudFormation to deploy infrastructure. They want to prevent any update to a production stack that would modify or delete the production RDS database. What CloudFormation feature achieves this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 28Configuration Management and IaC
A company wants to create self-destruct development environments — CloudFormation stacks that automatically delete after 8 hours. What is the most appropriate implementation?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 29Configuration Management and IaC
A company uses CloudFormation and wants to reuse common patterns (like a standard VPC or ECS cluster) across many stacks. What CloudFormation feature provides reusable, versioned building blocks?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 30Configuration Management and IaC
A DevOps team uses CloudFormation. A new team member accidentally deleted a CloudFormation stack parameter that was used by a running production stack. The stack is in a healthy state currently. What happened to the resources?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 31Configuration Management and IaC
A CloudFormation stack has a resource with DependsOn attribute pointing to another resource. During stack creation, the pointed-to resource creates successfully but takes 15 minutes. The dependent resource creation times out at 10 minutes. What causes this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 32Configuration Management and IaC
A DevOps engineer discovers that a production EC2 instance security group has been modified outside of CloudFormation (drift). They want to automatically remediate drift and restore the expected configuration. What is the approach?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 33Configuration Management and IaC
A DevOps engineer needs to export CloudFormation outputs from a VPC stack and import them in an application stack. What is the CORRECT CloudFormation pattern?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 34SDLC Automation
A company wants to create isolated test environments on demand using CodePipeline. Each test run should create its own CloudFormation stack, run tests, then destroy the stack. What CodePipeline action type supports creating and deleting CloudFormation stacks?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 35Configuration Management and IaC
A company uses CloudFormation StackSets to deploy security controls across 100 AWS accounts. A new SCP policy changes which regions are allowed. CloudFormation StackSet deployments to the newly blocked regions fail. What should be done?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 36Configuration Management and IaC
A company wants to enforce that all CloudFormation stack parameters are validated before deployment (e.g., VPC CIDR must be within allowed ranges). What CloudFormation feature provides parameter validation?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 37Configuration Management and IaC
A company uses Terraform but wants to incorporate AWS CloudFormation StackSet deployments for baseline security controls. How can Terraform and CloudFormation coexist in the same environment?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 38Resilient Cloud Solutions
A company's CloudFormation stack deploys an Auto Scaling group with a lifecycle hook. During a scale-out event, the lifecycle hook holds the instance in Pending:Wait state. The bootstrap process completes but the instance remains stuck in Pending:Wait for 3 hours. What is the MOST LIKELY cause?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 39Incident and Event Response
A company's incident response requires rolling back a CloudFormation stack to a previous known-good state. The stack has 30 resources. What is the CORRECT CloudFormation rollback approach?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 40Configuration Management and IaC
A company wants to automatically apply hotfixes to their CloudFormation-managed production stacks across multiple regions simultaneously when a critical vulnerability is patched. What is the fastest approach?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 41Configuration Management and IaC
A CloudFormation stack update fails due to a resource property change that CloudFormation cannot update in-place (requires replacement). The stack is in UPDATE_COMPLETE state, but the resource still shows the old value. What happened?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 42Configuration Management and IaC
A company wants to track which version of their infrastructure (CDK/CloudFormation) is deployed in each environment. What metadata should be embedded in CloudFormation stacks for traceability?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz - Question 43Configuration Management and IaC
A company's OpsWorks Chef-managed stack has configuration drift — some instances have manually modified configuration files. What OpsWorks feature detects and corrects this?
Answer hidden for practice.
Use the interactive quiz to reveal the correct answer and explanation.
Start DOP-C02 Quiz
Key CloudFormation Concepts for DOP-C02
DOP-C02 CloudFormation Exam Tips
AWS CloudFormation questions in DOP-C02 are typically scenario-based. Focus on CI/CD automation, reliability engineering, and feedback-driven operations. Priority concepts: cloudformation, cfn, stack, template, stack set, drift.
What DOP-C02 Expects
- Anchor your answer in choose auditable, automated release and operations patterns with strong rollback readiness.
- CloudFormation scenarios for DOP-C02 are frequently mapped to Domain 2 (17%), Domain 3 (15%), 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 (Professional) and vendor best practices.
High-Value CloudFormation Concepts
- Know the core CloudFormation building blocks cold: cloudformation, cfn, stack, template.
- Review the edge-case features and limits for stack set, drift; these details are commonly used to differentiate answer choices.
- Practice service-integration reasoning: how CloudFormation pairs with CDK, SAM, CI/CD Pipelines in real deployment patterns.
- For DOP-C02, explain why the chosen CloudFormation design meets reliability, security, and cost expectations better than the alternatives.
Common DOP-C02 Traps
- Watch for manual promotion and approval logic where pipeline automation is expected.
- Questions in Configuration Management & IaC 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 Configuration Management & IaC (17%) outcomes for DOP-C02?
- Can you explain security and access boundaries for CloudFormation without relying on default-open assumptions?
- Can you describe how CloudFormation integrates with CDK and SAM during failure, scaling, and monitoring events?