Terraform Interview Questions and Answers
Related differences
Ques 1. What is Terraform?
Terraform is an open-source infrastructure as code (IaC) tool used for building, changing, and versioning infrastructure efficiently.
Ques 2. Explain the difference between Terraform and Ansible.
Terraform is primarily an IaC tool that focuses on provisioning and managing infrastructure, while Ansible is a configuration management tool that automates software provisioning, configuration, and application deployment.
Ques 3. What is a Terraform module?
A Terraform module is a reusable and self-contained collection of Terraform configurations used to define and provision a particular piece of infrastructure.
Ques 4. Explain the concept of 'state' in Terraform.
Terraform state is a snapshot of the infrastructure managed by Terraform. It is used to keep track of the resources created and their current state.
Ques 5. How does Terraform manage secrets and sensitive data?
Terraform uses input variables and data sources to manage sensitive information securely. Secrets can be stored in environment variables or using a secret management tool.
Most helpful rated by users: