69 IaC · Terraform questions from the DevOps & SRE bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a last-resort block that runs scripts on a resource during create or destroy
B.a block declaring a piece of infrastructure Terraform should manage
C.the terraform.tfstate that maps configuration to real-world resources
D.a plugin that lets Terraform manage a specific platform's resources via its API
Answer + AI explanation with Pro
2. Which term means: "a plugin that lets Terraform manage a specific platform's resources via its API"?
Junior
A.Provider
B.Resource
C.Workspace
D.for_each meta-argument
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Provider — a divergence between Terraform's recorded state and the actual deployed infrastructure
B.Provider — a read-only query of existing infrastructure or external information
C.Provider — a block declaring a piece of infrastructure Terraform should manage
D.Provider — a plugin that lets Terraform manage a specific platform's resources via its API
Answer + AI explanation with Pro
4. What is Resource?
Junior
A.a value a configuration exports for display or for use by other configurations
B.a mechanism preventing concurrent operations from corrupting shared state
C.a block declaring a piece of infrastructure Terraform should manage
D.a way to create multiple resource instances from a map or set of keys
Answer + AI explanation with Pro
5. Which term means: "a block declaring a piece of infrastructure Terraform should manage"?
Junior
A.Drift
B.Output
C.Module
D.Resource
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Resource — a named, isolated state instance used to manage multiple environments from one config
B.Resource — a block declaring a piece of infrastructure Terraform should manage
C.Resource — a mechanism preventing concurrent operations from corrupting shared state
D.Resource — a value a configuration exports for display or for use by other configurations
Answer + AI explanation with Pro
7. What is State file?
Junior
A.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
B.a last-resort block that runs scripts on a resource during create or destroy
C.the terraform.tfstate that maps configuration to real-world resources
D.a divergence between Terraform's recorded state and the actual deployed infrastructure
Answer + AI explanation with Pro
8. Which term means: "the terraform.tfstate that maps configuration to real-world resources"?
Junior
A.State file
B.for_each meta-argument
C.Provider
D.Drift
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.State file — a last-resort block that runs scripts on a resource during create or destroy
B.State file — a way to create multiple resource instances from a map or set of keys
C.State file — a mechanism preventing concurrent operations from corrupting shared state
D.State file — the terraform.tfstate that maps configuration to real-world resources
Answer + AI explanation with Pro
10. What is Module?
Junior
A.an input parameter that makes a Terraform configuration customizable
B.a named, isolated state instance used to manage multiple environments from one config
C.a reusable container of Terraform configuration grouping related resources
D.a read-only query of existing infrastructure or external information
Answer + AI explanation with Pro
11. Which term means: "a reusable container of Terraform configuration grouping related resources"?
Junior
A.Provisioner
B.Resource
C.Plan
D.Module
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.Module — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
B.Module — an input parameter that makes a Terraform configuration customizable
C.Module — a preview showing the actions Terraform will take to reach the desired state
D.Module — a reusable container of Terraform configuration grouping related resources
Answer + AI explanation with Pro
13. What is Variable?
Junior
A.an input parameter that makes a Terraform configuration customizable
B.a way to create multiple resource instances from a map or set of keys
C.a reusable container of Terraform configuration grouping related resources
D.a read-only query of existing infrastructure or external information
Answer + AI explanation with Pro
14. Which term means: "an input parameter that makes a Terraform configuration customizable"?
Junior
A.Variable
B.Module
C.for_each meta-argument
D.Workspace
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.Variable — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
B.Variable — a preview showing the actions Terraform will take to reach the desired state
C.Variable — a last-resort block that runs scripts on a resource during create or destroy
D.Variable — an input parameter that makes a Terraform configuration customizable
Answer + AI explanation with Pro
16. What is Output?
Junior
A.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
B.a mechanism preventing concurrent operations from corrupting shared state
C.an input parameter that makes a Terraform configuration customizable
D.a value a configuration exports for display or for use by other configurations
Answer + AI explanation with Pro
17. Which term means: "a value a configuration exports for display or for use by other configurations"?
Junior
A.Variable
B.for_each meta-argument
C.Provisioner
D.Output
Answer + AI explanation with Pro
18. Which statement is correct?
Junior
A.Output — an input parameter that makes a Terraform configuration customizable
B.Output — a plugin that lets Terraform manage a specific platform's resources via its API
C.Output — a value a configuration exports for display or for use by other configurations
D.Output — a preview showing the actions Terraform will take to reach the desired state
Answer + AI explanation with Pro
19. What is Remote backend?
Mid
A.a divergence between Terraform's recorded state and the actual deployed infrastructure
B.the terraform.tfstate that maps configuration to real-world resources
C.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
D.a mechanism preventing concurrent operations from corrupting shared state
Answer + AI explanation with Pro
20. Which term means: "storage for state outside the local disk, often with locking, such as S3 plus DynamoDB"?
Mid
A.Variable
B.Drift
C.Provisioner
D.Remote backend
Answer + AI explanation with Pro
21. Which statement is correct?
Mid
A.Remote backend — the terraform.tfstate that maps configuration to real-world resources
B.Remote backend — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
C.Remote backend — a last-resort block that runs scripts on a resource during create or destroy
D.Remote backend — a preview showing the actions Terraform will take to reach the desired state
Answer + AI explanation with Pro
22. What is Plan?
Mid
A.a read-only query of existing infrastructure or external information
B.a block declaring a piece of infrastructure Terraform should manage
C.a preview showing the actions Terraform will take to reach the desired state
D.a divergence between Terraform's recorded state and the actual deployed infrastructure
Answer + AI explanation with Pro
23. Which term means: "a preview showing the actions Terraform will take to reach the desired state"?
Mid
A.State file
B.Plan
C.Resource
D.Provider
Answer + AI explanation with Pro
24. Which statement is correct?
Mid
A.Plan — a mechanism preventing concurrent operations from corrupting shared state
B.Plan — a preview showing the actions Terraform will take to reach the desired state
C.Plan — an input parameter that makes a Terraform configuration customizable
D.Plan — a divergence between Terraform's recorded state and the actual deployed infrastructure
Answer + AI explanation with Pro
25. What is Data source?
Mid
A.a read-only query of existing infrastructure or external information
B.an input parameter that makes a Terraform configuration customizable
C.a mechanism preventing concurrent operations from corrupting shared state
D.a plugin that lets Terraform manage a specific platform's resources via its API
Answer + AI explanation with Pro
26. Which term means: "a read-only query of existing infrastructure or external information"?
Mid
A.for_each meta-argument
B.Data source
C.Variable
D.Remote backend
Answer + AI explanation with Pro
27. Which statement is correct?
Mid
A.Data source — a named, isolated state instance used to manage multiple environments from one config
B.Data source — a read-only query of existing infrastructure or external information
C.Data source — an input parameter that makes a Terraform configuration customizable
D.Data source — a value a configuration exports for display or for use by other configurations
Answer + AI explanation with Pro
28. What is State lock?
Mid
A.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
B.a read-only query of existing infrastructure or external information
C.a mechanism preventing concurrent operations from corrupting shared state
D.a value a configuration exports for display or for use by other configurations
Answer + AI explanation with Pro
29. Which term means: "a mechanism preventing concurrent operations from corrupting shared state"?
Mid
A.State lock
B.Data source
C.Provisioner
D.Resource
Answer + AI explanation with Pro
30. Which statement is correct?
Mid
A.State lock — the terraform.tfstate that maps configuration to real-world resources
B.State lock — a way to create multiple resource instances from a map or set of keys
C.State lock — a mechanism preventing concurrent operations from corrupting shared state
D.State lock — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
Answer + AI explanation with Pro
Showing 30 of 69 IaC · Terraform questions — the full set, with answers, explanations and an AI tutor on every question, is inside.
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every IaC · Terraform question come with Pro.