0
0
Terraformcloud~20 mins

Resource documentation reference in Terraform - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Terraform Resource Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Terraform resource documentation URLs
Which URL correctly points to the official Terraform documentation for the AWS S3 bucket resource?
Ahttps://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket
Bhttps://aws.amazon.com/terraform/s3bucket/docs
Chttps://terraform.io/docs/aws/s3bucket
Dhttps://registry.terraform.io/providers/aws/latest/docs/resources/bucket_s3
Attempts:
2 left
💡 Hint
Terraform official docs use registry.terraform.io with provider and resource path.
Configuration
intermediate
1:30remaining
Identifying correct resource attribute from documentation
You want to configure an AWS EC2 instance with a specific instance type. According to Terraform AWS provider documentation, which attribute sets the instance type?
Atype_instance
Binstance_type
Cec2_type
Dvm_type
Attempts:
2 left
💡 Hint
Check the official AWS EC2 instance resource attributes in Terraform docs.
Architecture
advanced
2:00remaining
Choosing the correct Terraform resource for a managed database
You want to provision a managed PostgreSQL database on AWS using Terraform. Which resource from the AWS provider documentation should you use?
Aaws_rds_cluster
Baws_rds_cluster_instance
Caws_db_instance
Daws_postgresql_instance
Attempts:
2 left
💡 Hint
Look for the resource that supports single-instance managed databases.
security
advanced
2:00remaining
Referencing sensitive attributes in Terraform resource documentation
According to Terraform AWS provider documentation, which attribute of the 'aws_iam_access_key' resource is marked as sensitive and should not be exposed in logs or outputs?
Asecret
Bkey_id
Caccess_key_id
Dsecret_access_key
Attempts:
2 left
💡 Hint
Sensitive attributes usually contain secret keys or passwords.
service_behavior
expert
2:30remaining
Understanding lifecycle behavior from Terraform resource documentation
According to Terraform AWS provider documentation, what happens if you change the 'subnet_id' attribute of an 'aws_instance' resource in your configuration and apply it?
ATerraform will destroy the existing instance and create a new one in the new subnet.
BTerraform will update the subnet of the existing instance without downtime.
CTerraform will ignore the change and keep the instance in the original subnet.
DTerraform will throw an error and refuse to apply the change.
Attempts:
2 left
💡 Hint
Check the documentation for attributes that force resource replacement.