Loading…
Git, Maven/Gradle, Jenkins, CI/CD, Terraform, Docker & Kubernetes
DevOps fluency is now table-stakes for any senior engineering role. This hub covers the full pipeline: Git workflows, Java build tools (Maven, Gradle), CI/CD platforms, Jenkins declarative pipelines, Terraform and Infrastructure-as-Code, Docker images, and Kubernetes workloads — plus the scenario questions interviewers actually ask (rollback, blue-green, pipeline failures, Terraform state drift).
How to use this hub
7 modules cover devops end-to-end. Open the first module, use Open question 1 on its landing page, and use Next at the bottom of each answer to stay in order.
Revision sheet
~12 min · 5 sections · save as PDF
Git interview questions cover the version control system every developer touches daily — the difference between merge and rebase (and when to use each), interactive rebase for cleaning history, git bisect for finding the commit that broke a test, cherry-pick vs merge for backporting, resolving merge conflicts, Git hooks for code quality, monorepo vs polyrepo trade-offs, GitFlow vs trunk-based development, and the production scenarios interviewers love ("someone committed a secret to git — what now?"). For Maven/Gradle build-tool questions, see the Java Build Tools page.
Git is a content-addressable file system + a DAG of commits.
The interview surface for this module breaks into these focus areas:
"My team works trunk-based with short-lived branches, rebases before push, merges via PR, and uses `git bisect` to find regressions. We never force-push the trunk and protect it with required checks + signed commits."
Revision sheet
~12 min · 5 sections · save as PDF
Java build tool interview questions cover Maven and Gradle in interview depth — Maven lifecycle phases, dependency scopes and conflict resolution, multi-module projects, profiles, publishing artifacts; Gradle build scripts, the dependency DSL, the wrapper, multi-module builds, incremental builds, and the Maven-vs-Gradle decision (and Bazel as the third option). Use this page for any role that touches CI builds, library publishing, or migrating between build tools.
Maven and Gradle solve the same problem differently:
mvnw / gradlew) is non-negotiable — pin the build tool version.SNAPSHOT in releases.The interview surface for this module breaks into these focus areas:
provided for servlet APIs. in Maven, include 'a','b' in Gradle.mvn deploy vs gradle publish; both need credentials in settings, not in code."For a new Spring Boot project I'd reach for
, pin the version via wrapper, manage deps with BOMs, fail the build on convergence conflicts, and publish via CI with credentials from the secret store."
Revision sheet
~12 min · 5 sections · save as PDF
CI/CD interview questions cover the pipelines that ship every modern Java backend — GitHub Actions vs Jenkins vs GitLab CI, declarative Jenkins pipelines, secret management, deployment strategies (blue/green, canary, rolling, feature flags), trunk-based development, automated rollback on SLO regression, and the production debugging questions interviewers love ("the pipeline is suddenly 4x slower — what now?"). For Terraform/IaC questions, see the dedicated Terraform page; for Jenkins-specific deep dives, see the Jenkins page.
CI ≠ CD ≠ CDeployment. Always disambiguate.
The interview surface for this module breaks into these focus areas:
.github/workflows; review in PR."I'd run trunk-based with PR builds, deploy on merge to staging, gate prod on a manual approval (or auto-promote on green SLOs), use canary + auto-rollback, and feature-flag risky changes so deploys are decoupled from releases."
Revision sheet
~12 min · 5 sections · save as PDF
Jenkins interview questions cover the CI server still running half the world's Java backend pipelines — declarative vs scripted pipelines, Jenkinsfile structure, agents, shared libraries, credentials and secrets, plugin ecosystem, multi-branch pipelines, and the upgrade-and-stability concerns that come up in interviews for Jenkins-heavy shops. For broader CI/CD comparisons (GitHub Actions, GitLab CI), see the CI/CD page.
Jenkins = a job orchestrator with a pipeline DSL.
Jenkinsfiles.The interview surface for this module breaks into these focus areas:
parallel { ... } block; quick win for slow tests."I'd run declarative pipelines with versioned shared libraries, pin agents by label, scope credentials per-step, and treat plugin upgrades as code review. For new shops I'd consider GitHub Actions or GitLab CI before standing up Jenkins."
Revision sheet
~12 min · 5 sections · save as PDF
Terraform and Infrastructure-as-Code interview questions cover the tool that provisions most modern cloud infrastructure — providers, resources, state management (and remote state), modules, workspaces, the plan/apply lifecycle, drift detection, secrets handling, and the patterns for multi-environment deployments. Use this page for any DevOps/SRE role where IaC ownership is part of the job spec.
Terraform = declarative infra, with state as the source of truth.
terraform.tfstate, remote in S3+DynamoDB / GCS / Terraform Cloud.The interview surface for this module breaks into these focus areas:
plan; fix with import or rebuild..tf; pull from a vault data source."State lives remotely with locking, modules are versioned, secrets come from
, environments are split via workspaces, and every change goes plan → review → apply through CI — manual `apply` from a laptop is a smell."
Revision sheet
~12 min · 5 sections · save as PDF
Docker interview questions cover the container runtime every backend engineer is expected to know — image layers and caching, Dockerfile best practices, multi-stage builds, the difference between ENTRYPOINT and CMD, networking modes, volumes and bind mounts, image security (non-root, distroless), and the Spring Boot-specific patterns (layered jars, jib). For orchestration, see the Kubernetes page.
Docker = process isolation via Linux namespaces + cgroups.
The interview surface for this module breaks into these focus areas:
"I'd build a multi-stage Dockerfile, base on distroless, run as non-root, declare a `HEALTHCHECK`, leverage Spring Boot layered jars for cache hits, and pin the digest in production manifests."
Revision sheet
~12 min · 5 sections · save as PDF
Kubernetes interview questions are now standard for any senior Java backend role — pods, deployments, services, ingress, ConfigMaps and Secrets, HPA and resource requests/limits, StatefulSets and persistent volumes, rolling updates and rollback, network policies, RBAC, and the production-debugging questions interviewers ask ("a pod is in CrashLoopBackOff — walk me through your debug"). Pair this page with the Docker, CI/CD and Cloud-Native pages for the full container-platform interview surface.
K8s = control loops over a desired-state spec.
The interview surface for this module breaks into these focus areas:
kubectl describe for events, logs --previous for the prior crash."I'd deploy stateless apps as a Deployment with readiness + liveness probes, set realistic requests/limits, expose via Service + Ingress, manage config in ConfigMap / Secrets, and scale with HPA on a metric that tracks user-perceived load."