0
0
Terraformcloud~10 mins

Terraform Cloud overview - Interactive Code Practice

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

Complete the code to specify the Terraform Cloud backend.

Terraform
terraform {
  backend "[1]" {}
}
Drag options to blanks, or click blank then click option'
Alocal
Bcloud
Cremote
Ds3
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'local' instead of 'cloud' for backend.
Confusing 'remote' with the correct backend name.
2fill in blank
medium

Complete the code to set the organization name in Terraform Cloud backend configuration.

Terraform
terraform {
  backend "cloud" {
    organization = "[1]"
  }
}
Drag options to blanks, or click blank then click option'
Amy_org
Bmy_project
Cterraform_org
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using project or workspace names instead of organization name.
Leaving the organization field empty.
3fill in blank
hard

Fix the error in the backend block by completing the workspace key with the correct syntax.

Terraform
terraform {
  backend "cloud" {
    organization = "my_org"
    workspace  = "[1]"
  }
}
Drag options to blanks, or click blank then click option'
Amy_workspace
Bworkspace
Cworkspace-name
Dworkspace_name
Attempts:
3 left
💡 Hint
Common Mistakes
Using the key name 'workspace' as the value.
Using underscores or dashes incorrectly in the workspace name.
4fill in blank
hard

Fill both blanks to configure Terraform Cloud backend with organization and workspace.

Terraform
terraform {
  backend "cloud" {
    organization = "[1]"
    workspace    = "[2]"
  }
}
Drag options to blanks, or click blank then click option'
Amy_org
Bproduction_ws
Cdev_workspace
Ddefault_org
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing organization and workspace values.
Using default or placeholder names that don't exist.
5fill in blank
hard

Fill all three blanks to complete the Terraform Cloud backend block with organization, workspace, and hostname.

Terraform
terraform {
  backend "cloud" {
    organization = "[1]"
    workspace    = "[2]"
    hostname     = "[3]"
  }
}
Drag options to blanks, or click blank then click option'
Amy_org
Bstaging_ws
Capp.terraform.io
Dterraform.io
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'terraform.io' instead of 'app.terraform.io' for hostname.
Confusing workspace and organization names.