0
0
Terraformcloud~10 mins

Terraform init for initialization - Interactive Code Practice

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

Complete the command to initialize a Terraform working directory.

Terraform
terraform [1]
Drag options to blanks, or click blank then click option'
Adestroy
Bapply
Cplan
Dinit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'terraform apply' before initialization
Confusing 'init' with 'plan'
2fill in blank
medium

Complete the command to initialize Terraform and upgrade modules and providers.

Terraform
terraform init [1]
Drag options to blanks, or click blank then click option'
A-force-copy
B-reconfigure
C-upgrade
D-lock=false
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-force-copy' instead of '-upgrade'
Confusing '-reconfigure' with '-upgrade'
3fill in blank
hard

Fix the error in the command to initialize Terraform without backend configuration.

Terraform
terraform init [1]
Drag options to blanks, or click blank then click option'
A-backend=false
B-force-copy
C-reconfigure
D-upgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-reconfigure' instead of '-backend=false'
Omitting the flag and causing backend errors
4fill in blank
hard

Fill both blanks to initialize Terraform and reconfigure the backend.

Terraform
terraform [1] [2]
Drag options to blanks, or click blank then click option'
Ainit
B-reconfigure
C-upgrade
Dapply
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'apply' instead of 'init'
Omitting '-reconfigure' when backend changed
5fill in blank
hard

Fill all three blanks to initialize Terraform, upgrade providers, and disable locking.

Terraform
terraform [1] [2] [3]
Drag options to blanks, or click blank then click option'
Ainit
B-upgrade
C-lock=false
D-reconfigure
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up flags order
Using '-reconfigure' instead of '-lock=false'