# GitHub Actions (DevOps) > Workflows, jobs, steps, actions marketplace, OIDC, secrets, matrix builds, caching, troubleshooting workflows - 22 interview questions - Mid-Level - [Interview Questions: DevOps](https://sharpskill.dev/en/technologies/devops/interview-questions.md) ## 1. What is a workflow in GitHub Actions? **Answer** A workflow is a configurable automated process defined in a YAML file in the .github/workflows directory. It contains one or more jobs that execute based on specific trigger events. Workflows enable automation of build, test, deployment and other CI/CD tasks directly from GitHub. ## 2. What is the correct syntax to trigger a workflow on every push to the main branch? **Answer** The syntax on: push: branches: [main] triggers a workflow only when a push is made to the main branch. This configuration is very common for CI workflows that must run on every code change to the main branch. ## 3. What is the difference between a job and a step in GitHub Actions? **Answer** A job is an execution unit that contains multiple steps and runs on a dedicated runner. Steps are individual tasks that execute sequentially within the same job. Jobs can run in parallel by default, while steps in a job always execute in the defined order. ## 19 more questions available - How to reference a secret in a GitHub Actions workflow? - Which event triggers a workflow when creating a pull request? Sign up for free: https://sharpskill.dev/en/login ## Other DevOps interview topics - [Version Control & Git](https://sharpskill.dev/en/technologies/devops/interview-questions/version-control-git.md): 20 questions, Junior - [Linux Fundamentals](https://sharpskill.dev/en/technologies/devops/interview-questions/linux-fundamentals.md): 22 questions, Junior - [Shell Scripting & Bash](https://sharpskill.dev/en/technologies/devops/interview-questions/shell-scripting-bash.md): 20 questions, Mid-Level - [Networking Basics](https://sharpskill.dev/en/technologies/devops/interview-questions/networking-basics.md): 22 questions, Junior - [Docker Fundamentals](https://sharpskill.dev/en/technologies/devops/interview-questions/docker-fundamentals.md): 24 questions, Junior - [CI/CD Fundamentals](https://sharpskill.dev/en/technologies/devops/interview-questions/ci-cd-fundamentals.md): 18 questions, Junior - [GitLab CI/CD](https://sharpskill.dev/en/technologies/devops/interview-questions/gitlab-ci.md): 22 questions, Mid-Level - [Jenkins](https://sharpskill.dev/en/technologies/devops/interview-questions/jenkins.md): 22 questions, Mid-Level - [Kubernetes Basics](https://sharpskill.dev/en/technologies/devops/interview-questions/kubernetes-basics.md): 26 questions, Mid-Level - [Kubernetes Networking](https://sharpskill.dev/en/technologies/devops/interview-questions/kubernetes-networking.md): 24 questions, Mid-Level - [Kubernetes Advanced](https://sharpskill.dev/en/technologies/devops/interview-questions/kubernetes-advanced.md): 24 questions, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/en/technologies/devops/interview-questions/ingress-api-gateway.md): 20 questions, Mid-Level - [Terraform Basics](https://sharpskill.dev/en/technologies/devops/interview-questions/terraform-basics.md): 22 questions, Mid-Level - [Terraform Advanced](https://sharpskill.dev/en/technologies/devops/interview-questions/terraform-advanced.md): 22 questions, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/en/technologies/devops/interview-questions/ansible-configuration.md): 20 questions, Mid-Level - [AWS Essentials](https://sharpskill.dev/en/technologies/devops/interview-questions/aws-essentials.md): 26 questions, Mid-Level - [Azure Fundamentals](https://sharpskill.dev/en/technologies/devops/interview-questions/azure-fundamentals.md): 22 questions, Mid-Level - [GCP Fundamentals](https://sharpskill.dev/en/technologies/devops/interview-questions/gcp-fundamentals.md): 22 questions, Mid-Level - [Monitoring & Prometheus](https://sharpskill.dev/en/technologies/devops/interview-questions/monitoring-prometheus.md): 22 questions, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/en/technologies/devops/interview-questions/logging-elk.md): 20 questions, Mid-Level - [Alerting & Incident Response](https://sharpskill.dev/en/technologies/devops/interview-questions/alerting-incident-response.md): 20 questions, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/en/technologies/devops/interview-questions/cloud-identity-secrets.md): 22 questions, Mid-Level - [CI/CD Pipeline Security](https://sharpskill.dev/en/technologies/devops/interview-questions/cicd-pipeline-security.md): 20 questions, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/en/technologies/devops/interview-questions/helm-kubernetes.md): 20 questions, Mid-Level - [Runtime & Cluster Security](https://sharpskill.dev/en/technologies/devops/interview-questions/runtime-cluster-security.md): 24 questions, Senior - [Container Supply Chain Security](https://sharpskill.dev/en/technologies/devops/interview-questions/container-supply-chain.md): 22 questions, Senior - [Service Mesh & Istio](https://sharpskill.dev/en/technologies/devops/interview-questions/service-mesh-istio.md): 24 questions, Senior - [GitOps & ArgoCD](https://sharpskill.dev/en/technologies/devops/interview-questions/gitops-argocd.md): 22 questions, Senior - [Progressive Delivery](https://sharpskill.dev/en/technologies/devops/interview-questions/progressive-delivery.md): 20 questions, Senior - [Distributed Observability](https://sharpskill.dev/en/technologies/devops/interview-questions/observability-distributed.md): 22 questions, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/en/technologies/devops/interview-questions/disaster-recovery.md): 20 questions, Senior - [Performance Optimization](https://sharpskill.dev/en/technologies/devops/interview-questions/performance-optimization.md): 22 questions, Senior - [Cloud Cost Optimization](https://sharpskill.dev/en/technologies/devops/interview-questions/infrastructure-cost.md): 20 questions, Senior - [SRE Principles](https://sharpskill.dev/en/technologies/devops/interview-questions/sre-principles.md): 24 questions, Senior - [Chaos Engineering](https://sharpskill.dev/en/technologies/devops/interview-questions/chaos-engineering.md): 20 questions, Senior - [Platform Engineering](https://sharpskill.dev/en/technologies/devops/interview-questions/platform-engineering.md): 22 questions, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/technologies/devops/interview-questions/github-actions