0
0
AWScloud~20 mins

CloudFormation vs Terraform awareness in AWS - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CloudFormation vs Terraform Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding State Management Differences

Which statement correctly describes a key difference in how AWS CloudFormation and Terraform manage infrastructure state?

ATerraform requires explicit state file management, whereas CloudFormation automatically manages state within AWS services.
BBoth CloudFormation and Terraform require manual state file uploads to AWS S3 buckets.
CCloudFormation stores state locally on the user's machine, while Terraform stores state in the cloud by default.
DTerraform does not use any state files, but CloudFormation uses state files stored in AWS Lambda.
Attempts:
2 left
💡 Hint

Think about where each tool keeps track of the resources it manages.

Architecture
intermediate
2:00remaining
Multi-Cloud Support Comparison

Which option correctly identifies the multi-cloud support capabilities of CloudFormation and Terraform?

ACloudFormation supports multiple cloud providers natively, while Terraform only supports AWS.
BBoth CloudFormation and Terraform support multi-cloud deployments equally.
CTerraform supports multiple cloud providers, but CloudFormation is limited to AWS services.
DNeither CloudFormation nor Terraform support multi-cloud deployments.
Attempts:
2 left
💡 Hint

Consider which tool is designed specifically for AWS and which is more flexible.

security
advanced
2:00remaining
Handling Secrets in Infrastructure as Code

When managing sensitive information like passwords or API keys in CloudFormation and Terraform, which practice is most secure and recommended?

AEmbed secrets directly in the template files for both CloudFormation and Terraform for simplicity.
BEncrypt secrets only in Terraform state files; CloudFormation does not support secret encryption.
CStore secrets in plain text files alongside Terraform state files and CloudFormation templates.
DUse AWS Secrets Manager or Parameter Store with CloudFormation, and use external secret management tools with Terraform.
Attempts:
2 left
💡 Hint

Think about how each tool integrates with AWS services for secret management.

Best Practice
advanced
2:00remaining
Managing Infrastructure Drift

Which approach best helps detect and manage infrastructure drift when using CloudFormation and Terraform?

AUse CloudFormation drift detection feature and Terraform plan/apply commands regularly.
BRely on manual inspection of resources in the AWS console for both tools.
CIgnore drift as both tools automatically fix it without user intervention.
DDelete and recreate all resources frequently to avoid drift.
Attempts:
2 left
💡 Hint

Consider built-in features and commands each tool provides to check for changes outside their control.

service_behavior
expert
2:00remaining
Impact of Resource Dependencies on Deployment Order

Given a CloudFormation template and a Terraform configuration both defining an AWS VPC and an EC2 instance that depends on the VPC, how do these tools handle deployment order?

ATerraform automatically infers dependencies and deployment order; CloudFormation requires explicit DependsOn declarations for all dependencies.
BBoth CloudFormation and Terraform automatically manage resource creation order based on declared dependencies or references.
CNeither tool manages deployment order; users must deploy resources in the correct sequence manually.
DCloudFormation automatically determines resource creation order based on dependencies; Terraform requires manual ordering of resource blocks.
Attempts:
2 left
💡 Hint

Think about how each tool understands resource relationships.