0
0
Terraformcloud~20 mins

Terraform plan for preview - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Terraform Plan Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What does the Terraform plan command show?

When you run terraform plan, what is the main output you see?

AThe current state of your infrastructure after applying changes.
BA detailed log of errors encountered during deployment.
CThe final cost estimate of your cloud resources.
DA list of changes Terraform will make to your infrastructure without applying them.
Attempts:
2 left
💡 Hint

Think about what you want to see before making changes.

🧠 Conceptual
intermediate
2:00remaining
Why use Terraform plan before apply?

Why is it important to run terraform plan before terraform apply?

ATo speed up the deployment by skipping validation.
BTo preview changes and avoid unexpected modifications to infrastructure.
CTo delete all existing resources before creating new ones.
DTo automatically fix errors in the configuration files.
Attempts:
2 left
💡 Hint

Consider safety and control over infrastructure changes.

Configuration
advanced
2:00remaining
Which Terraform command previews changes without applying?

Given these commands, which one previews infrastructure changes without applying them?

Aterraform plan
Bterraform apply -auto-approve
Cterraform destroy
Dterraform init
Attempts:
2 left
💡 Hint

Look for the command that shows changes but does not make them.

Architecture
advanced
2:00remaining
What does Terraform plan use to compare infrastructure?

When running terraform plan, what two sources does Terraform compare to decide what changes to show?

AThe last applied plan and the current configuration files.
BThe cloud provider's billing data and the state file.
CThe current state file and the desired configuration files.
DThe local machine's resource usage and the cloud provider's API.
Attempts:
2 left
💡 Hint

Think about what Terraform knows and what you want it to do.

security
expert
3:00remaining
What security risk can occur if you skip Terraform plan?

If you skip running terraform plan and directly run terraform apply, what security risk might you face?

AUnintended deletion or exposure of sensitive resources without review.
BAutomatic encryption of all data without user consent.
CTerraform will disable all security groups by default.
DYour credentials will be logged in plain text in the state file.
Attempts:
2 left
💡 Hint

Consider what happens if changes are applied without preview.