# Jenkins (DevOps) > Pipeline, Jenkinsfile, plugin, agent, declarative vs scripted pipeline, Blue Ocean, build 문제 해결 - 22 면접 질문 - Mid-Level - [면접 질문: DevOps](https://sharpskill.dev/ko/technologies/devops/interview-questions.md) ## 1. Jenkinsfile란 무엇입니까? **답변** Jenkinsfile은 Jenkins pipeline의 정의를 담은 텍스트 파일로, 프로젝트 repository에 저장됩니다. pipeline 구성을 소스 코드와 함께 버전 관리할 수 있어 추적성과 협업이 용이해집니다. Pipeline as Code 접근 방식으로 Jenkinsfile을 사용하는 것은 Jenkins가 권장하는 모범 사례입니다. ## 2. Jenkins에서 declarative pipeline과 scripted pipeline의 주요 차이점은 무엇입니까? **답변** declarative pipeline은 agent와 stages 같은 필수 섹션을 갖춘 구조화되고 사전 정의된 구문을 사용하여 더 단순하고 읽기 쉬운 접근 방식을 제공합니다. scripted pipeline은 순수 Groovy 코드를 사용하여 더 높은 유연성을 제공하지만 프로그래밍 전문성이 필요합니다. 대부분의 경우 단순성과 유지보수성 측면에서 declarative가 권장됩니다. ## 3. declarative Jenkinsfile에서 agent 디렉티브의 목적은 무엇입니까? **답변** agent 디렉티브는 pipeline을 어디서 어떻게 실행할지 지정합니다. 전체 pipeline에 대해 전역으로 정의하거나 stage별로 개별 정의할 수 있습니다. 옵션에는 사용 가능한 임의의 agent에서 실행하는 any, stage별로 특정 agent를 정의하는 none, 특정 label을 가진 agent를 대상으로 하는 label 등이 있습니다. agent를 적절히 구성하면 리소스 사용과 build 성능을 최적화할 수 있습니다. ## 19개 추가 질문 이용 가능 - declarative pipeline에서 stages 섹션의 역할은 무엇입니까? - Jenkinsfile에서 credentials를 안전하게 관리하려면 어떻게 해야 합니까? 무료로 가입하기: 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 - [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/jenkins