When you run terraform plan, what is the main output you see?
Think about what you want to see before making changes.
terraform plan previews the changes Terraform will make. It does not apply changes or show costs.
Why is it important to run terraform plan before terraform apply?
Consider safety and control over infrastructure changes.
Running terraform plan helps you see what will change, preventing surprises.
Given these commands, which one previews infrastructure changes without applying them?
Look for the command that shows changes but does not make them.
terraform plan previews changes. apply makes changes, destroy deletes, init prepares the working directory.
When running terraform plan, what two sources does Terraform compare to decide what changes to show?
Think about what Terraform knows and what you want it to do.
Terraform compares the saved state (what exists) with the configuration (what you want) to plan changes.
If you skip running terraform plan and directly run terraform apply, what security risk might you face?
Consider what happens if changes are applied without preview.
Skipping plan can cause unexpected changes like deleting or exposing resources, risking security.