0
0
Terraformcloud~5 mins

Creation-time vs destruction-time in Terraform - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is creation-time in Terraform?
Creation-time is when Terraform sets up resources for the first time. It means the moment Terraform builds or provisions infrastructure components.
Click to reveal answer
beginner
What does destruction-time mean in Terraform?
Destruction-time is when Terraform removes or deletes resources. It happens when you run commands to tear down infrastructure.
Click to reveal answer
intermediate
Why is understanding creation-time vs destruction-time important?
Knowing these times helps you plan changes safely. You avoid deleting resources by mistake and understand when resources are built or removed.
Click to reveal answer
beginner
Give an example of a Terraform action that happens at creation-time.
Creating a new virtual machine or storage bucket is a creation-time action. Terraform provisions these resources when you apply your configuration.
Click to reveal answer
beginner
What Terraform command triggers destruction-time?
The command terraform destroy triggers destruction-time by deleting all managed resources.
Click to reveal answer
What does creation-time refer to in Terraform?
AWhen Terraform configuration is written
BWhen resources are deleted
CWhen resources are first created
DWhen Terraform plan is generated
Which command causes destruction-time in Terraform?
Aterraform destroy
Bterraform plan
Cterraform apply
Dterraform init
Why should you understand creation-time and destruction-time?
ATo write better code comments
BTo avoid accidental resource deletion
CTo speed up Terraform commands
DTo change Terraform versions
Which of these happens at destruction-time?
ADeleting a database
BProvisioning a new server
CWriting Terraform code
DRunning terraform plan
When does Terraform perform creation-time actions?
ADuring terraform destroy
BDuring terraform validate
CDuring terraform fmt
DDuring terraform apply
Explain the difference between creation-time and destruction-time in Terraform.
Think about when Terraform sets up versus tears down infrastructure.
You got /4 concepts.
    Describe a scenario where understanding destruction-time helps avoid problems.
    Consider what happens if you delete something by mistake.
    You got /3 concepts.