Latest DevOps Interview Questions and Answers (2027)

48 latest DevOps interview questions for 2027: Gateway API, OpenTofu vs Terraform, OIDC in CI/CD, SBOM, SLSA, platform engineering and DORA.

Sep 6, 2025 - 13:57
Nov 7, 2026 - 01:35
 0  100
Latest DevOps Interview Questions and Answers (2027)

The latest DevOps interview questions go beyond CI/CD definitions. Interviewers now ask about recent changes: platform engineering, Gateway API after the ingress-nginx retirement, OpenTofu and Terraform licensing, OIDC instead of stored cloud keys, software supply chain security, DORA metrics and AI coding assistants. This guide has 48 current questions with direct answers.

Use it to update your preparation for 2027 interviews. If you want the fundamentals in one place, start with our 20 most common DevOps interview questions for a quick list or the 200+ DevOps interview questions hub for full coverage. This post concentrates on what has changed recently and how to talk about it.

Key takeaways

  • Expect questions on recent tool changes, not just definitions. Know the dates and the official sources.
  • The Kubernetes project announced the retirement of the community ingress-nginx controller in November 2025. Gateway API is the routing standard to learn.
  • HashiCorp moved Terraform to the Business Source License in 2023, which led to the OpenTofu fork under the Linux Foundation. IBM completed its acquisition of HashiCorp in 2025.
  • Short-lived credentials through OIDC have replaced stored cloud keys as the expected answer for CI/CD access.
  • Supply chain questions cover SBOMs, signing and provenance (SLSA, Sigstore).
  • Seniors should be ready to discuss platform engineering, DORA metrics and how they review AI-generated code.

What changed, at a glance

AreaRecent changeWhat to say in an interview
Kubernetes ingressCommunity ingress-nginx retirement announced (Nov 2025)Plan migration to another controller or Gateway API
Kubernetes sidecarsNative sidecar containers stable since v1.33Use init containers with restartPolicy: Always
Infrastructure as codeTerraform under BSL; OpenTofu fork; IBM owns HashiCorpKnow both tools and the licence difference
CI/CD credentialsOIDC federation supported by GitHub, GitLab and major cloudsNo long-lived keys in pipelines
AWS developer toolsCodeCommit back to general availability (Nov 2025); CodeCatalyst closed to new customers (Nov 2025)Check service status before recommending a tool

Questions for freshers

1. What is DevOps in one sentence?

DevOps is a way of working where development and operations share responsibility for delivering and running software, supported by automation, fast feedback and measurement.

2. What is the difference between continuous delivery and continuous deployment?

With continuous delivery every change is kept releasable and a person approves the production release. With continuous deployment every change that passes the pipeline goes to production automatically.

3. What are the DORA metrics?

The four widely used DORA measures are deployment frequency, lead time for changes, change failure rate and time to restore service. DORA's research uses them to compare delivery performance. See the value of DORA metrics.

4. What is infrastructure as code?

Managing servers, networks and cloud resources through version-controlled definition files instead of manual console changes. Terraform, OpenTofu, CloudFormation, Pulumi and Ansible are common tools.

5. What is the difference between a container and a virtual machine?

A VM virtualises hardware and runs its own kernel. A container shares the host kernel and isolates processes with namespaces and cgroups, so it starts faster and uses less memory.

6. What is GitOps?

GitOps keeps the desired state of systems in Git and uses an agent such as Argo CD or Flux to apply and continuously reconcile it. Changes go through pull requests. Our GitOps guide explains more.

7. What is observability?

The ability to understand a system's internal state from its outputs: metrics, logs and traces. OpenTelemetry is the CNCF project that standardises how that data is collected.

8. What is shift left?

Moving testing and security checks earlier in the delivery process, for example scanning dependencies on every pull request instead of before release.

9. What is a container registry?

A service that stores and serves container images, such as Docker Hub, Amazon ECR, GitHub Container Registry or Artifactory.

10. What is blue-green deployment?

Running two production environments and switching traffic from the old (blue) to the new (green) after checks, so rollback is a switch back.

11. What is a canary release?

Sending a small share of traffic to a new version, watching metrics, and increasing the share only if it is healthy.

12. Why do teams use feature flags?

Flags separate deploying code from releasing a feature. Teams can merge unfinished work safely, release to a few users and switch off a bad feature without redeploying.

Questions for 2 to 5 years of experience

13. What is Gateway API and why is it replacing Ingress for new designs?

Gateway API is a Kubernetes SIG Network project with resources such as GatewayClass, Gateway and HTTPRoute. It separates infrastructure and application roles, supports more protocols and features than Ingress, and is implemented by many controllers. The ingress-nginx retirement announcement made migration planning a common interview topic.

14. What would you do if your cluster still runs community ingress-nginx?

Inventory every Ingress and any controller-specific annotations, pick a supported replacement or a Gateway API implementation, migrate service by service with both running in parallel, and test TLS, rewrites and timeouts before cutting over DNS.

15. What are native sidecar containers?

Init containers with restartPolicy: Always. They start before the main containers, keep running alongside them and stop after them, which fixes ordering problems with service mesh proxies and log shippers. The feature is stable since Kubernetes v1.33.

16. Terraform or OpenTofu: how do you choose?

Both use HCL and similar workflows. Terraform is licensed under the BSL by HashiCorp (now part of IBM) and has HCP Terraform; OpenTofu is an open source fork under the Linux Foundation with the MPL licence. Choose on licensing policy, features your team needs and provider and tooling support, and test state migration before switching.

17. How do pipelines get cloud access without stored secrets?

Through OIDC federation. The CI system issues a short-lived signed token for the job; the cloud provider trusts that issuer and exchanges the token for temporary credentials if the claims (repository, branch, environment) match a role's trust policy.

permissions:
  id-token: write
  contents: read

18. What is an SBOM and when is it produced?

A software bill of materials lists components and versions in a build, in formats such as SPDX or CycloneDX. Produce it in CI for each artifact, store it with the artifact and use it to answer "are we affected?" when a new CVE appears.

19. What are SLSA and Sigstore?

SLSA (Supply-chain Levels for Software Artifacts) is an OpenSSF framework of levels for build integrity and provenance. Sigstore is an OpenSSF project for signing and verifying artifacts; its cosign tool signs container images, including keyless signing with OIDC identities.

20. How do you stop a compromised third-party CI action from stealing secrets?

Pin actions to a full commit SHA, restrict allowed actions, give the token minimum permissions, avoid running untrusted pull request code with secrets, and prefer OIDC so there are fewer secrets to steal.

21. What is policy as code?

Writing rules as code that tools enforce automatically, for example OPA Gatekeeper or Kyverno admission policies in Kubernetes, or Kubernetes ValidatingAdmissionPolicy using CEL expressions.

22. How does the HorizontalPodAutoscaler work and what is new?

The HPA adjusts replicas based on metrics such as CPU or custom metrics. Kubernetes v1.37 moved HPA scale to zero to beta, according to the Kubernetes blog, which matters for event-driven and idle workloads. KEDA has offered scale to zero for event sources for longer.

23. What is the difference between monitoring and observability?

Monitoring checks known failure conditions with predefined dashboards and alerts. Observability lets you ask new questions about unknown problems using rich telemetry.

24. What are SLIs, SLOs and error budgets?

An SLI is a measured indicator such as the share of successful requests. An SLO is the target, such as 99.9% over 30 days. The error budget is the allowed failure (0.1%); when it is spent, teams slow releases and fix reliability.

25. How do you manage secrets in Kubernetes today?

Enable encryption at rest, and keep the source of truth in a secrets manager such as HashiCorp Vault or a cloud secret store, synced with tools like External Secrets Operator or mounted with the Secrets Store CSI Driver.

26. What is the difference between Docker Compose and Kubernetes?

Compose runs multi-container apps on one host and is ideal for local development. Kubernetes schedules containers across many nodes with self-healing, scaling and rolling updates.

27. How do you make a Docker image smaller and safer?

Use multi-stage builds, a minimal or distroless base image, a non-root user, pinned base image digests, a .dockerignore, and scan the result.

FROM golang:1.23 AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -o /app

FROM gcr.io/distroless/static
COPY --from=build /app /app
USER 65532
ENTRYPOINT ["/app"]

28. What is drift in infrastructure as code and how do you detect it?

Drift is when real infrastructure differs from the code, often from manual changes. Run terraform plan or tofu plan on a schedule and alert when it shows changes, and restrict console write access.

29. How should you check AWS developer tool choices now?

Check each service's current status. AWS returned CodeCommit to general availability in November 2025 after closing it to new customers in 2024, and CodeCatalyst stopped accepting new customers in November 2025. Many teams pair GitHub or GitLab with CodePipeline or their own CI.

30. How do you use AI coding assistants responsibly in DevOps work?

Treat generated code and configs like any contribution: review them, run them through the same tests, linters and security scans, never paste secrets into prompts, and follow your company's policy on which tools are approved.

Senior and lead questions

31. What is platform engineering and how is it different from DevOps?

Platform engineering builds an internal developer platform: self-service paths for creating services, environments and pipelines with security and standards built in. DevOps is the wider culture and practice; platform teams are one way to scale it. See DevOps versus platform engineering.

32. What is an internal developer portal?

A UI and catalogue where developers find services, owners, docs and templates and trigger self-service actions. Backstage, a CNCF project originally from Spotify, is a common open source choice.

33. How do you measure a platform team's success?

DORA metrics for the teams using it, time to first deploy for a new service, adoption of the paved path, and developer satisfaction surveys. Avoid counting tickets closed.

34. How do you approach FinOps in a Kubernetes environment?

Label workloads by team, set accurate requests, use cost allocation tools such as OpenCost (a CNCF project), right-size nodes, use spot capacity where interruptions are acceptable, and show teams their own spend.

35. How do you plan for Kubernetes version support?

The project supports the three most recent minor releases with about a year of patches each. Keep an upgrade calendar, test in staging, check deprecated APIs before each upgrade, and track managed service end-of-support dates.

36. How do you design a multi-region deployment?

Decide active-active or active-passive from RTO and RPO targets, replicate data with the database's supported method, route with health-checked DNS or a global load balancer, and run regular failover tests.

37. How do you handle compliance evidence in pipelines?

Generate evidence automatically: signed artifacts, SBOMs, scan results, approvals in protected environments and audit logs, all stored and linked to each release.

38. What is eBPF and why do DevOps teams care?

eBPF lets sandboxed programs run in the Linux kernel. Tools built on it, such as Cilium for networking and security, and runtime security and profiling tools, give deep visibility with low overhead.

39. How do you run incident reviews?

Blameless reviews with a timeline, contributing factors, what helped and what slowed recovery, and tracked actions with owners. The goal is fewer repeat incidents.

40. How would you introduce DevSecOps to a team that has none?

Start with quick wins in CI: secret scanning, dependency scanning and image scanning, set to warn first and then block for critical issues. Add threat modelling for new services and train champions in each team.

Scenario questions

41. Production deploys fail one time in five.

Measure where: build, test, deploy or post-deploy checks. Fix flaky tests, make deploys idempotent, add readiness checks and automated rollback, and track change failure rate.

42. A new CVE affects a widely used library.

Query SBOMs or SCA results for affected services, patch by risk, rebuild and redeploy through the normal pipeline, and add a policy that blocks the vulnerable version.

43. A cloud access key was found in a public repository.

Revoke and rotate it at once, review provider logs for misuse, remove it from history, enable push protection, and move the pipeline to OIDC.

44. Developers wait days for new environments.

Offer self-service templates (Terraform or OpenTofu modules, Helm charts, GitOps) with guardrails, and ephemeral preview environments per pull request.

45. Your Terraform state was corrupted.

Restore from the backend's versioning (for example S3 object versions), lock state to stop concurrent writes, and use terraform import or import blocks for resources that are missing.

46. Alerts wake the on-call engineer every night but nothing is broken.

Alert on symptoms tied to SLOs rather than causes, add duration thresholds, route low-severity alerts to tickets, and review alert value each sprint.

47. Leadership wants to "do AI" in the pipeline.

Start with a measured problem, such as slow code review or noisy alerts, pilot a tool on that, keep human review, and compare DORA metrics before and after.

48. Your team must move from community ingress-nginx before support ends.

Run the new controller in parallel, migrate low-risk services first, translate annotations, test with real traffic, then switch DNS and remove the old controller.

How to keep up

  1. Read the Kubernetes release blog for each minor version.
  2. Follow official status pages and changelogs for the clouds and CI tools on your CV.
  3. Build one project that uses OIDC, an SBOM, image signing and GitOps end to end.

Our DevOps training covers these tools in Kharadi, Pune and live online. Go further with advanced DevOps interview questions, practical DevOps questions and DevOps questions for freshers.

FAQ

What are the latest topics in DevOps interviews?

Gateway API, native sidecars, OpenTofu versus Terraform, OIDC for CI/CD, SBOMs and signing, platform engineering, DORA metrics and responsible use of AI assistants.

Is Terraform still worth learning?

Yes. Terraform is widely used, and OpenTofu uses the same language, so the skills carry over. Learn the licence difference too.

What replaced ingress-nginx?

Nothing replaces it one for one. Teams move to another supported Ingress controller or to a Gateway API implementation.

What are the DORA metrics?

Deployment frequency, lead time for changes, change failure rate and time to restore service.

Do freshers get asked about recent changes?

Sometimes at a basic level, such as what GitOps or OIDC is. Most detailed questions on recent changes go to experienced candidates.

How should I mention AI tools in an interview?

Explain how you use them and how you review their output with tests, scans and peer review. Do not claim results you cannot show.

References

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.