Recall & Review
beginner
Why should Terraform configuration files use the
.tf extension?Terraform recognizes files with the
.tf extension as configuration files. This helps Terraform load and process them correctly when running commands.Click to reveal answer
beginner
What is a good practice for naming Terraform files to keep configurations organized?
Use descriptive names that reflect the purpose, like
network.tf for networking resources or variables.tf for variable definitions. This makes it easier to find and manage code.Click to reveal answer
beginner
Can you use multiple
.tf files in one Terraform project folder?Yes. Terraform automatically loads all
.tf files in a folder and combines them. This allows splitting configuration into smaller, manageable parts.Click to reveal answer
intermediate
Should Terraform files be named with numbers or special characters for ordering?
No. Terraform does not require numbered or special character prefixes. It processes all files together regardless of name order. Use clear descriptive names instead.
Click to reveal answer
intermediate
What file extension is used for Terraform variable values and why?
Terraform uses
.tfvars files to store variable values separately from configuration. This helps keep sensitive or environment-specific data organized and secure.Click to reveal answer
Which file extension should Terraform configuration files have?
✗ Incorrect
Terraform configuration files must have the .tf extension to be recognized and processed correctly.
How does Terraform handle multiple .tf files in the same folder?
✗ Incorrect
Terraform automatically loads and merges all .tf files in a folder to build the full configuration.
What is a recommended naming style for Terraform files?
✗ Incorrect
Descriptive names help organize and understand the purpose of each Terraform file.
Which file extension is used for storing Terraform variable values?
✗ Incorrect
Terraform uses .tfvars files to separate variable values from configuration code.
Is it necessary to number Terraform files to control their load order?
✗ Incorrect
Terraform processes all .tf files in a folder together without relying on file name order.
Explain why using descriptive file names for Terraform .tf files is important.
Think about how you find files on your computer.
You got /4 concepts.
Describe how Terraform processes multiple .tf files in a project folder.
Imagine putting puzzle pieces together.
You got /4 concepts.