LearnThatStack Ace your next interview
DevOps
Terraform.
32 Qs 4 free
Change topic Change
Drill · questions

All questions

of 32
Beginner 10
01

What is Terraform and how does it differ from other Infrastructure as Code tools?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Terraform is an open-source Infrastructure as Code (IaC) tool developed by HashiCorp that allows you to define and provision infrastructure using declarative configuration files. Unlike imperative tools that require you to specify step-by-step instructions, Terraform uses a declarative approach where you describe the desired end state.

Key differences from other IaC tools:

  • Provider-agnostic: Works with multiple cloud providers (AWS, Azure, GCP, etc.)
  • State management: Maintains a state file to track real-world resources
  • Plan and apply workflow: Shows changes before applying them
  • Immutable infrastructure: Replaces resources rather than modifying them in place
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

Explain the basic Terraform workflow.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The Terraform workflow consists of four main steps:

  1. Write: Create configuration files (.tf) defining your infrastructure
  2. Initialize: Run terraform init to download providers and modules
  3. Plan: Run terraform plan to preview changes before applying
  4. Apply: Run terraform apply to create/modify/destroy infrastructure
terraform init
terraform plan
terraform apply
terraform destroy  # when cleanup is needed
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

What are Terraform providers and how do you configure them?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Providers are plugins that enable Terraform to interact with cloud platforms, SaaS providers, and APIs. They define resource types and data sources available for use.

Example AWS provider configuration:

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
  }
}

provider "aws" {
  region = "us-west-2"
}
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

What is the difference between a resource and a data source in Terraform?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Resources are infrastructure components that Terraform creates, manages, and destroys. They represent the desired state of infrastructure.

Data sources allow Terraform to fetch information about existing infrastructure or external systems without managing them.

# Resource - creates new EC2 instance
resource "aws_instance" "web" {
  ami           = "ami-12345678"
  instance_type = "t2.micro"
}

# Data source - fetches existing VPC info
data "aws_vpc" "default" {
  default = true
}
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

05

Explain Terraform variables and their types.

Part of Pro
06

What is the Terraform state file and why is it important?

Part of Pro
07

How do you define outputs in Terraform and why are they useful?

Part of Pro
08

What are the main Terraform configuration files and their purposes?

Part of Pro
09

Explain the terraform init command and when you need to run it.

Part of Pro
10

What is the difference between terraform plan and terraform apply?

Part of Pro
Intermediate 10
11

Explain Terraform modules and their benefits.

Part of Pro
12

What are Terraform workspaces and when should you use them?

Part of Pro
13

Explain remote state backends and their advantages.

Part of Pro
14

What are data sources and provide some practical examples?

Part of Pro
15

Explain Terraform functions and provide examples.

Part of Pro
16

What are provisioners and when should you avoid them?

Part of Pro
17

Explain dynamic blocks and provide an example.

Part of Pro
18

What are lifecycle rules and when do you use them?

Part of Pro
19

How do you handle sensitive data in Terraform?

Part of Pro
20

Explain count and for_each meta-arguments.

Part of Pro
Expert 12
21

How do you implement advanced state management strategies?

Part of Pro
22

Explain Terraform import and state manipulation commands.

Part of Pro
23

How do you implement infrastructure testing strategies with Terraform?

Part of Pro
24

Explain advanced module patterns and composition strategies.

Part of Pro
25

How do you implement CI/CD pipelines for Terraform?

Part of Pro
26

How do you handle Terraform state conflicts and corruption?

Part of Pro
27

Explain custom provider development and plugin architecture.

Part of Pro
28

How do you implement multi-cloud and hybrid cloud strategies with Terraform?

Part of Pro
29

Explain Terraform performance optimization techniques.

Part of Pro
30

How do you implement disaster recovery and backup strategies for Terraform?

Part of Pro
31

How do you troubleshoot complex Terraform issues?

Part of Pro
32

Explain advanced security practices for Terraform in enterprise environments.

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

28 of 32 Terraform answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.