Terraform Interview Questions and Answers
Related differences
Ques 6. What is the purpose of 'terraform init'?
'terraform init' initializes a Terraform working directory, downloading necessary plugins and setting up the backend for storing the Terraform state.
Ques 7. Explain the difference between 'terraform apply' and 'terraform plan'.
'terraform plan' shows the execution plan without actually applying the changes, while 'terraform apply' executes the plan and makes the changes to the infrastructure.
Ques 8. What is a Terraform provider?
A Terraform provider is a plugin that enables Terraform to interact with a specific cloud, infrastructure, or service provider, allowing resource creation and management.
Ques 9. How can you create a reusable Terraform module?
To create a reusable Terraform module, define input variables, outputs, and use the module in other configurations. Organize the module in a separate directory with a 'main.tf' file.
Ques 10. What is remote backend in Terraform?
A remote backend in Terraform is a centralized location where Terraform stores its state file. It allows collaboration among team members and supports features like locking and state versioning.
Most helpful rated by users: