TER-ASSOC: HASHICORP CERTIFIED: TERRAFORM ASSOCIATE | 100% VERIFIED
EXAM QUESTIONS & ANSWERS | LATEST 2026/2027 VERSION | TOP RATED PASS
GUARANTEE
HASHICORP CERTIFIED: TERRAFORM ASSOCIATE
1. What is the primary purpose of Terraform?
A. Configuration management
B. Infrastructure as Code (IaC) provisioning
C. Container orchestration
D. Application deployment
ANSWER : B. Infrastructure as Code (IaC) provisioning
2. Which command initializes a Terraform working directory?
A. terraform plan
B. terraform apply
C. terraform init
D. terraform start
ANSWER : C. terraform init
3. What file extension do Terraform configuration files use?
A. .yaml
B. .json
C. .tf
D. .hcl
ANSWER : C. .tf
4. What does the terraform plan command do?
A. Applies infrastructure changes
B. Destroys all resources
C. Shows a preview of changes without applying them
, D. Initializes the backend
ANSWER : C. Shows a preview of changes without applying them
5. Which block type is used to define reusable infrastructure
components in Terraform?
A. resource
B. data
C. module
D. provider
ANSWER : C. module
6. What is the Terraform state file called by default?
A. terraform.state
B. tfstate.json
C. state.tf
D. terraform.tfstate
ANSWER : D. terraform.tfstate
7. Which command applies changes described in the Terraform plan?
A. terraform execute
B. terraform apply
C. terraform run
D. terraform deploy
ANSWER : B. terraform apply
8. What does HCL stand for in Terraform?
A. HashiCorp Configuration Language
B. High-level Code Language
C. Hybrid Cloud Layer
D. HashiCorp Cluster Language
ANSWER : A. HashiCorp Configuration Language
9. What is a Terraform provider?
A. A module that stores state
B. A plugin that interacts with APIs of cloud or service providers
C. A backend configuration file
, D. A resource definition block
ANSWER : B. A plugin that interacts with APIs of cloud or service
providers
10. Which command destroys all Terraform-managed infrastructure?
A. terraform remove
B. terraform delete
C. terraform destroy
D. terraform clean
ANSWER : C. terraform destroy
11. What is the purpose of the terraform.tfvars file?
A. Store provider credentials
B. Define variable values
C. Configure the backend
D. List required modules
ANSWER : B. Define variable values
12. Which command formats Terraform configuration files to a
canonical style?
A. terraform lint
B. terraform style
C. terraform fmt
D. terraform normalize
ANSWER : C. terraform fmt
13. What is the Terraform Registry?
A. A local state storage
B. A public repository of providers and modules
C. A CLI tool for managing workspaces
D. A CI/CD pipeline tool
ANSWER : B. A public repository of providers and modules
14. Which keyword is used to declare input variables in Terraform?
A. param
B. input
, C. variable
D. var
ANSWER : C. variable
15. What does the output block in Terraform do?
A. Defines resources
B. Exposes values from a module or configuration
C. Configures remote backends
D. Sets provider credentials
ANSWER : B. Exposes values from a module or configuration
16. What is the purpose of the depends_on argument?
A. Specifies provider version constraints
B. Configures module inputs
C. Explicitly defines resource dependencies
D. Enables automatic retries
ANSWER : C. Explicitly defines resource dependencies
17. Which Terraform feature allows you to manage multiple
environments?
A. Providers
B. Workspaces
C. Outputs
D. Backends
ANSWER : B. Workspaces
18. What is the default workspace name in Terraform?
A. main
B. production
C. default
D. base
ANSWER : C. default
19. What does the locals block define in Terraform?
A. Provider configurations
B. Resource dependencies
EXAM QUESTIONS & ANSWERS | LATEST 2026/2027 VERSION | TOP RATED PASS
GUARANTEE
HASHICORP CERTIFIED: TERRAFORM ASSOCIATE
1. What is the primary purpose of Terraform?
A. Configuration management
B. Infrastructure as Code (IaC) provisioning
C. Container orchestration
D. Application deployment
ANSWER : B. Infrastructure as Code (IaC) provisioning
2. Which command initializes a Terraform working directory?
A. terraform plan
B. terraform apply
C. terraform init
D. terraform start
ANSWER : C. terraform init
3. What file extension do Terraform configuration files use?
A. .yaml
B. .json
C. .tf
D. .hcl
ANSWER : C. .tf
4. What does the terraform plan command do?
A. Applies infrastructure changes
B. Destroys all resources
C. Shows a preview of changes without applying them
, D. Initializes the backend
ANSWER : C. Shows a preview of changes without applying them
5. Which block type is used to define reusable infrastructure
components in Terraform?
A. resource
B. data
C. module
D. provider
ANSWER : C. module
6. What is the Terraform state file called by default?
A. terraform.state
B. tfstate.json
C. state.tf
D. terraform.tfstate
ANSWER : D. terraform.tfstate
7. Which command applies changes described in the Terraform plan?
A. terraform execute
B. terraform apply
C. terraform run
D. terraform deploy
ANSWER : B. terraform apply
8. What does HCL stand for in Terraform?
A. HashiCorp Configuration Language
B. High-level Code Language
C. Hybrid Cloud Layer
D. HashiCorp Cluster Language
ANSWER : A. HashiCorp Configuration Language
9. What is a Terraform provider?
A. A module that stores state
B. A plugin that interacts with APIs of cloud or service providers
C. A backend configuration file
, D. A resource definition block
ANSWER : B. A plugin that interacts with APIs of cloud or service
providers
10. Which command destroys all Terraform-managed infrastructure?
A. terraform remove
B. terraform delete
C. terraform destroy
D. terraform clean
ANSWER : C. terraform destroy
11. What is the purpose of the terraform.tfvars file?
A. Store provider credentials
B. Define variable values
C. Configure the backend
D. List required modules
ANSWER : B. Define variable values
12. Which command formats Terraform configuration files to a
canonical style?
A. terraform lint
B. terraform style
C. terraform fmt
D. terraform normalize
ANSWER : C. terraform fmt
13. What is the Terraform Registry?
A. A local state storage
B. A public repository of providers and modules
C. A CLI tool for managing workspaces
D. A CI/CD pipeline tool
ANSWER : B. A public repository of providers and modules
14. Which keyword is used to declare input variables in Terraform?
A. param
B. input
, C. variable
D. var
ANSWER : C. variable
15. What does the output block in Terraform do?
A. Defines resources
B. Exposes values from a module or configuration
C. Configures remote backends
D. Sets provider credentials
ANSWER : B. Exposes values from a module or configuration
16. What is the purpose of the depends_on argument?
A. Specifies provider version constraints
B. Configures module inputs
C. Explicitly defines resource dependencies
D. Enables automatic retries
ANSWER : C. Explicitly defines resource dependencies
17. Which Terraform feature allows you to manage multiple
environments?
A. Providers
B. Workspaces
C. Outputs
D. Backends
ANSWER : B. Workspaces
18. What is the default workspace name in Terraform?
A. main
B. production
C. default
D. base
ANSWER : C. default
19. What does the locals block define in Terraform?
A. Provider configurations
B. Resource dependencies