Recall & Review
beginner
What is the primary purpose of the Terraform CLI?
The Terraform CLI is a tool used to manage infrastructure as code. It helps create, change, and improve infrastructure safely and efficiently.
Click to reveal answer
beginner
What does the
terraform init command do?It prepares your working directory by downloading necessary provider plugins and setting up the backend for storing state.
Click to reveal answer
beginner
Explain the role of
terraform plan.This command shows what changes Terraform will make to your infrastructure without applying them. It helps you review before making changes.
Click to reveal answer
beginner
What happens when you run
terraform apply?Terraform applies the planned changes to your infrastructure, creating, updating, or deleting resources as needed.
Click to reveal answer
beginner
Why is
terraform destroy used?It removes all resources managed by your Terraform configuration, effectively cleaning up your infrastructure.
Click to reveal answer
Which Terraform CLI command initializes the working directory?
✗ Incorrect
terraform init sets up the directory by downloading providers and configuring the backend.
What does
terraform plan show you?✗ Incorrect
terraform plan previews changes without applying them.
Which command applies changes to your infrastructure?
✗ Incorrect
terraform apply makes the planned changes happen.
What is the effect of running
terraform destroy?✗ Incorrect
terraform destroy removes all resources managed by Terraform.
Before running
terraform apply, what should you do to avoid surprises?✗ Incorrect
Running terraform plan helps you see changes before applying.
Describe the main Terraform CLI commands and their purposes.
Think about the workflow from setup to cleanup.
You got /4 concepts.
Explain why it is important to run
terraform plan before terraform apply.Consider how you check your work before making changes.
You got /3 concepts.