2.0 Configuration Management and IaC DOP-C02 Practice Quiz
102 exam-style questions covering 17% of the DOP-C02 exam. Instant feedback on every answer, progress tracking, no signup required.
This domain is part of the AWS Certified DevOps Engineer Professional practice test. Each question is tagged by exam objective and difficulty so you can drill exactly the areas you need.
Sample Questions
A platform team wants every application stack to define resources, dependencies, parameters, and exported values in a repeatable way. Which CloudFormation design should be used?
- A. A version-controlled template with Resources, Parameters, Outputs, and explicit dependencies where needed
- B. A runbook that asks operators to create resources in console order
- C. A plain text checklist stored with no resource definitions
- D. A single unmanaged JSON file containing only resource names
A complete template makes the stack reproducible and lets CloudFormation understand resource creation order, configuration inputs, and values exported to other stacks. This is the correct answer.
A CloudFormation template must expose a database endpoint to a dependent application stack. What template section supports this?
- A. Outputs with an export or a consumed stack output pattern
- B. Mappings only
- C. Conditions only
- D. Metadata only
Outputs publish useful values after stack creation, and exports can allow other stacks to reference them. This is the correct answer.
A team repeatedly copies the same VPC resources into many templates and mistakes are increasing. Which IaC component pattern should reduce duplication?
- A. Copy and paste the VPC resources into every template release
- B. Reusable nested stacks or modules for the common VPC pattern
- C. Create the VPC manually and omit it from version control
- D. Use stack outputs as the only definition of the VPC
Reusable components keep shared infrastructure definitions consistent while allowing teams to pass environment-specific inputs. This is the correct answer.
A company wants a reusable template component but also wants teams to control allowed input values. What should be included?
- A. Hardcoded production values in every property
- B. Parameters with constraints and defaults where appropriate
- C. Unconstrained free-form parameters for every security setting
- D. Outputs that ask users to type values during rollback
Parameter constraints restrict valid inputs and defaults improve usability without hardcoding every environment value. This is the correct answer.
A team uses Terraform for some infrastructure but must deploy CloudFormation StackSets for AWS-managed account baselines. What is the DevOps concern?
- A. Let every tool update every resource whenever it detects drift
- B. Use each IaC tool with clear ownership boundaries to avoid conflicting resource management
- C. Disable all state and drift tracking because two tools are present
- D. Convert all infrastructure changes into manual console steps
Multiple IaC tools can coexist when ownership is explicit and the same resource is not managed by competing systems. This is the correct answer.
A CloudFormation template creates an Auto Scaling group and an Application Load Balancer target group. The group should not launch instances until the target group exists. What should the template use if implicit references are insufficient?
- A. A random sleep command in a developer laptop script
- B. A resource tag named CreateAfter
- C. DependsOn or references that express the resource dependency
- D. A longer stack name
Dependency declarations or intrinsic references help CloudFormation order creation when one resource depends on another being ready. This is the correct answer.
A team wants to model AWS infrastructure in TypeScript and synthesize CloudFormation templates in a pipeline. Which framework is most appropriate?
- A. AWS CodeArtifact
- B. AWS CodeDeploy AppSpec only
- C. AWS CDK
- D. Amazon ECR lifecycle policy
AWS CDK lets teams define cloud infrastructure in programming languages and synthesize CloudFormation templates. This is the correct answer.
A security team wants infrastructure templates to be reviewed like application code. What template management practice is best?
- A. Allow operators to edit live stack resources directly for speed
- B. Store the only template copy in a local downloads folder
- C. Recreate templates from CloudTrail after each release
- D. Keep templates in version control and require pull request review before deployment
Version control and review provide change history, peer review, and a controlled path into deployment pipelines. This is the correct answer.
Key Terms in This Domain
- CloudFormation drift detection: Detect manual changes that diverge from the template
- CloudFormation StackSets: Deploy stacks across multiple accounts and Regions
- CloudFormation change sets: Preview changes before applying a template update
- CodeDeploy AppSpec: Configuration file that defines the deployment lifecycle and hooks
- AWS CloudFormation: Infrastructure as code via declarative templates
- CloudFormation modules: Reusable building blocks for CloudFormation templates
- AWS Config: Track resource configuration changes and assess compliance
- AWS AppConfig: Manage and deploy application configuration changes safely
- AWS OpsWorks: Managed Chef and Puppet for configuration management
- Mutable infrastructure: Modify running servers in place via configuration management
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-devops-engineer-professional/configuration-management-and-iac/
<a href="https://quizbuffet.com/aws-devops-engineer-professional/configuration-management-and-iac/">AWS DevOps Engineer Professional Configuration Management and IaC practice quiz on QuizBuffet</a>
Other DOP-C02 Domains
- 1.0 SDLC Automation
- 3.0 Resilient Cloud Solutions
- 4.0 Monitoring and Logging
- 5.0 Incident and Event Response
- 6.0 Security and Compliance
← Back to DOP-C02 practice test overview
Questions are written against the published DOP-C02 objectives and checked for accuracy and balance before they go live. How QuizBuffet writes and reviews its questions.