IaC · Terraform interview questions

69 real IaC · Terraform questions from the DevOps & SRE bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Provider?

Junior
  1. A.a last-resort block that runs scripts on a resource during create or destroy
  2. B.a block declaring a piece of infrastructure Terraform should manage
  3. C.the terraform.tfstate that maps configuration to real-world resources
  4. D.a plugin that lets Terraform manage a specific platform's resources via its API
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Provider — a divergence between Terraform's recorded state and the actual deployed infrastructure
  2. B.Provider — a read-only query of existing infrastructure or external information
  3. C.Provider — a block declaring a piece of infrastructure Terraform should manage
  4. D.Provider — a plugin that lets Terraform manage a specific platform's resources via its API
Reveal the answer + AI explanation — free account

4. What is Resource?

Junior
  1. A.a value a configuration exports for display or for use by other configurations
  2. B.a mechanism preventing concurrent operations from corrupting shared state
  3. C.a block declaring a piece of infrastructure Terraform should manage
  4. D.a way to create multiple resource instances from a map or set of keys
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Resource — a named, isolated state instance used to manage multiple environments from one config
  2. B.Resource — a block declaring a piece of infrastructure Terraform should manage
  3. C.Resource — a mechanism preventing concurrent operations from corrupting shared state
  4. D.Resource — a value a configuration exports for display or for use by other configurations
Reveal the answer + AI explanation — free account

7. What is State file?

Junior
  1. A.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  2. B.a last-resort block that runs scripts on a resource during create or destroy
  3. C.the terraform.tfstate that maps configuration to real-world resources
  4. D.a divergence between Terraform's recorded state and the actual deployed infrastructure
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.State file — a last-resort block that runs scripts on a resource during create or destroy
  2. B.State file — a way to create multiple resource instances from a map or set of keys
  3. C.State file — a mechanism preventing concurrent operations from corrupting shared state
  4. D.State file — the terraform.tfstate that maps configuration to real-world resources
Reveal the answer + AI explanation — free account

10. What is Module?

Junior
  1. A.an input parameter that makes a Terraform configuration customizable
  2. B.a named, isolated state instance used to manage multiple environments from one config
  3. C.a reusable container of Terraform configuration grouping related resources
  4. D.a read-only query of existing infrastructure or external information
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.Module — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  2. B.Module — an input parameter that makes a Terraform configuration customizable
  3. C.Module — a preview showing the actions Terraform will take to reach the desired state
  4. D.Module — a reusable container of Terraform configuration grouping related resources
Reveal the answer + AI explanation — free account

13. What is Variable?

Junior
  1. A.an input parameter that makes a Terraform configuration customizable
  2. B.a way to create multiple resource instances from a map or set of keys
  3. C.a reusable container of Terraform configuration grouping related resources
  4. D.a read-only query of existing infrastructure or external information
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.Variable — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  2. B.Variable — a preview showing the actions Terraform will take to reach the desired state
  3. C.Variable — a last-resort block that runs scripts on a resource during create or destroy
  4. D.Variable — an input parameter that makes a Terraform configuration customizable
Reveal the answer + AI explanation — free account

16. What is Output?

Junior
  1. A.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  2. B.a mechanism preventing concurrent operations from corrupting shared state
  3. C.an input parameter that makes a Terraform configuration customizable
  4. D.a value a configuration exports for display or for use by other configurations
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.Output — an input parameter that makes a Terraform configuration customizable
  2. B.Output — a plugin that lets Terraform manage a specific platform's resources via its API
  3. C.Output — a value a configuration exports for display or for use by other configurations
  4. D.Output — a preview showing the actions Terraform will take to reach the desired state
Reveal the answer + AI explanation — free account

19. What is Remote backend?

Mid
  1. A.a divergence between Terraform's recorded state and the actual deployed infrastructure
  2. B.the terraform.tfstate that maps configuration to real-world resources
  3. C.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  4. D.a mechanism preventing concurrent operations from corrupting shared state
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Remote backend — the terraform.tfstate that maps configuration to real-world resources
  2. B.Remote backend — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  3. C.Remote backend — a last-resort block that runs scripts on a resource during create or destroy
  4. D.Remote backend — a preview showing the actions Terraform will take to reach the desired state
Reveal the answer + AI explanation — free account

22. What is Plan?

Mid
  1. A.a read-only query of existing infrastructure or external information
  2. B.a block declaring a piece of infrastructure Terraform should manage
  3. C.a preview showing the actions Terraform will take to reach the desired state
  4. D.a divergence between Terraform's recorded state and the actual deployed infrastructure
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Mid
  1. A.Plan — a mechanism preventing concurrent operations from corrupting shared state
  2. B.Plan — a preview showing the actions Terraform will take to reach the desired state
  3. C.Plan — an input parameter that makes a Terraform configuration customizable
  4. D.Plan — a divergence between Terraform's recorded state and the actual deployed infrastructure
Reveal the answer + AI explanation — free account

25. What is Data source?

Mid
  1. A.a read-only query of existing infrastructure or external information
  2. B.an input parameter that makes a Terraform configuration customizable
  3. C.a mechanism preventing concurrent operations from corrupting shared state
  4. D.a plugin that lets Terraform manage a specific platform's resources via its API
Reveal the answer + AI explanation — free account

27. Which statement is correct?

Mid
  1. A.Data source — a named, isolated state instance used to manage multiple environments from one config
  2. B.Data source — a read-only query of existing infrastructure or external information
  3. C.Data source — an input parameter that makes a Terraform configuration customizable
  4. D.Data source — a value a configuration exports for display or for use by other configurations
Reveal the answer + AI explanation — free account

28. What is State lock?

Mid
  1. A.storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
  2. B.a read-only query of existing infrastructure or external information
  3. C.a mechanism preventing concurrent operations from corrupting shared state
  4. D.a value a configuration exports for display or for use by other configurations
Reveal the answer + AI explanation — free account

30. Which statement is correct?

Mid
  1. A.State lock — the terraform.tfstate that maps configuration to real-world resources
  2. B.State lock — a way to create multiple resource instances from a map or set of keys
  3. C.State lock — a mechanism preventing concurrent operations from corrupting shared state
  4. D.State lock — storage for state outside the local disk, often with locking, such as S3 plus DynamoDB
Reveal the answer + AI explanation — free account

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

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice IaC · Terraform free