0
0
Terraformcloud~10 mins

Plan output reading 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 show the Terraform plan output.

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' runs the changes instead of showing them.
Using 'destroy' deletes resources instead of planning.
Using 'init' initializes the working directory but does not show plan.
2fill in blank
medium

Complete the code to save the Terraform plan output to a file.

Terraform
terraform plan -out=[1]
Drag options to blanks, or click blank then click option'
Aplan.txt
Bstate.tf
Ctfplan
Doutput.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using a .txt or .json extension is not standard for plan files.
Using 'state.tf' is incorrect as it relates to state files, not plans.
3fill in blank
hard

Fix the error in the command to apply a saved Terraform plan.

Terraform
terraform [1] tfplan
Drag options to blanks, or click blank then click option'
Aplan
Bapply
Cinit
Ddestroy
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'plan' again only shows the plan, does not apply.
Using 'init' initializes but does not apply.
Using 'destroy' deletes resources instead of applying.
4fill in blank
hard

Fill both blanks to output the Terraform plan in JSON format.

Terraform
terraform [1] [2]
Drag options to blanks, or click blank then click option'
Aplan
Bapply
C-json
Dformat
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' instead of 'plan' will apply changes.
Using '-format' is not a valid Terraform option.
5fill in blank
hard

Fill all three blanks to read and show the Terraform plan output file.

Terraform
terraform [1] [2] [3]
Drag options to blanks, or click blank then click option'
Ashow
B-json
Ctfplan
D-out
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-out' instead of '-json' will not format output as JSON.
Using 'apply' instead of 'show' will apply changes.