0
0
Terraformcloud~10 mins

Terraform plan for preview - Interactive Code Practice

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

Complete the code to preview changes before applying them in Terraform.

Terraform
terraform [1]
Drag options to blanks, or click blank then click option'
Ainit
Bplan
Capply
Ddestroy
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' instead of 'plan' runs changes immediately.
Using 'init' only initializes the working directory.
Using 'destroy' deletes resources immediately.
2fill in blank
medium

Complete the command to save the Terraform plan to a file for later use.

Terraform
terraform plan -out=[1]
Drag options to blanks, or click blank then click option'
Aplanfile
Boutput
Ctfplan
Dstatefile
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'planfile' which is not a standard name.
Using 'output' which is a different command.
Using 'statefile' which relates to state, not plan.
3fill in blank
hard

Fix the error in the command to preview changes with detailed output.

Terraform
terraform plan [1]
Drag options to blanks, or click blank then click option'
A-detailed-exitcode
B-detailed
C-detailed-output
D-detailed-plan
Attempts:
3 left
💡 Hint
Common Mistakes
Using flags that do not exist like '-detailed' or '-detailed-output'.
Misspelling the flag name.
4fill in blank
hard

Fill both blanks to preview changes and specify the directory with Terraform configuration.

Terraform
terraform [1] -chdir=[2]
Drag options to blanks, or click blank then click option'
Aplan
Bapply
Cconfig
Ddestroy
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' instead of 'plan' for preview.
Using 'destroy' as a directory name.
5fill in blank
hard

Fill all three blanks to preview changes, save the plan, and specify the input directory.

Terraform
terraform [1] -out=[2] -chdir=[3]
Drag options to blanks, or click blank then click option'
Aplan
Btfplan
Cconfig
Dapply
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' instead of 'plan' for preview.
Using wrong file names or directory names.