AWS CloudFormation is a service that helps you create and manage AWS resources using templates written in JSON or YAML. It automates resource setup in a safe and repeatable way.
Click to reveal answer
beginner
What is Terraform?
Terraform is an open-source tool that lets you define and manage infrastructure across many cloud providers using a simple configuration language called HCL (HashiCorp Configuration Language).
Click to reveal answer
intermediate
Name one key difference between CloudFormation and Terraform.
CloudFormation works only with AWS services, while Terraform supports many cloud providers like AWS, Azure, Google Cloud, and others.
Click to reveal answer
intermediate
How do CloudFormation and Terraform handle state management differently?
CloudFormation manages state automatically within AWS. Terraform keeps state in a separate file that you can store locally or remotely, which helps track resource changes.
Click to reveal answer
intermediate
Why might someone choose Terraform over CloudFormation?
Because Terraform supports multiple cloud providers and has a simpler, more flexible language, it is often chosen for managing infrastructure across different clouds or for more complex setups.
Click to reveal answer
Which tool is limited to managing only AWS resources?
ACloudFormation
BTerraform
CBoth
DNeither
✗ Incorrect
CloudFormation is designed specifically for AWS, while Terraform supports multiple cloud providers.
What language does Terraform use for its configuration files?
AJSON
BHCL
CXML
DYAML
✗ Incorrect
Terraform uses HCL (HashiCorp Configuration Language), which is designed to be easy to read and write.
How does CloudFormation store its state information?
AIn a remote database you must configure
BIn a local file
CAutomatically managed within AWS
DIt does not store state
✗ Incorrect
CloudFormation manages state automatically inside AWS, so users don't have to handle state files.
Which tool is better suited for managing infrastructure across multiple cloud providers?
ATerraform
BBoth are equally suited
CCloudFormation
DNeither supports multi-cloud
✗ Incorrect
Terraform supports many cloud providers, making it ideal for multi-cloud environments.
Which of the following is a benefit of using Infrastructure as Code tools like CloudFormation or Terraform?
ARequires no learning
BManual setup of resources
COnly works with virtual machines
DAutomated, repeatable resource management
✗ Incorrect
Infrastructure as Code tools automate and make resource management repeatable and consistent.
Explain the main differences between AWS CloudFormation and Terraform.
Think about provider support, state management, and configuration language.
You got /5 concepts.
Describe why someone might choose Terraform instead of CloudFormation for their infrastructure projects.
Consider project scope and tool flexibility.
You got /4 concepts.
Practice
(1/5)
1. Which statement best describes the main difference between AWS CloudFormation and Terraform?
easy
A. CloudFormation works only with AWS, while Terraform supports multiple cloud providers.
B. Terraform is only for AWS, CloudFormation supports all clouds.
C. Both tools only work with AWS services.
D. CloudFormation supports multiple clouds, Terraform is AWS-only.
Solution
Step 1: Understand CloudFormation scope
CloudFormation is designed specifically for AWS and manages AWS resources only.
Step 2: Understand Terraform scope
Terraform supports many cloud providers like AWS, Azure, Google Cloud, and more.
Final Answer:
CloudFormation works only with AWS, while Terraform supports multiple cloud providers. -> Option A