Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

Part 1: Terraform Core Architecture, HCL & Providers (1 - 15)

4%
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:

  1. 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.
  2. 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.