DevOps

Terraform Basics

Infrastructure as Code, providers, resources, variables, outputs, state management, troubleshooting drift

22 Interview-Fragen·
Mid-Level
1

What is Infrastructure as Code (IaC)?

Antwort

Infrastructure as Code is a practice of managing and provisioning computing infrastructure through machine-readable configuration files rather than manual processes. This approach enables versioning infrastructure, easily reproducing it, and applying the same software development practices such as code reviews and automated testing. Terraform is one of the most popular IaC tools because it is cloud-agnostic and uses a declarative language.

2

What is the role of a provider in Terraform?

Antwort

A Terraform provider is a plugin that enables Terraform to interact with a cloud platform, SaaS service, or specific API. Each provider exposes resources and data sources specific to the target platform. For example, the AWS provider allows creating EC2 instances, S3 buckets, and other AWS services. Providers must be declared and initialized with terraform init before they can be used.

3

What is a resource in Terraform?

Antwort

A Terraform resource represents an infrastructure component managed by Terraform, such as a virtual machine instance, a network, or a database. Resources are declared in configuration files with a type and a unique local name. Terraform uses these declarations to create, modify, or delete the actual infrastructure. Each resource has configuration arguments and exported attributes that can be used by other resources.

4

What are input variables used for in Terraform?

5

What is the role of outputs in Terraform?

+19 Interview-Fragen

Meistere DevOps für dein nächstes Interview

Zugang zu allen Fragen, Flashcards, technischen Tests, Code-Review-Übungen und Interview-Simulatoren.

Kostenlos starten