DevOps Engineer question bank
442 questions. Filter by level and skill, track what you've solved, and see how many people get each one right.
- CI vs Continuous Delivery
- Ordering Dockerfile steps for caching
- Image vs container
- Smallest unit in Kubernetes
- Undoing a commit already pushed to main
- What chmod 755 means
- What terraform plan does
- Blue-green deployment
- Which process owns a port
- What set -euo pipefail does
- Rebase vs merge
- Trunk-based development
- Why use a .dockerignore file
- Container exits right after start
- Deployment and ReplicaSet
- Logs from a crashed container
- Are Kubernetes Secrets encrypted
- What namespaces isolate
- Helm values precedence
- What terraform init does
- Why Terraform keeps state
- Idempotency in Ansible
- How Prometheus collects metrics
- Counter vs gauge
- SLI, SLO and SLA
- Where GitHub Actions workflows live
- GitLab CI stages
- Why keep a Jenkinsfile in the repo
- Semantic version for a breaking change
- Immutable infrastructure
- A record vs CNAME
- 502 vs 504 errors
- What Trivy scans for
- Why use Vault dynamic secrets
- Parking unfinished changes
- Copying one fix to a release branch
- Version bump for a breaking change
- Build once, promote everywhere
- Releasing when a tag is pushed
- Stopping direct pushes to main
- Finding which commit broke a test
- .gitignore not ignoring a file
- Conventional commit prefixes
- What squash merge does
- What SAST does
- What DAST does
- What SCA tools find
- What "shift left" means
- What an SBOM is
- CVE vs CVSS
- Least privilege for a CI token
- Catching secrets before commit
- Keeping secrets out of CI logs
- Why use a minimal base image
- What Dependabot or Renovate do
- What secret rotation means
- Why require a second reviewer
- Severity for a CVSS score
- When to scan container images
- What STRIDE is used for
- What the OWASP Top 10 is
- Protecting CI and registry accounts
- Why keep pipeline audit logs
- In transit vs at rest
- AGPL library in a SaaS product
- What push protection does
- What IaC scanning catches
- ENV password in a Dockerfile
- What a security champion does
- Zero trust in one line
- Starting from default deny
- Reducing attack surface
- Defence in depth
- Standing admin access to production
- What OpenSSF Scorecard checks
- Passwords in a Helm values file
- What a Terraform provider is
- Resource block vs data block
- What terraform fmt does
- What terraform validate checks
- What terraform destroy does
- What a local value is for
- Which tfvars files load automatically
- Setting a variable from the environment
- What a Terraform module is
- What ~> 5.0 allows
- What an Ansible inventory holds
- How Ansible reaches Linux hosts
- Ad-hoc command vs playbook
- Declarative infrastructure code
- Reading an output after apply
- Where a role's tasks live
- Rendering a config file per host
- Running a task as root
- What Ansible facts are
- Keeping a password in the repo safely
- Running a playbook on one server
- What a Terraform backend is
- What not to commit in a Terraform repo
- Reading -/+ in a plan
- A YAML error with variables
- Why post the plan on a PR
- Terraform and Ansible together
- Seeing what a file change will be
- Why write ansible.builtin.copy
- Installing collections in CI
- Running plan with OpenTofu
- A failed CloudFormation create
- What sets Pulumi apart
- What cdk synth produces
- What Bicep is
- CMD vs ENTRYPOINT
- What EXPOSE really does
- Reading a -p port mapping
- Keeping database data across restarts
- kubectl apply vs kubectl create
- What a ConfigMap is for
- Running a log agent on every node
- Reading a CronJob schedule
- Finding which node a Pod is on
- How a Service finds its Pods
- Calling a Service in another namespace
- Reaching a Pod from your laptop
- Helm chart vs release
- Using :latest in a Deployment
- Rolling back a bad Deployment
- Seeing why a Pod is not starting
- Running a command inside a Pod
- Docker restart policy on a VM
- Local app with a database and cache
- What the scheduler does
- What the kubelet does
- Where cluster state lives
- Switching between clusters
- Including Postgres in your chart
- Pushing an image to a registry
- Job Pod shows Completed
- Readiness vs liveness probes
- Terraform state in a team
- Why use multi-stage builds
- Kubernetes Service types
- Deciding to promote a canary
- Cloud credentials in CI
- Choosing a CI cache key
- CPU vs memory limits
- ImagePullBackOff from a private registry
- Pod stuck Pending on CPU
- Exit code 137
- HPA shows unknown targets
- NetworkPolicy has no effect
- Node drain hangs forever
- Console change shows up in plan
- Bringing an existing bucket under Terraform
- Sensitive outputs and state
- Replacement causes downtime
- When Ansible handlers run
- Matrix jobs cancelled early
- Secrets empty on fork PRs
- Two pipelines for every push
- Running builds on the Jenkins controller
- Argo CD app always OutOfSync
- Helm says another operation is in progress
- Per-second request rate in PromQL
- Prometheus memory keeps growing
- Choosing what to page on
- Why run an OpenTelemetry Collector
- Traces break between services
- Running containers as non-root
- Cloud key pushed to a public repo
- Cloud access from Pods
- df says full, du says not
- Making deploy wait for tests
- Artifacts vs cache in CI
- Two deploys at the same time
- Approval before production deploy
- Merge conflict in package-lock.json
- Sharing one pipeline across 30 repos
- Choosing an image tag in CI
- Speeding up GitLab stages
- git describe fails in CI
- Computing change failure rate
- When rolling updates are unsafe
- Builds pass or fail by runner
- Where to fix a production bug first
- Limiting GITHUB_TOKEN rights
- Pinning third-party actions
- Spotting a typosquatted package
- Dependency confusion
- Why CI uses npm ci
- Triaging 300 SCA findings
- Handling a SAST false positive
- API key found in Git history
- Pod rejected by the restricted profile
- Why use a read-only root filesystem
- Linux capabilities for a web app
- Risk of privileged: true
- Mounting the Docker socket
- How Pods log in to Vault
- What External Secrets Operator does
- KMS encryption for Kubernetes Secrets
- RBAC that leaks every Secret
- Private registry token during build
- CVE with a fixed version available
- Blocking :latest at the cluster
- Secret leaked despite masking
- Using secrets in a Jenkinsfile
- GitLab variable for prod deploys only
- Rotating an API key without downtime
- Cloud access without key files
- Encrypting fields without holding keys
- Mounting secrets straight from a vault
- Pods that never call the API
- Modern ServiceAccount tokens
- Who can read etcd
- A sensible image scan gate
- Detecting a shell in a container
- Admins skipping branch protection
- Who must review pipeline changes
- Policy checks on a Terraform plan
- Attaching provenance and SBOM at build
- The two main SBOM formats
- Focusing audit on shipped code
- Trusting a deploy webhook
- What a signed commit proves
- Who read a Kubernetes Secret
- Attaching a signed SBOM to an image
- Proving a binary came from your workflow
- Which variable value wins
- How Terraform orders resources
- When depends_on is really needed
- Guarding a production database
- Tags changed by another tool
- Turning a list into a map
- Many ingress rules from a list
- Creating a resource only in prod
- What CLI workspaces give you
- Variables in the backend block
- Using -target day to day
- Applying exactly what was reviewed
- Inspecting one resource in state
- Handing a resource to another team
- An AMI lookup that changes
- Rejecting a bad input early
- Pinning a registry module
- A certificate in another region
- Testing an expression quickly
- Recording drift without changing it
- Which Ansible variable value wins
- Settings for one group of hosts
- A task only for Ubuntu
- Installing a list of packages
- Using one task's output in another
- A command task that always says changed
- Cleaning up when a task fails
- Running a step on another machine
- Inventory for auto scaled servers
- Running only the config tasks
- Locking with the S3 backend today
- Hardening the state bucket
- What Atlantis does
- Why teams add Terragrunt
- Blocking public buckets automatically
- What tflint adds to validate
- Moving to a newer provider
- Showing cost before merge
- Terraform fighting the autoscaler
- Turning off facts to speed up
- Encrypting state in OpenTofu
- Switching a stack to OpenTofu
- One provider per region in a loop
- Previewing a CloudFormation update
- Testing an Ansible role
- Cloud resources as Kubernetes objects
- How many more Pods fit on a node
- Pods during a 25 percent rollout
- Why use Ingress for many apps
- Ingress created but nothing happens
- Service with zero endpoints
- PVC Pending: waiting for first consumer
- What init containers guarantee
- Declaring a native sidecar
- Changed ConfigMap, old value in app
- RoleBinding pointing to a ClusterRole
- Checking a ServiceAccount permission
- NoSchedule vs NoExecute taints
- Required vs preferred node affinity
- Keeping replicas on separate nodes
- Undoing a Helm upgrade
- Stale packages from layer cache
- COPY or ADD in a Dockerfile
- Debugging a container with no shell
- Drain refuses because of DaemonSets
- Quota rejects Pods without requests
- Per-environment changes with Kustomize
- Slow Python builds on Alpine
- Build ARG missing at runtime
- Dockerfile HEALTHCHECK on Kubernetes
- Routing rules in Gateway API
- Deleting a PVC deleted the disk
- Multi-Attach error on a second Pod
- Giving the app its own Pod name
- kubectl top gives an error
- Overlapping CronJob runs
- Stopping a Job that keeps failing
- Docker images after dockershim removal
- How rollout restart works
- Events gone the next morning
- Making CI wait for the rollout
- Looking up a field without the docs site
- Container ignores SIGTERM
- Removing an item from a count list
- Rolling update that never finishes
- Hotfix keeps disappearing
- Renaming a column with zero downtime
- Same tag, different image
- Errors during every rollout
- Risky GitHub Actions trigger
- Throttled at 30 percent CPU
- Slow external DNS in Pods
- Provider checksum mismatch in CI
- One huge Terraform state
- Refactoring into a module safely
- Secrets in a GitOps repo
- Running migrations before rollout in Argo CD
- StatefulSet Pod pending after node replacement
- Java Pod OOMKilled with free heap
- Canary on a low-traffic service
- Only deploy images built by CI
- Policy webhook takes down deploys
- Alert silent when the service dies
- SLO burn-rate alerting
- Logging bill tripled
- Huge NAT gateway charges
- Running workloads on spot
- First move in a post-deploy outage
- Outage that will not end
- All replicas landed in one zone
- PR stuck waiting for a required check
- set -e does not stop the script
- Deleted secret still in the image
- App fails every hour on DB auth
- Median lead time for changes
- Main breaks with two green PRs
- Shipping a new API field to the app
- Same commit, different build result
- Wall time after test sharding
- Recovering after a bad force push
- Security gain of pull-based GitOps
- Migrations run by every replica
- Docker cache on fresh runners
- Prioritising beyond CVSS
- What SLSA Build L3 adds
- How keyless cosign signing works
- Answering a customer scan with VEX
- Self-hosted runners on a public repo
- Cache poisoning in a release build
- Injection through an issue title
- Stopping overwritten release tags
- Secrets as env vars vs files
- Running customer code in containers
- CVE in a package the app never uses
- Revoking leaked dynamic DB credentials
- Trusted registries and digests only
- Installing a CLI with curl | bash
- Where to run an active DAST scan
- Answering "are we affected?" fast
- Lesson from the xz utils backdoor
- Auto-merging dependency bumps
- Why reproducible builds matter
- The secret zero problem
- Vault restarts at 3 a.m.
- Rotating the Secrets encryption key
- Stopping exfiltration from runners
- Worms spread through install scripts
- Pod create rights reveal Secrets
- Designing break-glass access
- Workflows approving pull requests
- SBOM from source vs from the image
- A signing key was leaked
- Pods stealing the node cloud role
- Privilege escalation via PassRole
- Limiting where Pods can connect
- Forcing one resource to be rebuilt
- Rebuilding when a related thing changes
- for_each over a list with repeats
- Checking an assumption before create
- What a check block is for
- Importing 40 hand-made resources
- A DB password that never hits state
- depends_on on a whole module
- A lock left by a crashed job
- Sharing VPC IDs between stacks
- Removing a module that has its own provider
- Unit testing a module cheaply
- Splat on a for_each resource
- Updating 20 web servers safely
- Dry run with shell tasks
- run_once inside a rolling play
- Many lineinfile tasks on one config
- An apply that fails halfway
- Designing state boundaries
- A nightly drift check job
- Cluster and workloads in one apply
- Plan after a provider major upgrade
- for_each over a sensitive variable
- Bake an image or configure at boot
- Vault password in a pipeline
- Push vs pull with Ansible
- A state file overwritten by mistake
- Linear vs free strategy
- Releasing a shared internal module
- Looking up a resource you just created
- Continuous reconcile vs plan and apply
- Skipping one broken resource
- Stack stuck in UPDATE_ROLLBACK_FAILED
- Two tools managing one resource
- HPA replica calculation
- Memory HPA never scales down
- VPA and HPA fighting
- Node never removed by the autoscaler
- Backing up a self-managed control plane
- Canary with StatefulSet partition
- Reaching one StatefulSet replica
- externalTrafficPolicy: Local trade-off
- OOMKilled by a scratch directory
- Evicted for ephemeral storage
- Critical Pod cannot schedule on a full cluster
- Namespace stuck in Terminating
- Changing a Deployment selector
- Restart delay in CrashLoopBackOff
- ConfigMap file mounted with subPath
- Spotting a Guaranteed QoS Pod
- Effective CPU request with init containers
- Failed pre-upgrade migration hook
- Manifests fail after a cluster upgrade
- Order of a cluster upgrade
- Scale-out slowed by image pulls
- Annotation too long on apply
- Config change does not roll Pods
- Where the next Pod can go
- StatefulSet Pod stuck on a dead node
- CronJob stops after controller downtime