Challenge - 5 Problems
Terraform Resource Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding Terraform resource documentation URLs
Which URL correctly points to the official Terraform documentation for the AWS S3 bucket resource?
Attempts:
2 left
💡 Hint
Terraform official docs use registry.terraform.io with provider and resource path.
✗ Incorrect
Terraform resource docs follow the pattern: registry.terraform.io/providers/{provider}/{version}/docs/resources/{resource_name}.
❓ Configuration
intermediate1: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?
Attempts:
2 left
💡 Hint
Check the official AWS EC2 instance resource attributes in Terraform docs.
✗ Incorrect
The attribute to specify the instance type is 'instance_type' as per Terraform AWS EC2 resource documentation.
❓ Architecture
advanced2: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?
Attempts:
2 left
💡 Hint
Look for the resource that supports single-instance managed databases.
✗ Incorrect
The 'aws_db_instance' resource is used for single-instance RDS databases including PostgreSQL. 'aws_rds_cluster' and 'aws_rds_cluster_instance' are for clustered databases.
❓ security
advanced2: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?
Attempts:
2 left
💡 Hint
Sensitive attributes usually contain secret keys or passwords.
✗ Incorrect
The 'secret_access_key' attribute contains the secret part of the IAM access key and is marked sensitive in Terraform documentation.
❓ service_behavior
expert2: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?
Attempts:
2 left
💡 Hint
Check the documentation for attributes that force resource replacement.
✗ Incorrect
Changing 'subnet_id' forces a new resource because AWS does not allow moving an instance between subnets. Terraform destroys and recreates the instance.