0
0
Terraformcloud~10 mins

Resource documentation reference 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 specify the Terraform provider source.

Terraform
terraform {
  required_providers {
    aws = {
      source = "[1]"
    }
  }
}
Drag options to blanks, or click blank then click option'
Ahashicorp/aws
Baws/hashicorp
Cterraform/aws
Dprovider/aws
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect source format like 'aws/hashicorp'.
Confusing provider name with source.
2fill in blank
medium

Complete the code to reference the official Terraform AWS provider documentation URL.

Terraform
Documentation URL: https://registry.terraform.io/providers/[1]/latest/docs
Drag options to blanks, or click blank then click option'
Aaws/hashicorp
Bhashicorp/aws
Cterraform/aws
Dprovider/aws
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of namespace and provider name.
Using incorrect provider names in the URL.
3fill in blank
hard

Fix the error in the resource block by completing the resource type correctly.

Terraform
resource "[1]" "example" {
  bucket = "my-bucket"
  acl    = "private"
}
Drag options to blanks, or click blank then click option'
Abucket_aws_s3
Bs3_bucket_aws
Caws.bucket.s3
Daws_s3_bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using dots instead of underscores.
Reversing provider and resource names.
4fill in blank
hard

Fill both blanks to complete the provider configuration with region and version.

Terraform
provider "aws" {
  region  = "[1]"
}

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "[2]"
    }
  }
}
Drag options to blanks, or click blank then click option'
Aus-west-2
B1.0.0
Clatest
Deu-central-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' as version in provider block (should be in required_providers).
Using invalid region names.
5fill in blank
hard

Fill all three blanks to complete the resource block with name, bucket, and ACL.

Terraform
resource "aws_s3_bucket" "[1]" {
  bucket = "[2]"
  acl    = "[3]"
}
Drag options to blanks, or click blank then click option'
Amy_bucket
Bmy-bucket
Cprivate
Dpublic-read
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid resource names with hyphens.
Confusing resource name with bucket name.
Setting ACL to unsupported values.