0
0
Terraformcloud~10 mins

Auto-approve flag and its danger in Terraform - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to run Terraform apply without manual approval.

Terraform
terraform apply [1]
Drag options to blanks, or click blank then click option'
A-force
B-auto-approve
C-no-confirm
D-skip-approval
Attempts:
3 left
💡 Hint
Common Mistakes
Using flags that do not exist in Terraform like -force or -no-confirm.
Forgetting to add any flag and expecting no prompt.
2fill in blank
medium

Complete the command to safely plan changes before applying.

Terraform
terraform [1]
Drag options to blanks, or click blank then click option'
Aplan
Bdestroy
Capply
Dinit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' directly without planning.
Confusing 'destroy' with planning.
3fill in blank
hard

Fix the error in the command that tries to auto-approve but uses wrong flag.

Terraform
terraform apply [1]
Drag options to blanks, or click blank then click option'
A-auto-approve
B-force
C-yes
D-skip
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-yes' which is not a valid Terraform flag.
Using '-force' which does not exist.
4fill in blank
hard

Fill both blanks to explain the danger of using auto-approve in production.

Terraform
Using [1] can cause [2] changes without review.
Drag options to blanks, or click blank then click option'
A-auto-approve
Bmanual
Cunexpected
Dsafe
Attempts:
3 left
💡 Hint
Common Mistakes
Saying 'manual' instead of the flag name.
Saying 'safe' which is opposite of the danger.
5fill in blank
hard

Fill all three blanks to complete the best practice for Terraform apply.

Terraform
Always run [1] first, then [2] without [3] in production.
Drag options to blanks, or click blank then click option'
Aterraform plan
Bterraform apply
C-auto-approve
Dterraform init
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-auto-approve' in production.
Skipping the plan step.