Skip to content
tezvyn:

Cicd

52 bites tagged Cicd — interview questions with model answers, and 60-second explainers.

Docker & Kubernetes1 min read

Vulnerability scanning as a deploy gate

Scan with Trivy or Clair, fail the build on high or critical severity above threshold, and enforce again at admission with signing and registry policies. shift-left image security in CI/CD.

CI/CD & Automation2 min read

Automate a canary release with a 1% 5xx error threshold

This tests wiring an SLO into an automated canary loop. A strong answer covers traffic splitting via a mesh or ingress, an analysis query to Prometheus for 5xx rate, and auto-promote or abort logic.

CI/CD & Automation2 min read

Explain GitOps and how an agent knows when to apply changes

Tests declarative infrastructure and pull-based reconciliation. A strong answer says Git is the source of truth and the agent polls or watches for drift, then applies diffs. Red flag: calling a push-based CI pipeline GitOps.

CI/CD & Automation2 min read

What is SAST and which CI/CD stage integrates it best?

Define SAST as source-code scanning; run it in the test stage on every commit; note early detection is cheapest. Shift-left thinking and where static analysis belongs in CI/CD.

CI/CD & Automation2 min read

What is IaC and its CI/CD benefits over manual provisioning?

Cover descriptive models, idempotency, and on-demand environments for repeatable CI/CD. Your understanding of IaC as versioned, declarative infrastructure that stops snowflake environments and drift.

CI/CD & Automation2 min read

What is Infrastructure as Code (IaC), and how does it support CI/CD?

This tests if you link declarative definitions to repeatable pipelines. A strong answer covers idempotence, versioned templates, and preventing snowflake environments. A red flag is calling IaC mere scripting without CI/CD integration.

MLOps & Infrastructure2 min read

Describe securing an automated ML pipeline and CI/CD integration points

Tests ML supply-chain depth versus bolt-on appsec. Strong answers stage checks across dependency scans at build, container and model scans before registry, plus runtime input guards.

CI/CD & Automation1 min read

GitLab patches 13 CVEs including SAML account takeover flaw

GitLab 19.0.2, 18.11.5, and 18.10.8 patch 13 security flaws, including four High-severity CVEs like SAML account takeover (CVSS 8.7) and unauthenticated API DoS. Self-managed instances must upgrade immediately; GitLab.com is already patched.

CI/CD & Automation2 min read

Design a golden path CI/CD pipeline for a Go API

Propose build, test, SAST, containerize, deploy stages with hooks or config overlays for flexibility. Balancing standardization with team autonomy. A rigid pipeline with no escape hatches or weak security gates.

CI/CD & Automation2 min read

Design a selective build strategy for a large monorepo

Tests monorepo dependency graph reasoning. Good answers model a DAG, compute reverse deps of the changed library, rebuild only affected targets via Bazel or Nx, and cache remotely. Red flag: directory triggers, full rebuilds, or testing the library alone.

CI/CD & Automation2 min read

Design a dynamic, risk-based quality gate system

Tests if you can move CI/CD from binary pass/fail to contextual risk scoring. Strong answers define criticality tiers, weight signals by severity and blast radius, and emit GO/CAUTION/STOP states.

CI/CD & Automation2 min read

How would you architect deployment capabilities for multiple disparate environments?

This tests platform design for secure multi-environment orchestration. A strong answer proposes a declarative control plane, environment-local agents with short-lived credentials, and templating for consistency.

CI/CD & Automation2 min read

Describe a robust strategy for GitOps database schema migrations

Tests imperative-to-declarative schema reconciliation. Strong answers version idempotent pre-sync jobs and colocate schema state in Git. They use dedicated operators, not infra tools, for live execution.

CI/CD & Automation2 min read

What is configuration drift in GitOps and how do tools handle it?

This tests declared and actual state and GitOps reconciliation. A strong answer defines drift as out-of-band changes, notes auditability, and contrasts self-healing sync with read-only detection. A red flag is suggesting manual patches rather than fixing Git.

CI/CD & Automation2 min read

Two common GitOps repository layouts for multiple environments

Tests GitOps state-store trade-offs beyond single-cluster demos. Contrast a monorepo with directory overlays against repo-per-env; weigh polling overhead, blast radius, and promotion flow. Recommending branch-per-env destroys immutability and invites drift.

CI/CD & Automation2 min read

How do you secure secrets in a GitOps repository?

Tests whether you treat Git as source of truth while excluding plaintext credentials. A strong answer covers encrypting at rest with SOPS or Sealed Secrets, external stores like Vault, and operator workflows.

CI/CD & Automation2 min read

Walk me through deploying a new version using a GitOps workflow

Merge updates manifests; the GitOps controller compares desired state in Git to live state and reconciles. Separation of CI from CD and Git as the single source of truth. Mixing CI with CD or recommending manual deploy.

CI/CD & Automation2 min read

How would you use a Kubernetes Admission Controller as CI/CD security gate?

Tests pre-deployment enforcement via admission webhooks. Strong answers: ValidatingAdmissionWebhooks blocking bad manifests, Pod Security Standards restricted profiles, and OPA/Gatekeeper for image signatures. Red flag: confusing with RBAC or runtime scanning.

CI/CD & Automation2 min read

How would you integrate automated security scanning for Terraform in CI/CD?

Run Checkov or TFLint in CI to block builds; catch open security groups, missing encryption, secrets in code, and bad IAM. Shift-left security and IaC misconfig detection in CI.

CI/CD & Automation2 min read

Compare SAST and DAST. Why use both, and their limits?

Tests whether you understand complementary security testing layers in CI/CD. A strong answer contrasts static source analysis without execution against dynamic runtime attack simulation and explains that relying on only one leaves applications vulnerable.

CI/CD & Automation2 min read

Design a zero-downtime Kubernetes Deployment strategy for a stateless microservice

Set RollingUpdate with maxSurge 1 and maxUnavailable 0; use readiness probes to gate traffic; set terminationGracePeriodSeconds and preStop to drain requests. K8s rolling updates and graceful pod termination.

CI/CD & Automation2 min read

How ensure Kubernetes pulls correct new image and why avoid :latest?

Tests immutable tagging and Kubernetes image pull behavior. Strong answers demand unique tags like git SHA, explicit deployment spec updates, and explain :latest's reproducibility failures across nodes.

CI/CD & Automation2 min read

Walk me through a production-ready Dockerfile for a web app

Tests multi-stage builds, layer caching, and security hardening. A strong answer covers a pinned slim FROM, multi-stage separation of build and runtime, ordered COPY for cache, and a non-root USER.

CI/CD & Automation2 min read

How do you securely manage and inject Helm secrets in CI/CD?

Tests secret lifecycle trade-offs in GitOps. Strong answers compare SOPS-encrypted values in Git, direct Vault injection for dynamic secrets, and External Secrets Operator to decouple secrets from charts.

Get Cicd bites daily.

Five a day, five minutes, offline. With quizzes so it sticks.

Open testing — you’ll join as an early tester.