DevOps Interview Questions and Answers

DevOps interview questions sit at the intersection of culture, automation, and production ownership. Panels rarely ask you to recite a manifesto—they want to hear how you ship safely, measure delivery, debug incidents, and know when to hand off to a Kubernetes, Terraform, or Linux specialist guide.

Below are 30+ DevOps interview questions grouped by topic. Each answer ends with a sample line you can say aloud. For tool depth, follow the bridges to Kubernetes interview questions, Git interview questions, Linux interview questions, and AWS interview questions rather than duplicating those pages here.

NOTE
Prep tip: Use What interviewers are testing to understand why the question is being asked, study the response to learn the concept, then practise A strong answer is in your own words. Tie each answer to culture, automation, and measurable outcomes.

Interview context and how to prepare

What DevOps interviews actually test

DevOps interviews test whether you can own the path from commit to production—and explain the human and technical guardrails along the way.

Area What interviewers probe
Culture Collaboration, blameless learning, automation mindset
Delivery CI/CD stages, deployment strategies, rollbacks
Infrastructure Cloud basics, networking, IaC at a conceptual level
Reliability Monitoring, SLOs, incident response, on-call judgment
Breadth When to escalate to K8s, Terraform, or Linux specialists
Role Emphasis
Junior DevOps Pipelines, basic cloud, Linux fluency
Mid-level Deployment strategies, observability, IaC workflows
Senior / lead Architecture trade-offs, platform boundaries, DORA metrics
SRE-leaning Error budgets, incident command, toil reduction

A realistic 3–5 week DevOps prep plan

Week Focus Hands-on drill
1 Linux + Git fluency Work through Linux interview questions and Git interview questions
2 CI/CD concepts + one pipeline Build a lint-test-build-deploy pipeline for a sample app
3 Cloud + networking basics VPC, subnets, LB, IAM roles—pair with AWS interview questions
4 Observability + incidents Define an SLO, write an alert, run a blameless postmortem draft
5 Mock scenarios Failed deploy rollback, on-call triage narrative

Junior vs senior DevOps interview expectations

Topic Junior / mid Senior
CI/CD Names pipeline stages Designs promotion gates, artifact immutability, rollback
Deployments Knows rolling updates Chooses canary vs blue-green with blast-radius reasoning
Cloud Creates a VM and security group Designs multi-AZ topology and least-privilege IAM
Incidents Follows a runbook Leads triage, communicates status, drives postmortem actions
Architecture Deploys what devs built Challenges service boundaries, toil, and platform fit

DevOps culture and delivery fundamentals

How does DevOps differ from traditional operations?

What interviewers are testing: Whether you understand DevOps as an operating model built around shared ownership, fast feedback, and automation—not merely a different toolset.

Traditional ops DevOps
Siloed teams throw work over the wall Shared ownership of build, deploy, and run
Manual change tickets and long releases Automated pipelines and small batches
Stability through change freezes Stability through automation, tests, and observability
Metrics focus on uptime alone DORA metrics plus SLOs and customer impact
Runbooks as the primary artifact Code, pipelines, and docs as versioned assets

DevOps is not "developers doing ops alone"—it is cross-functional delivery with automation reducing handoff friction.

A strong answer is:

Traditional operations often separates development and operations responsibilities with more manual handoffs, while DevOps emphasizes shared delivery ownership, automation, and fast feedback. Change management still matters; I prefer encoding repeatable controls into pipelines and policy where possible.

What is DevOps?

What interviewers are testing: Whether you can define DevOps beyond CI/CD tools and connect culture, automation, feedback, and production ownership.

DevOps is a set of practices and cultural norms that shorten the feedback loop between writing software and running it in production—through collaboration, automation, and continuous learning.

Core ideas interviewers expect:

  • Shared responsibility for reliability and delivery speed
  • Automation of repetitive build, test, and deploy steps
  • Fast feedback from production via monitoring and incidents
  • Incremental change instead of big-bang releases

DevOps complements Agile: Agile optimizes how teams plan work; DevOps optimizes how that work reaches users safely.

A strong answer is:

DevOps is shared ownership of software delivery and operations, supported by automation, fast feedback, and measurement. Tools such as CI/CD, IaC, and Kubernetes enable those practices, but the goal is safer and faster delivery rather than operating a particular tool.

What are the CAMS pillars of DevOps?

What interviewers are testing: Whether you can name the CAMS pillars and connect each to real delivery practices—not acronym memorization.

CAMS is a common DevOps mnemonic:

Pillar Meaning in interviews
Culture Trust, blameless postmortems, shared goals
Automation Pipelines, IaC, policy checks—remove manual toil
Measurement DORA metrics, SLOs, dashboards that drive decisions
Sharing Knowledge spread via docs, pairing, internal talks

Some teams add Lean (waste reduction) or DevSecOps (security in the pipeline)—mention them if the interviewer steers toward security or compliance.

A strong answer is:

CAMS is culture, automation, measurement, and sharing. I use it to explain why we invest in pipelines and SLOs—not just faster deploys, but observable, learnable systems.

What are DORA metrics and why do interviewers ask about them?

What interviewers are testing: Whether you measure delivery outcomes using both throughput and instability instead of treating deployment frequency as the only success metric.

DORA (DevOps Research and Assessment) tracks five software delivery performance metrics:

Metric What it measures
Change lead time Commit to successful production deployment
Deployment frequency How frequently changes reach production
Failed deployment recovery time How quickly service recovers after a deployment causes impairment
Change fail rate Fraction of deployments requiring remediation
Deployment rework rate Fraction of unplanned deployments made to fix user-facing defects

Strong delivery performance balances throughput and instability across the five metrics—not speed alone. DORA groups change lead time, deployment frequency, and failed deployment recovery time under delivery throughput, while change fail rate and deployment rework rate measure instability. Interviewers use DORA to see if you optimize holistically rather than pushing velocity without stability.

A strong answer is:

DORA ties speed to safety. I track change lead time and deployment frequency, but I also watch change fail rate, deployment rework, and failed deployment recovery time—shipping daily means nothing if every release needs a hotfix.

How do DevOps, SRE, and platform engineering relate?

What interviewers are testing: Whether you understand how DevOps, SRE, and platform engineering overlap without treating them as a rigid hierarchy.

Practice Primary focus
DevOps Culture and delivery practices across dev and ops
SRE Reliability engineering—SLOs, error budgets, automation, and toil reduction
Platform engineering Internal platforms, golden paths, developer self-service

In practice the titles overlap. A DevOps engineer might own CI/CD; an SRE might own SLOs and incident process; a platform engineer might own the Kubernetes cluster and IDP. This umbrella guide covers DevOps breadth—see platform engineer interview questions and DevSecOps interview questions for adjacent roles.

A strong answer is:

DevOps is a broad set of culture and delivery practices. SRE applies software-engineering methods to reliability through ideas such as SLOs and error budgets, while platform engineering builds reusable internal capabilities and self-service paths for developers.

What is toil and why should DevOps teams reduce it?

What interviewers are testing: Whether you distinguish operational toil from engineering work—and why reducing toil preserves capacity for reliability improvements.

Toil is repetitive, usually manual and automatable operational work that provides little enduring value and tends to scale with service growth.

Google SRE guidance treats excessive toil as a problem because it crowds out engineering that improves reliability.

Examples of toil vs engineering:

  • Toil: manually restarting failed pods every morning
  • Engineering: fixing the probe, resource limit, or dependency causing restarts

A strong answer is:

Repetitive operational work that is manual, automatable, and has little enduring value is toil. I look for automation or a systemic fix so operational work does not crowd out reliability engineering.


CI/CD and release engineering

What is CI/CD?

What interviewers are testing: Whether you distinguish continuous integration, continuous delivery, and continuous deployment—and what each changes in the pipeline.

Term Meaning
CI (Continuous Integration) Developers integrate changes frequently, with automated build and test feedback on commits and proposed merges
CD (Continuous Delivery) Main branch is always deployable; release is a business decision
CD (Continuous Deployment) Every passing pipeline deploys to production automatically

A typical pipeline stages through source → build → test → security scan → package → deploy → verify.

For Git workflow depth—branching, merge strategies, hooks—see Git interview questions.

A strong answer is:

CI gives fast automated feedback as changes are integrated. Continuous delivery keeps the software releasable on demand through an automated pipeline; continuous deployment goes further and automatically releases every qualifying change to production.

What stages belong in a production-grade CI/CD pipeline?

What interviewers are testing: Whether you design stage order, gates, and rollback—not tool trivia.

Interviewers expect you to name gates, not just steps:

  1. Checkout — pinned action or runner image version
  2. Lint / static analysis — fast feedback on style and obvious bugs
  3. Unit tests — block merge on failure
  4. Build — reproducible artifact (container image, tarball)
  5. Integration / contract tests — against dependencies or ephemeral env
  6. Security scan — SCA, container image scan, IaC lint (see DevSecOps interview questions)
  7. Publish artifact — immutable artifact/version to registry; prefer an image digest or a release tag protected by registry immutability policy
  8. Deploy to staging — smoke tests
  9. Promote to production — manual or automated with canary gates
  10. Post-deploy verify — synthetic checks, metric comparison

A strong answer is:

I design pipelines so fast checks run first and expensive scans still block promotion. The artifact that reaches production is immutable—we never rebuild on the deploy step.

Compare blue-green, canary, and rolling deployments.

What interviewers are testing: Whether you compare deployment strategies by blast radius, rollback speed, and operational cost—not just name three patterns.

Strategy How it works Trade-off
Rolling Replace instances incrementally Simple; mixed versions during rollout
Blue-green Two full environments; switch traffic Fast rollback; double resource cost
Canary Send small % traffic to new version Gradual risk; needs metrics and traffic control

Kubernetes implements rolling updates natively; service meshes and ingress controllers enable fine-grained canaries. Implementation detail belongs in Kubernetes interview questions—here you explain blast radius and rollback speed.

A strong answer is:

I use rolling deployment when gradual replacement and temporary mixed versions are safe. I choose blue-green when rapid traffic cutover and rollback justify duplicate capacity, and canary when I want to expose a small percentage of users first and promote based on metrics.

How do you design deployments for safe rollback?

What interviewers are testing: Whether you design rollback around immutable artifacts, compatible data changes, and verification—not emergency rebuilds.

Rollback-ready delivery requires:

  • Immutable artifacts — redeploy the previous known-good digest or version, do not rebuild from memory
  • Database migration discipline — expand-contract / backward-compatible migrations; choose rollback or roll-forward based on data-change reversibility
  • Feature flags — disable bad logic without redeploying
  • Versioned infrastructure — IaC and Helm revisions pinned in Git
  • Automated verification — post-deploy health checks that fail fast

A strong answer is:

Rollback means redeploying the last known-good artifact and reversing compatible config changes. I avoid irreversible data migrations on risky releases and keep feature flags for risky logic—production teams often roll forward rather than reverse data transformations.

What is the difference between deployment and release?

What interviewers are testing: Whether you understand that code can reach production without being exposed to users—and that release is about customer-visible functionality, not just pushing bits.

Term Meaning
Deployment Installing or activating a software version in an environment
Release Making functionality available to users

A new build may be deployed to production but hidden behind a feature flag or dark launch until the team releases it to customers. Interviewers use this to test whether you separate technical promotion from business exposure.

A strong answer is:

Deployment puts a version into an environment; release exposes functionality to users. I can deploy safely behind flags or partial traffic and release only when metrics and readiness checks justify customer exposure.

Why is artifact immutability important in CI/CD?

What interviewers are testing: Whether you understand why one tested artifact should be promoted unchanged through environments.

An immutable, versioned artifact such as a container image digest or release package is built once, tested once, and promoted through environments without modification.

Benefits interviewers want to hear:

  • Reproducibility — staging and prod run identical bits
  • Audit trail — tie an incident to an exact build
  • Faster rollback — redeploy digest sha256:abc…, not "whatever built last Tuesday"

Anti-pattern: SSH into production and git pull—that breaks immutability and auditability.

A strong answer is:

The pipeline builds the release artifact once and promotes that exact immutable version. For container images I prefer a digest, or a registry policy that guarantees release tags cannot be overwritten. If prod breaks, I roll back to the previous known-good digest or version—not a live compile on the server.


Cloud, networking, and infrastructure basics

What is Infrastructure as Code (IaC) and where does Terraform fit?

What interviewers are testing: Whether you treat infrastructure as versioned, reviewable code—not console clicks.

Infrastructure as Code declares servers, networks, databases, and policies in versioned files—reviewed in PRs, applied by automation, not clicked in a console.

Benefit Interview talking point
Repeatability Same module builds dev and prod
Drift detection Plan/refresh can reveal differences between declared and observed infrastructure
Collaboration PR review for infra changes

Terraform is a popular IaC tool with plan/apply workflow and provider ecosystem. Deep state, modules, and security questions live in the Terraform Associate course and DevSecOps interview questions—here you show you treat infra like application code.

A strong answer is:

IaC means infrastructure changes go through Git like app code. I use Terraform for cloud resources when the team standardizes on it, but the principle—versioned, reviewable, automated—is what matters in a DevOps screen.

What is the cloud shared responsibility model?

What interviewers are testing: Whether you know which security and operational responsibilities stay with you in each cloud service model.

Cloud providers split security and operations duties with customers:

Provider typically owns Customer typically owns
Physical data centers, hypervisor Data classification, IAM policies
Regional network backbone OS patching on IaaS VMs
Managed service control planes Application code, secrets handling
DDoS protection at edge (varies) Network ACLs, encryption config

On IaaS you patch the OS; on SaaS you configure access and data. Expand cloud-specific scenarios in AWS interview questions or Azure developer interview questions.

A strong answer is:

Shared responsibility means I never assume the cloud vendor secures my app. I own identity, data, and configuration; they own the foundation. I map controls explicitly per service type—IaaS vs PaaS vs SaaS.

Explain AWS VPC, subnets, route tables, security groups, and NACLs in one minute.

What interviewers are testing: Whether you can explain VPC networking, routing, and workload-level filtering without conflating subnet placement with automatic internet access.

Concept Role
VPC Isolated virtual network in an AWS region
Subnet IP range within the VPC; a public subnet's route table has a route to an Internet Gateway
Security group Stateful resource-level firewall using allow rules
NACL Stateless subnet-level filter
Route table Defines where subnet traffic is sent, such as local VPC routes, an Internet Gateway, NAT gateway, peering, or other network targets
Internet gateway (IGW) Public subnet route to the internet

Pair with computer networks interview questions for TCP/IP and DNS depth, and AWS interview questions for service-specific scenarios.

A strong answer is:

A VPC is the network boundary. A public subnet has a route to an Internet Gateway, while private workloads commonly use NAT for outbound IPv4 access without accepting direct inbound internet traffic. Security groups provide stateful workload-level filtering.

What is the difference between a load balancer and a reverse proxy?

What interviewers are testing: Whether you understand traffic distribution versus L7 proxy functions while recognizing that modern products often perform both roles.

Component Primary job
Load balancer Distribute traffic across healthy backends
Reverse proxy Terminate TLS, route by path/host, cache, WAF

Many products (NGINX, ALB, Traefik) do both. In Kubernetes, Service load-balances pods; Ingress or Gateway API routes HTTP with host/path rules—see Kubernetes interview questions for object-level detail.

A strong answer is:

A load balancer distributes traffic across healthy backends for availability and scale. A reverse proxy sits in front of apps for TLS termination and L7 routing. In practice one appliance often does both—I care that health checks and session affinity match the app needs.


Monitoring, observability, and reliability

What are the three pillars of observability?

What interviewers are testing: Whether you know how metrics, logs, and traces support debugging distributed systems.

Pillar Captures Example tools
Metrics Numeric time series Prometheus, CloudWatch, Datadog
Logs Discrete events with context Loki, ELK, CloudWatch Logs
Traces Request path across services Jaeger, Tempo, X-Ray

Metrics, logs, and traces are commonly called the "three pillars," but observability is the broader ability to understand system behavior from emitted telemetry—merely collecting all three does not guarantee useful observability.

A strong answer is:

Metrics show rates and trends, logs provide detailed event context, and traces follow a request across service boundaries. Together they help me investigate system behavior, but collecting all three alone does not make a system observable.

Explain SLI, SLO, and SLA.

What interviewers are testing: Whether you connect SLIs, SLOs, and error budgets to release and reliability decisions.

Term Definition
SLI Service Level Indicator—a measured signal (availability, latency p99)
SLO Service Level Objective—target for an SLI (99.9% availability / 30 days)
SLA Service Level Agreement—contract with customer consequences

For percentage-based SLOs, the error-budget fraction is 100% − SLO. It represents the allowed amount of bad service according to that SLI—for example failed requests for an availability SLO or excessively slow requests for a latency SLO.

An agreed error-budget policy can restrict risky releases and prioritize reliability work when the budget is exhausted—that is a policy choice, not an automatic rule.

A strong answer is:

An SLI is the measured reliability signal, such as successful requests over total or the percentage of requests below a latency threshold. An SLO is the target. An SLA is the business promise. Error budget connects reliability to release decisions.

What makes a good on-call alert?

What interviewers are testing: Whether you can distinguish a page-worthy symptom from dashboard noise and design alerts that are actionable, owned, and tied to meaningful user impact.

Good alerts are actionable, urgent, and owned:

  • Fires on user-impacting symptoms (SLO burn) not every CPU blip
  • Includes runbook link and severity
  • Routes to a team that can fix the cause
  • Avoids alert fatigue—if it is not page-worthy, it is a ticket or dashboard

Anti-patterns: paging on a static disk threshold with no time-to-exhaustion, user impact, or actionable response; duplicate alerts for the same root cause; no ownership rotation.

A strong answer is:

I page on urgent, actionable symptoms such as fast SLO burn or significant customer impact. Every page should have clear ownership and enough context to act; noisy alerts should be retuned, downgraded, or removed after confirming they do not require immediate response.

What are the four golden signals?

What interviewers are testing: Whether you monitor latency, traffic, errors, and saturation as primary user-facing health signals.

Google SRE's four golden signals:

Signal Question it answers
Latency How long do requests take?
Traffic How much demand is there?
Errors What fraction fails?
Saturation How full is the resource?

They complement RED (Rate, Errors, Duration) and USE (Utilization, Saturation, Errors) methods for infrastructure.

A strong answer is:

I watch latency, traffic, errors, and saturation before diving into host metrics. They map directly to user experience and capacity planning.


Incident response and on-call

What are the phases of incident response?

What interviewers are testing: Whether you prioritize mitigation and communication before deep root-cause work during incidents.

A common lifecycle:

  1. Detect — alert or customer report
  2. Triage — severity, incident commander, comms channel
  3. Mitigate — restore service (rollback, scale, failover)
  4. Resolve — address the underlying failure and contributing conditions
  5. Post-incident — review contributing factors and corrective actions

For Linux host triage commands, see Linux troubleshooting interview questions.

A strong answer is:

I mitigate first—get customers working—then investigate the underlying failure and contributing factors. Throughout I keep a single incident channel, clear severity, and regular status updates to stakeholders.

What is a blameless postmortem?

What interviewers are testing: Whether you focus postmortems on systemic fixes rather than individual blame.

A blameless postmortem documents timeline, contributing factors, and systemic fixes—without punishing individuals for honest mistakes.

Typical sections:

  • Impact and duration
  • Timeline (UTC)
  • Causes and contributing factors
  • What went well / what did not
  • Action items with owners and due dates

A strong answer is:

Blameless means we fix systems, not scapegoats. The postmortem asks why the guardrails failed—missing alert, unclear runbook, risky deploy window—not who typed the wrong command.

How do you define incident severity levels?

What interviewers are testing: Whether you map incident severity to customer impact and response urgency.

Severity maps customer impact to response expectations:

Level Typical definition Response
SEV1 Major outage or data loss risk All-hands, executive comms, immediate mitigation
SEV2 Significant degradation, workaround exists Page on-call, frequent updates
SEV3 Minor impact, limited users Business hours fix
SEV4 Cosmetic or internal-only Backlog

Definitions vary by company—interviewers want consistent criteria, not your memorized acronym.

A strong answer is:

At organizations where SEV1 is the highest severity, it normally triggers immediate mobilization and stakeholder communication. Lower severities have progressively less urgent response targets based on customer impact and company policy.


Senior architecture and scenarios

When would you choose microservices over a monolith?

What interviewers are testing: Whether you justify microservices only when organizational and operational benefits outweigh the complexity tax.

Microservices fit when Monolith fit when
Independent team scaling and deploy cadence Small team, early product
Clear bounded contexts Tight coupling, shared data model
Org can afford platform overhead Simplicity and fast iteration matter more

DevOps cost rises with microservices—more pipelines, observability, and network failure modes. Kafka interview questions matter when services communicate asynchronously.

A strong answer is:

I split services when team autonomy and independent deploys justify the operational tax. If the org cannot run observability and CI/CD for N services, a modular monolith is healthier.

What is the twelve-factor app methodology?

What interviewers are testing: Whether you know the twelve-factor practices that make apps fit containers and automated delivery.

Twelve-factor describes cloud-native app practices—interviewers often ask for three or four factors:

  • Codebase — one logical codebase tracked in version control, with multiple deploys/environments
  • Dependencies — explicit declaration (requirements.txt, go.mod)
  • Config — the original Twelve-Factor guidance stores deploy-varying config in environment variables rather than code. Modern platforms may additionally inject sensitive configuration through secret managers or mounted files.
  • Backing services — treat DB/cache as attached resources
  • Build, release, run — strict separation of stages
  • Processes — stateless processes; state in backing services
  • Port binding — self-contained HTTP services
  • Concurrency — scale via process model
  • Disposability — fast start and graceful shutdown
  • Dev/prod parity — keep environments similar
  • Logs — applications treat logs as event streams and write to stdout rather than managing log files themselves
  • Admin processes — one-off tasks as separate processes

A strong answer is:

Twelve-factor pushes stateless, configurable apps that fit containers and CI/CD—config stays outside code per the original env-var guidance, while modern platforms may also use secret managers or mounted files for sensitive values.

Scenario: production error rate spiked right after a deploy. What do you do?

What interviewers are testing: Whether you follow a safe incident response sequence when errors correlate with a deployment.

Walk interviewers through an ordered response:

  1. Confirm correlation — deploy timestamp vs error metric
  2. Mitigate — rollback to previous artifact or scale down canary
  3. Communicate — incident channel, status page if customer-facing
  4. Preserve evidence — logs, traces, config diff before hotfix scramble
  5. Stabilize — verify golden signals return to baseline
  6. Investigate causes — bad migration, config flag, dependency version, or another contributing change
  7. Follow-up — add canary gate, integration test, or automated rollback

A strong answer is:

I first correlate the error spike with the deployment and assess customer impact. If the previous version is known-good and rollback is safe, I roll back or stop the canary quickly; otherwise I use the lowest-risk mitigation. Once service stabilizes, I preserve evidence and investigate the exact failure.


Platform practices and modern delivery

What is the difference between configuration management and infrastructure provisioning?

What interviewers are testing: Whether you distinguish infrastructure provisioning from configuration management—and choose tools by lifecycle ownership.

Role Typical focus Example tools
Infrastructure provisioning Create cloud resources and network objects Terraform, CloudFormation, Pulumi
Configuration management Converge OS, packages, and app configuration on hosts Ansible, Chef, Puppet

Boundaries overlap—for example, configuration-management tools can provision some cloud resources and IaC tools can configure certain resource properties. Choose tools based on lifecycle ownership rather than forcing every task into one product.

A strong answer is:

Provisioning creates the infrastructure objects; configuration management converges what's installed and configured on them. I choose tools based on lifecycle ownership, not arbitrary vendor boundaries.

How should CI/CD authenticate to cloud providers?

What interviewers are testing: Whether you prefer short-lived workload identity over long-lived cloud keys in CI/CD.

Model Approach
Legacy Store long-lived cloud access keys in the CI secret store
Preferred Workload identity / OIDC—CI obtains a short-lived identity token; the cloud provider trusts it and issues scoped credentials

The CI platform exchanges a trusted pipeline identity for short-lived credentials constrained to repository, environment, and role—instead of permanent keys in YAML.

See CI/CD interview questions for pipeline context.

A strong answer is:

I prefer workload identity or OIDC federation from CI to the cloud so jobs receive short-lived credentials constrained to that repository, environment, and role instead of storing permanent access keys.

What is configuration drift?

What interviewers are testing: Whether you detect and reconcile when production diverges from declared infrastructure state.

Configuration drift means desired configuration in Git or IaC differs from production reality—someone changed the console, a failed apply left partial state, or an emergency hotfix bypassed the pipeline.

Step Action
Detect IaC plan, config audit, or drift detection tooling
Understand Why did production diverge?
Reconcile Codify the legitimate change or restore reviewed desired state
Avoid Blindly overwriting an emergency production fix before understanding impact

A strong answer is:

Drift means production no longer matches declared configuration. I detect it automatically, understand why it happened, then either codify the legitimate change or reconcile production back to the reviewed desired state.

What is GitOps?

What interviewers are testing: Whether you use Git as declarative desired state with controller reconciliation according to policy.

Model Flow
Push-based deploy CI calls cluster or cloud API directly (kubectl, helm upgrade)
GitOps Git holds declarative desired state; a controller observes Git and reconciles the environment

GitOps is more than storing YAML in Git: desired state is declarative and versioned, and software agents continuously observe the live system against that desired state. Approval can gate changes before they enter the authoritative desired-state branch, but once desired state is accepted, GitOps agents automatically pull it and continuously reconcile the live system toward it.

Full patterns: CI/CD interview questions (GitOps section).

A strong answer is:

GitOps keeps declarative desired state in version control and uses software agents to pull that state and continuously reconcile the live environment toward it. Changes are reviewed through Git policy, giving us an auditable, pull-based deployment model.

How do you design secrets management across DevOps workflows?

What interviewers are testing: Whether you keep secrets out of source and scope pipeline credentials with least privilege.

Practice Why
Never commit credentials Git history is forever
Central secret manager Vault, cloud secret manager, native CI secrets
Short-lived credentials OIDC to cloud; rotate tokens
Least privilege Each job reads only what it needs
Rotation Automate rollover; no immortal keys
Log and artifact hygiene Mask secrets; scan build output
Scope separation Production credentials never on untrusted fork PR builds

A strong answer is:

Secrets stay outside source and artifacts. Pipelines retrieve only what each job needs, preferably through short-lived identity, and production credentials are never exposed to untrusted PR builds.


References

Summary

DevOps interviews reward candidates who connect culture to concrete delivery practice. You practiced how DevOps differs from siloed ops, what CAMS and the five DORA metrics measure, and how DevOps, SRE, and platform engineering overlap and differ.

The middle sections covered pipelines you can defend in a panel—immutable artifacts, deployment strategies, rollback design—and the cloud networking vocabulary interviewers expect before they hand you to an AWS or Kubernetes deep dive.

Closing rounds often pivot to observability and incidents: SLIs, SLOs, golden signals, blameless postmortems, and a calm narrative when a deploy spikes errors. Use the linked specialist guides for tool depth; use this page to show you own the full path from commit to customer impact.

Deepak Prasad

R&D Engineer

Founder of GoLinuxCloud with more than 15 years of expertise in Linux, Python, Go, Laravel, DevOps, Kubernetes, Git, Shell scripting, OpenShift, AWS, Networking, and Security. With extensive experience, he excels across development, DevOps, networking, and security, delivering robust and efficient solutions for diverse projects.

  • Go (programming language)
  • Python (programming language)
  • DevOps
  • Computer Security
  • Cloud Computing
  • Kubernetes
  • Linux
  • Ansible (software)