
Terraform Advanced
Modules, workspaces, remote state, data sources, dynamic blocks, provisioners, drift detection
1What is a Terraform module?
What is a Terraform module?
Antwort
A Terraform module is a reusable container of resources and infrastructure logic. It allows encapsulating a set of related resources and reusing them across different projects or environments. Modules accept input variables and can expose outputs to enable composition and chaining between modules.
2What is the main difference between a workspace and a module?
What is the main difference between a workspace and a module?
Antwort
Workspaces allow managing multiple instances of the same code with separate state files, while modules encapsulate reusable code. A workspace serves to isolate states for different environments, whereas a module serves to reuse infrastructure logic. Workspaces share the same code but different states, modules share code across projects.
3What is the main advantage of using a remote backend like S3 instead of local state?
What is the main advantage of using a remote backend like S3 instead of local state?
Antwort
The remote backend enables state sharing between team members and guarantees deployment consistency. With local state, each developer has their own copy, creating conflicts and inconsistencies. The remote backend also offers state locking to prevent concurrent modifications and facilitates collaboration by centralizing the source of truth.
How to create a new Terraform workspace?
What is the difference between a data source and a resource in Terraform?
+19 Interview-Fragen
Weitere DevOps-Interviewthemen
Version Control & Git
Linux Fundamentals
Shell Scripting & Bash
Networking Basics
Docker Fundamentals
CI/CD Fundamentals
GitHub Actions
GitLab CI/CD
Jenkins
Kubernetes Basics
Kubernetes Networking
Kubernetes Advanced
Ingress & API Gateway
Terraform Basics
Ansible & Configuration Management
AWS Essentials
Azure Fundamentals
GCP Fundamentals
Monitoring & Prometheus
Logging & ELK Stack
Alerting & Incident Response
Cloud Identity & Secrets
CI/CD Pipeline Security
Helm & Kubernetes
Runtime & Cluster Security
Container Supply Chain Security
Service Mesh & Istio
GitOps & ArgoCD
Progressive Delivery
Distributed Observability
Disaster Recovery & Backup
Performance Optimization
Cloud Cost Optimization
SRE Principles
Chaos Engineering
Platform Engineering
Meistere DevOps für dein nächstes Interview
Zugang zu allen Fragen, Flashcards, technischen Tests, Code-Review-Übungen und Interview-Simulatoren.
Kostenlos starten