Learn to read and explain Terraform HCL configuration in English.
0 / 5 completed
1 / 5
In Terraform, what is a 'resource block'?
A resource block declares infrastructure to be managed by Terraform (e.g., an EC2 instance, an S3 bucket). Terraform creates, updates, or destroys the resource to match the configuration.
2 / 5
What does a 'data source' in Terraform represent?
A data source reads existing infrastructure information (e.g., an AMI ID, a VPC ID) for use in Terraform configuration, without managing that resource's lifecycle.
3 / 5
What is a 'local value' (locals) in Terraform HCL?
Locals (local values) are named expressions defined in a locals block, used to simplify complex expressions or avoid repetition — like constants or computed variables within a module.
4 / 5
What is the purpose of an 'output block' in Terraform?
Output blocks export values from a Terraform module (e.g., a created resource's ID or IP address), making them available to the parent module or as the final output of terraform apply.
5 / 5
What is a Terraform 'provider'?
A Terraform provider is a plugin that implements the API calls needed to manage resources on a specific platform (AWS, Azure, GCP, Kubernetes, etc.).