Terraform & IaC (50 Qs)•Part 1: Terraform Core Architecture, HCL & Providers (1 - 15)
Explain the Terraform Core Engine Architecture: Providers, State File, and Directed Acyclic Graph (DAG).
senior LevelCLIFormsCI/CD & DevOps
In Simple Words: Terraform consists of two primary layers:
- Terraform Core:
- Parses HCL configurations.
- Builds a Directed Acyclic Graph (DAG) of all resources to determine dependencies and maximum parallel execution paths.
- Compares the desired state against the State File to produce an execution plan.
- Terraform Providers (AWS, Azure, GCP, Kubernetes, GitHub):
- Standalone plugins written in Go that communicate with Terraform Core over gRPC.
- Translate abstract resource blocks (
resource "aws_s3_bucket" ...) into concrete cloud vendor API calls.