Q1. What is Terraform state and why should it be remote?
Terraform state is a JSON file that maps your configuration to real infrastructure. It stores resource IDs, attribute values, and dependency metadata so Terraform knows w...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (9 available).
Terraform state is a JSON file that maps your configuration to real infrastructure. It stores resource IDs, attribute values, and dependency metadata so Terraform knows w...
A provider is a plugin that lets Terraform talk to an API, such as AWS, Azure, or Kubernetes. - Declare required providers and versions so builds are reproducible. - terr...
A module is a reusable package of Terraform configuration. Every configuration is a root module, and it can call child modules. Benefits: - Encapsulation: expose a small ...
IaC defines infrastructure (networks, servers, databases, DNS, IAM) in version-controlled declarative files, applied by a tool such as Terraform, Pulumi, CloudFormation o...
plan is a dry run; apply makes changes. - terraform plan refreshes state, compares configuration to reality, and shows what will be created, updated, or destroyed. It doe...
Workspaces let one configuration manage multiple, separate states. terraform.workspace is a variable naming the active workspace, and the default workspace always exists....
Drift is a difference between real infrastructure and Terraform state, usually caused by manual changes. Detect: - terraform plan refreshes state and shows differences. -...
The lifecycle block controls how Terraform creates, updates, and destroys a resource. - create_before_destroy: create the replacement before destroying the old one, reduc...
Both create multiple instances of a resource, but they track them differently. - count takes a number and identifies instances by index, such as resource[0] and resource[...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.