# GitLab CI/CD (DevOps) > .gitlab-ci.yml, stages, jobs, runners, artifacts, cache, environments, deployments, solução de problemas de pipelines - 22 perguntas de entrevista - Mid-Level - [Perguntas de entrevista: DevOps](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista.md) ## 1. Qual é o nome do arquivo de configuração para definir pipelines do GitLab CI/CD? **Resposta** O arquivo .gitlab-ci.yml localizado na raiz do repositório define todos os pipelines, stages, jobs e configurações de CI/CD. O GitLab detecta automaticamente esse arquivo e executa os pipelines a cada push ou merge request. O formato YAML fornece uma sintaxe declarativa para definir a infraestrutura como código dos pipelines. ## 2. O que representa um 'stage' no GitLab CI/CD? **Resposta** Um stage é uma fase lógica do pipeline que agrupa vários jobs executados em paralelo. Os stages são executados sequencialmente na ordem definida (ex: build → test → deploy). Os jobs dentro do mesmo stage podem ser executados em paralelo se houver vários runners disponíveis. Se um job falhar em um stage, o pipeline para por padrão. ## 3. Qual é a principal diferença entre 'artifacts' e 'cache' no GitLab CI? **Resposta** Os artifacts são arquivos gerados por um job e passados para os jobs seguintes ou disponíveis para download (ex: binários compilados, relatórios de testes). O cache armazena dependências para acelerar os builds (ex: node_modules, .m2). Os artifacts são garantidos entre jobs, o cache é best-effort. O cache usa uma chave para compartilhamento entre pipelines, os artifacts são por pipeline. ## Mais 19 perguntas disponiveis - Qual palavra-chave controla quando um job é executado no GitLab CI? - O que é um GitLab Runner? Cadastre-se gratis: https://sharpskill.dev/pt/login ## Outros temas de entrevista DevOps - [Controle de versão & Git](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/version-control-git.md): 20 perguntas, Junior - [Fundamentos do Linux](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/linux-fundamentals.md): 22 perguntas, Junior - [Shell Scripting & Bash](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/shell-scripting-bash.md): 20 perguntas, Mid-Level - [Fundamentos de Redes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/networking-basics.md): 22 perguntas, Junior - [Fundamentos do Docker](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/docker-fundamentals.md): 24 perguntas, Junior - [Fundamentos de CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ci-cd-fundamentals.md): 18 perguntas, Junior - [GitHub Actions](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/github-actions.md): 22 perguntas, Mid-Level - [Jenkins](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/jenkins.md): 22 perguntas, Mid-Level - [Fundamentos do Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-basics.md): 26 perguntas, Mid-Level - [Networking de Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-networking.md): 24 perguntas, Mid-Level - [Kubernetes Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-advanced.md): 24 perguntas, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ingress-api-gateway.md): 20 perguntas, Mid-Level - [Fundamentos do Terraform](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-basics.md): 22 perguntas, Mid-Level - [Terraform Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-advanced.md): 22 perguntas, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ansible-configuration.md): 20 perguntas, Mid-Level - [Fundamentos do AWS](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/aws-essentials.md): 26 perguntas, Mid-Level - [Fundamentos do Azure](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/azure-fundamentals.md): 22 perguntas, Mid-Level - [Fundamentos do GCP](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gcp-fundamentals.md): 22 perguntas, Mid-Level - [Monitoramento e Prometheus](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/monitoring-prometheus.md): 22 perguntas, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/logging-elk.md): 20 perguntas, Mid-Level - [Alerting e Incident Response](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/alerting-incident-response.md): 20 perguntas, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cloud-identity-secrets.md): 22 perguntas, Mid-Level - [Segurança de Pipelines CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cicd-pipeline-security.md): 20 perguntas, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/helm-kubernetes.md): 20 perguntas, Mid-Level - [Segurança Runtime e Cluster](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/runtime-cluster-security.md): 24 perguntas, Senior - [Container Supply Chain Security](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/container-supply-chain.md): 22 perguntas, Senior - [Service Mesh & Istio](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/service-mesh-istio.md): 24 perguntas, Senior - [GitOps & ArgoCD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitops-argocd.md): 22 perguntas, Senior - [Progressive Delivery](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/progressive-delivery.md): 20 perguntas, Senior - [Observabilidade Distribuída](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/observability-distributed.md): 22 perguntas, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/disaster-recovery.md): 20 perguntas, Senior - [Otimização de Desempenho](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/performance-optimization.md): 22 perguntas, Senior - [Otimização de Custos na Nuvem](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/infrastructure-cost.md): 20 perguntas, Senior - [Princípios de SRE](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/sre-principles.md): 24 perguntas, Senior - [Chaos Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/chaos-engineering.md): 20 perguntas, Senior - [Platform Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/platform-engineering.md): 22 perguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitlab-ci