# GitLab CI/CD (DevOps) > .gitlab-ci.yml, stages, jobs, runners, artifacts, cache, environments, deployments, 파이프라인 문제 해결 - 22 면접 질문 - Mid-Level - [면접 질문: DevOps](https://sharpskill.dev/ko/technologies/devops/interview-questions.md) ## 1. GitLab CI/CD 파이프라인을 정의하는 설정 파일의 이름은 무엇입니까? **답변** 리포지토리 루트에 있는 .gitlab-ci.yml 파일은 모든 파이프라인, stages, jobs 및 CI/CD 설정을 정의합니다. GitLab은 이 파일을 자동으로 감지하여 push 또는 merge request마다 파이프라인을 실행합니다. YAML 형식은 파이프라인 인프라를 코드로 정의하기 위한 선언적 구문을 제공합니다. ## 2. GitLab CI/CD에서 'stage'는 무엇을 나타냅니까? **답변** stage는 병렬로 실행되는 여러 jobs를 그룹화하는 파이프라인의 논리적 단계입니다. stages는 정의된 순서대로 순차적으로 실행됩니다(예: build → test → deploy). 동일한 stage 내의 jobs는 여러 runners를 사용할 수 있는 경우 병렬로 실행될 수 있습니다. stage에서 job이 실패하면 기본적으로 파이프라인이 중지됩니다. ## 3. GitLab CI에서 'artifacts'와 'cache'의 주요 차이점은 무엇입니까? **답변** artifacts는 job에 의해 생성되어 후속 jobs로 전달되거나 다운로드 가능한 파일입니다(예: 컴파일된 바이너리, 테스트 보고서). cache는 빌드 속도를 높이기 위해 의존성을 저장합니다(예: node_modules, .m2). artifacts는 jobs 간에 보장되지만 cache는 best-effort입니다. cache는 파이프라인 간 공유를 위해 키를 사용하고, artifacts는 파이프라인별입니다. ## 19개 추가 질문 이용 가능 - GitLab CI에서 job이 언제 실행되는지 제어하는 키워드는 무엇입니까? - GitLab Runner란 무엇입니까? 무료로 가입하기: 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 - [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 - [Terraform 고급](https://sharpskill.dev/ko/technologies/devops/interview-questions/terraform-advanced.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/gitlab-ci