0
0
Terraformcloud~5 mins

Terraform plan for preview - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the terraform plan command do?
It shows a preview of the changes Terraform will make to your infrastructure without applying them. It helps you understand what will be created, changed, or destroyed.
Click to reveal answer
beginner
Why is it important to run terraform plan before terraform apply?
Running terraform plan helps catch mistakes early by showing what changes will happen. This prevents unexpected or harmful changes to your infrastructure.
Click to reveal answer
beginner
What does it mean if terraform plan shows no changes?
It means your current infrastructure matches the configuration files exactly, so no updates, creations, or deletions are needed.
Click to reveal answer
intermediate
How can you save the output of terraform plan for later use?
You can save the plan to a file using terraform plan -out=planfile. Later, you can apply this exact plan with terraform apply planfile.
Click to reveal answer
beginner
What is the difference between terraform plan and terraform apply?
terraform plan previews changes without making them. terraform apply actually makes the changes to your infrastructure.
Click to reveal answer
What does terraform plan primarily do?
AInitializes Terraform configuration
BShows a preview of infrastructure changes
CDeletes all resources
DApplies changes to infrastructure
How do you save a Terraform plan to a file?
Aterraform plan -out=planfile
Bterraform plan -save=planfile
Cterraform save planfile
Dterraform apply -plan=planfile
If terraform plan shows no changes, what does it mean?
ATerraform will destroy all resources
BTerraform configuration has errors
CYour infrastructure matches the configuration
DTerraform will create new resources
Which command actually makes changes to your infrastructure?
Aterraform apply
Bterraform init
Cterraform plan
Dterraform validate
Why should you run terraform plan before terraform apply?
ATo backup your infrastructure
BTo delete resources
CTo initialize Terraform
DTo preview changes and avoid mistakes
Explain the purpose and benefits of using terraform plan in your workflow.
Think about how seeing changes before applying helps you.
You got /4 concepts.
    Describe the difference between terraform plan and terraform apply.
    One shows what will happen, the other makes it happen.
    You got /4 concepts.