# Terraform 고급 (DevOps) > module, workspace, remote state, data source, dynamic block, provisioner, drift 감지 - 22 면접 질문 - Mid-Level - [면접 질문: DevOps](https://sharpskill.dev/ko/technologies/devops/interview-questions.md) ## 1. Terraform module이란 무엇인가요? **답변** Terraform module은 리소스 및 인프라 로직의 재사용 가능한 컨테이너입니다. 관련 리소스 집합을 캡슐화하고 여러 프로젝트나 환경에서 재사용할 수 있게 해줍니다. Module은 입력 variable을 받고 module 간 구성 및 체이닝을 가능하게 하는 output을 노출할 수 있습니다. ## 2. workspace와 module의 주요 차이점은 무엇인가요? **답변** Workspace는 동일한 코드의 여러 인스턴스를 별도의 state file로 관리하는 반면, module은 재사용 가능한 코드를 캡슐화합니다. Workspace는 서로 다른 환경의 state를 격리하기 위해, module은 인프라 로직을 재사용하기 위해 사용됩니다. Workspace는 동일한 코드를 공유하지만 state는 다르며, module은 프로젝트 간 코드를 공유합니다. ## 3. 로컬 state 대신 S3와 같은 remote backend를 사용하는 주요 이점은 무엇인가요? **답변** Remote backend는 팀원 간 state 공유를 가능하게 하고 배포 일관성을 보장합니다. 로컬 state는 각 개발자가 자신의 복사본을 가지므로 충돌과 불일치가 발생합니다. Remote backend는 또한 동시 수정을 방지하는 state locking을 제공하고 신뢰의 원천을 중앙화하여 협업을 용이하게 합니다. ## 19개 추가 질문 이용 가능 - 새 Terraform workspace를 어떻게 만들 수 있나요? - Terraform에서 data source와 resource의 차이점은 무엇인가요? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 DevOps 면접 주제 - [버전 관리 & Git](https://sharpskill.dev/ko/technologies/devops/interview-questions/version-control-git.md): 20개 질문, Junior - [Linux 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/linux-fundamentals.md): 22개 질문, Junior - [Shell Scripting & Bash](https://sharpskill.dev/ko/technologies/devops/interview-questions/shell-scripting-bash.md): 20개 질문, Mid-Level - [네트워킹 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/networking-basics.md): 22개 질문, Junior - [Docker 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/docker-fundamentals.md): 24개 질문, Junior - [CI/CD 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/ci-cd-fundamentals.md): 18개 질문, Junior - [GitHub Actions](https://sharpskill.dev/ko/technologies/devops/interview-questions/github-actions.md): 22개 질문, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/ko/technologies/devops/interview-questions/gitlab-ci.md): 22개 질문, Mid-Level - [Jenkins](https://sharpskill.dev/ko/technologies/devops/interview-questions/jenkins.md): 22개 질문, Mid-Level - [Kubernetes 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/kubernetes-basics.md): 26개 질문, Mid-Level - [Kubernetes 네트워킹](https://sharpskill.dev/ko/technologies/devops/interview-questions/kubernetes-networking.md): 24개 질문, Mid-Level - [Kubernetes 고급](https://sharpskill.dev/ko/technologies/devops/interview-questions/kubernetes-advanced.md): 24개 질문, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/ko/technologies/devops/interview-questions/ingress-api-gateway.md): 20개 질문, Mid-Level - [Terraform 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/terraform-basics.md): 22개 질문, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/ko/technologies/devops/interview-questions/ansible-configuration.md): 20개 질문, Mid-Level - [AWS 핵심](https://sharpskill.dev/ko/technologies/devops/interview-questions/aws-essentials.md): 26개 질문, Mid-Level - [Azure 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/azure-fundamentals.md): 22개 질문, Mid-Level - [GCP 기초](https://sharpskill.dev/ko/technologies/devops/interview-questions/gcp-fundamentals.md): 22개 질문, Mid-Level - [모니터링과 Prometheus](https://sharpskill.dev/ko/technologies/devops/interview-questions/monitoring-prometheus.md): 22개 질문, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/ko/technologies/devops/interview-questions/logging-elk.md): 20개 질문, Mid-Level - [알림 및 인시던트 대응](https://sharpskill.dev/ko/technologies/devops/interview-questions/alerting-incident-response.md): 20개 질문, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/ko/technologies/devops/interview-questions/cloud-identity-secrets.md): 22개 질문, Mid-Level - [CI/CD 파이프라인 보안](https://sharpskill.dev/ko/technologies/devops/interview-questions/cicd-pipeline-security.md): 20개 질문, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/ko/technologies/devops/interview-questions/helm-kubernetes.md): 20개 질문, Mid-Level - [런타임 및 클러스터 보안](https://sharpskill.dev/ko/technologies/devops/interview-questions/runtime-cluster-security.md): 24개 질문, Senior - [Container Supply Chain Security](https://sharpskill.dev/ko/technologies/devops/interview-questions/container-supply-chain.md): 22개 질문, Senior - [Service Mesh & Istio](https://sharpskill.dev/ko/technologies/devops/interview-questions/service-mesh-istio.md): 24개 질문, Senior - [GitOps & ArgoCD](https://sharpskill.dev/ko/technologies/devops/interview-questions/gitops-argocd.md): 22개 질문, Senior - [Progressive Delivery](https://sharpskill.dev/ko/technologies/devops/interview-questions/progressive-delivery.md): 20개 질문, Senior - [분산 옵저버빌리티](https://sharpskill.dev/ko/technologies/devops/interview-questions/observability-distributed.md): 22개 질문, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/ko/technologies/devops/interview-questions/disaster-recovery.md): 20개 질문, Senior - [성능 최적화](https://sharpskill.dev/ko/technologies/devops/interview-questions/performance-optimization.md): 22개 질문, Senior - [클라우드 비용 최적화](https://sharpskill.dev/ko/technologies/devops/interview-questions/infrastructure-cost.md): 20개 질문, Senior - [SRE 원칙](https://sharpskill.dev/ko/technologies/devops/interview-questions/sre-principles.md): 24개 질문, Senior - [Chaos Engineering](https://sharpskill.dev/ko/technologies/devops/interview-questions/chaos-engineering.md): 20개 질문, Senior - [Platform Engineering](https://sharpskill.dev/ko/technologies/devops/interview-questions/platform-engineering.md): 22개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/devops/interview-questions/terraform-advanced