Real-World Interview

Cheatsheet

The most-asked facts and commands across every tool in this repo, the numbers interviewers expect you to know cold, four answer frameworks, questions to ask, and a day-of checklist. Read it once the night before and once on the morning of.


Linux

TaskCommand
Disk usage per filesystem / inodesdf -h / df -i
Biggest directories on one filesystemdu -xh --max-depth=1 / | sort -h | tail
Deleted files still held openlsof +L1
Top CPU or memory processestop, htop, ps aux --sort=-%mem | head
Load, CPU steal, I/O waituptime, vmstat 1 5, iostat -x 1 3, mpstat -P ALL 1
Memory, including availablefree -h (look at available, not free)
OOM killsdmesg -T | grep -i -E 'killed process|oom', journalctl -k
Service status and logssystemctl status nginx, journalctl -u nginx --since "10 min ago" -f
Listening ports and owning processss -tulpn
Open files and sockets of a processlsof -p <pid>, ls -l /proc/<pid>/fd
What a process is doingstrace -f -p <pid> -e trace=network,file
Find large or recent filesfind /var -xdev -type f -size +500M, find . -mmin -10
Permissionschmod 640 f (rw-r-----), chown app:app f, umask 022
Text processinggrep -E, awk '{print $1}', sed -i 's/a/b/g', sort | uniq -c | sort -rn
Scheduled jobscrontab -l, systemctl list-timers

Must know: a process vs a thread; what load average measures (runnable plus uninterruptible tasks, not CPU percent); zombie vs orphan processes; hard vs soft links (inode vs path); SIGTERM (15, polite) vs SIGKILL (9, cannot be caught); /proc and /sys; why df and du disagree (deleted-but-open files).

Networking

TaskCommand
DNS lookup, short / full tracedig +short api.example.com, dig +trace example.com
Query a specific resolverdig @8.8.8.8 example.com A
HTTP with timings and TLS detailcurl -v https://x, curl -s -o /dev/null -w '%{http_code} %{time_total}\n' https://x
Force a host to an IP (bypass DNS)curl --resolve api.example.com:443:203.0.113.10 https://api.example.com
TCP port reachabilitync -zv db.internal 5432
Certificate expiryecho | openssl s_client -connect x:443 -servername x 2>/dev/null | openssl x509 -noout -dates
Path and per-hop losstraceroute -T -p 443 x, mtr -rwc 50 x
Capture packetstcpdump -i any -nn port 53, tcpdump -i eth0 host 10.0.1.5 and port 443 -w cap.pcap
Routes and interfacesip route, ip addr, ip neigh

Must know: OSI and TCP/IP layers; TCP three-way handshake and TIME_WAIT; TCP vs UDP; how DNS resolution works (stub → recursive → root → TLD → authoritative, TTL caching); A, AAAA, CNAME, MX, TXT, NS, SRV, alias; L4 vs L7 load balancing; NAT and why private subnets need it for outbound; CIDR math (a /24 has 256 addresses); TLS handshake and SNI; forward vs reverse proxy.

Git

TaskCommand
Undo last commit, keep changesgit reset --soft HEAD~1
Undo a pushed commit safelygit revert <sha>
Recover "lost" commitsgit reflog, then git branch rescue <sha>
Interactive cleanup before PRgit rebase -i origin/main
Safe force pushgit push --force-with-lease
Who changed this linegit blame -L 40,60 app.py, git log -S 'func_name' --oneline
Find the commit that broke itgit bisect start; git bisect bad; git bisect good <sha>
Stash including untrackedgit stash -u, git stash pop
Cherry-pick a fix to a release branchgit cherry-pick -x <sha>
Purge a file from historygit filter-repo --path secrets.env --invert-paths (and rotate the secret)

Must know: merge vs rebase and when each is right; never rewrite shared history casually; fetch vs pull; trunk-based vs GitFlow; branch protection and required checks; a leaked secret is fixed by rotation, not by deleting the commit.

Docker

TaskCommand
Build with a tag / target stagedocker build -t app:1.4.2 ., docker build --target test .
Run detached with port and envdocker run -d -p 8080:8080 -e ENV=prod --name app app:1.4.2
Shell into a running containerdocker exec -it app sh
Logsdocker logs -f --tail 100 app
Inspect config, IP, mounts, exit codedocker inspect app --format '{{.State.ExitCode}}'
Image layers and sizesdocker history app:1.4.2, docker images
Live resource usagedocker stats
Clean updocker system df, docker system prune -af --volumes (careful)
Multi-platform build and pushdocker buildx build --platform linux/amd64,linux/arm64 -t r/app:1 --push .

Must know: image vs container; layers and cache order (dependencies before source); multi-stage builds; CMD vs ENTRYPOINT; exec form vs shell form (PID 1 and signals); COPY vs ADD; non-root USER; namespaces (isolation) and cgroups (limits); bind mount vs named volume; bridge vs host networking; .dockerignore; why :latest is not a version.

Kubernetes

TaskCommand
What is wrong with this podkubectl describe pod <p> (Events at the bottom)
Logs of the crashed containerkubectl logs <p> --previous, -c <container> for multi-container
Events, newest lastkubectl get events --sort-by=.lastTimestamp
Is the Service wired to podskubectl get endpoints <svc>, kubectl get endpointslices -l kubernetes.io/service-name=<svc>
Rollout status, history, undokubectl rollout status deploy/x, rollout history, rollout undo deploy/x --to-revision=3
Restart all pods of a Deploymentkubectl rollout restart deploy/x
Resource usagekubectl top pod -A --sort-by=memory, kubectl top node
Debug a running podkubectl debug -it <p> --image=busybox:1.36 --target=<container>
Throwaway test podkubectl run t --rm -it --restart=Never --image=curlimages/curl:8.10.1 -- sh
Can I / can theykubectl auth can-i create deploy -n prod --as=system:serviceaccount:ci:deployer
Port-forwardkubectl port-forward svc/x 8080:80
Drain and return a nodekubectl drain <n> --ignore-daemonsets --delete-emptydir-data, kubectl uncordon <n>
Explain a fieldkubectl explain deploy.spec.strategy.rollingUpdate

Pod status cheat codes

StatusUsual causeFirst check
PendingNo node fits: resources, taints, affinity, unbound PVCdescribe events: 0/3 nodes are available: ...
ImagePullBackOff / ErrImagePullWrong name or tag, private registry without credentialsdescribe: manifest unknown or 401 Unauthorized
CrashLoopBackOffApp exits repeatedly: config, dependency, bad commandlogs --previous, exit code in describe
OOMKilled (exit 137)Container exceeded memory limitdescribe last state, memory metrics, raise limit or fix leak
CreateContainerConfigErrorMissing ConfigMap or Secret keydescribe: secret "x" not found
Running but not ReadyReadiness probe failingdescribe probe failures, curl the probe path inside the pod
Terminating foreverFinalizer or unreachable nodekubectl get pod -o yaml | grep finalizers, node status
EvictedNode pressure (memory, disk)describe node conditions, kubectl get pod -o wide

Must know: control plane components (API server, etcd, scheduler, controller manager) and node components (kubelet, kube-proxy, container runtime); Deployment vs StatefulSet vs DaemonSet vs Job; Service types (ClusterIP, NodePort, LoadBalancer, ExternalName, headless); Ingress vs Gateway API; liveness vs readiness vs startup probes; requests vs limits and QoS classes (Guaranteed, Burstable, BestEffort); HPA vs VPA vs Cluster Autoscaler or Karpenter; PDBs only stop voluntary disruptions (evictions), not kubectl delete pod or node crashes; RBAC (Role, ClusterRole, bindings, ServiceAccounts); ConfigMap vs Secret (base64 is not encryption); NetworkPolicy needs a CNI that enforces it.

CI/CD

ConceptOne-liner
CI vs CD vs CDIntegrate and test every change / always releasable / automatically released
Pipeline orderLint → unit test → build → scan → push artifact → deploy staging → test → promote → deploy prod → verify
Immutable artifactsBuild once, tag with the commit SHA, promote the same artifact through environments
GitOpsDesired state in Git, an in-cluster agent (ArgoCD, Flux) pulls and reconciles, drift is corrected
Deployment strategiesRolling, blue/green (instant switch, double capacity), canary (gradual with metrics), feature flags (decouple deploy from release)
Secrets in pipelinesOIDC federation to the cloud, short-lived tokens, never long-lived keys in variables
SpeedCache dependencies and Docker layers, parallelise tests, run only what changed
yaml
# GitHub Actions essentials
on: { pull_request: {}, push: { branches: [main] } }
permissions: { contents: read, id-token: write }   # least privilege + OIDC
concurrency: { group: deploy-prod, cancel-in-progress: false }
jobs:
  test:  { runs-on: ubuntu-latest, steps: [ { uses: actions/checkout@v4 }, { run: make test } ] }
  deploy:
    needs: test
    if: github.ref == 'refs/heads/main'
    environment: production          # required reviewers, protected secrets
    runs-on: ubuntu-latest
    steps: [ { run: ./deploy.sh } ]

Jenkins in one breath: controller schedules, agents execute; declarative Jenkinsfile with pipeline { agent; stages; post }; credentials via withCredentials; shared libraries for reuse; ephemeral Kubernetes agents instead of static VMs.

Terraform

TaskCommand
Init, format, validateterraform init, terraform fmt -recursive, terraform validate
Plan to a file, apply that planterraform plan -out tfplan, terraform apply tfplan
Target one resource (emergency only)terraform apply -target=aws_instance.web
Inspect stateterraform state list, terraform state show aws_s3_bucket.logs
Rename or move in statemoved {} block, or terraform state mv a b
Adopt an existing resourceimport {} block (1.5+), or terraform import aws_s3_bucket.logs my-bucket
Detect driftterraform plan -refresh-only, terraform plan -detailed-exitcode (exit 2 = changes)
Force recreateterraform apply -replace=aws_instance.web
Stuck lockterraform force-unlock <LOCK_ID> (only when sure nothing is running)
Output for scriptsterraform output -raw cluster_name, terraform show -json tfplan

Must know: state is the map between config and real resources, keep it remote, encrypted, versioned and locked (S3 with use_lockfile = true on 1.10+, or the older DynamoDB lock table); count vs for_each (for_each keys are stable); modules and versioning; workspaces vs separate state per environment; lifecycle (prevent_destroy, create_before_destroy, ignore_changes); data sources; "forces replacement" in a plan means destroy and recreate; never commit .tfstate or secrets in .tfvars.

Ansible

TaskCommand
Connectivity testansible all -i inventory.ini -m ping
Ad-hoc commandansible web -i inventory.ini -b -a "systemctl status nginx"
Dry run with diffansible-playbook site.yml --check --diff
Limit hosts / tags--limit web1, --tags nginx, --skip-tags slow
Debug verbosity-vvv
List what would run--list-hosts, --list-tasks
Encrypt a secretansible-vault encrypt_string 's3cr3t' --name db_password
Lintansible-lint site.yml

Must know: agentless over SSH (WinRM for Windows); idempotency (modules describe desired state; command and shell need creates, removes or changed_when); handlers run once at the end of a play when notified; roles structure (tasks, handlers, templates, defaults, vars); variable precedence (extra vars -e win); facts; serial for rolling updates; Ansible (configure machines) vs Terraform (provision infrastructure).

AWS

TaskCommand
Who am Iaws sts get-caller-identity
Instances with stateaws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,State.Name,PrivateIpAddress]' --output table
Shell without SSHaws ssm start-session --target i-0abc123
Kubeconfig for EKSaws eks update-kubeconfig --name prod --region ap-south-1
Target health behind an ALBaws elbv2 describe-target-health --target-group-arn <arn>
Who did thatCloudTrail: aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteBucket
Why AccessDeniedaws iam simulate-principal-policy --policy-source-arn <role> --action-names s3:GetObject
Tail logsaws logs tail /aws/lambda/fn --follow --since 10m

Must know: Region vs AZ; VPC, public vs private subnet (route to IGW or not), NAT gateway; security groups (stateful, allow only) vs NACLs (stateless, allow and deny); IAM users vs roles, trust policy vs permission policy, explicit deny wins; EC2 instance profiles, IRSA or EKS Pod Identity for pods; ALB (L7) vs NLB (L4); RDS Multi-AZ (HA) vs read replica (scale, DR); S3 storage classes, versioning, Block Public Access; CloudWatch vs CloudTrail vs Config; the usual cost surprises (NAT data processing, cross-AZ traffic, idle load balancers, unattached EBS).

Monitoring and observability

promql
# Requests per second
sum(rate(http_requests_total[5m]))
# Error ratio
sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m]))
# p95 latency from a histogram
histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket[5m])))
# Container memory vs limit
sum by (pod) (container_memory_working_set_bytes{container!=""})
  / sum by (pod) (kube_pod_container_resource_limits{resource="memory"})
# Disk will fill in 4 hours
predict_linear(node_filesystem_avail_bytes{mountpoint="/"}[1h], 4 * 3600) < 0
# Target down
up == 0
logql
{namespace="prod", app="checkout"} |= "error" | json | status >= 500
sum by (pod) (count_over_time({namespace="prod"} |= "OOM" [5m]))

Must know: metrics vs logs vs traces; counters (use rate) vs gauges vs histograms; pull (Prometheus) vs push; RED (rate, errors, duration) for services and USE (utilisation, saturation, errors) for resources; four golden signals (latency, traffic, errors, saturation); SLI, SLO, SLA, error budget; alert on symptoms users feel, not every cause; cardinality (never put user IDs in labels); Alertmanager grouping, inhibition, silences; OpenTelemetry as the vendor-neutral instrumentation standard.

DevSecOps

GateTool examplesWhere
Secrets in codegitleaks, Trivy secret scanner, GitHub push protectionPre-commit and CI
SASTSemgrep, CodeQL, SonarQubeCI on PR
Dependencies (SCA)Trivy, Grype, Dependabot, SnykCI and scheduled
IaC misconfigurationTrivy config, Checkov, tfsec rules in TrivyCI on PR
Image vulnerabilitiesTrivy image, Grype, registry scanning (ECR)CI before push, registry continuously
Signing and provenancecosign, SLSA provenance, SBOM (Syft, Trivy)CI after build
Admission policyKyverno, OPA Gatekeeper, Pod Security AdmissionCluster
Runtime detectionFalco, GuardDuty EKS runtime monitoringCluster and cloud
DASTOWASP ZAPAgainst staging
bash
trivy fs --scanners vuln,secret,misconfig --severity HIGH,CRITICAL --exit-code 1 .
trivy image --ignore-unfixed --severity HIGH,CRITICAL --exit-code 1 ghcr.io/org/app:sha
trivy config infra/terraform
cosign sign --yes ghcr.io/org/app@sha256:<digest>

Must know: shift left but also shield right; least privilege everywhere (IAM, RBAC, CI tokens); no long-lived credentials (OIDC, instance roles, Pod Identity); container hardening (non-root, read-only rootfs, drop capabilities, no privileged, seccomp RuntimeDefault); Pod Security Standards (privileged, baseline, restricted); secrets managers (Vault, AWS Secrets Manager with External Secrets Operator); supply-chain attacks (pin actions and images by digest, verify signatures).


Numbers worth knowing

HTTP status codes

CodeMeaningInterview angle
200 / 201 / 204OK / Created / No Content
301 / 302 / 304Permanent redirect / temporary redirect / not modified (cache)HTTP to HTTPS redirect is a 301
400Bad requestClient sent something malformed
401UnauthenticatedNo or bad credentials
403ForbiddenAuthenticated but not allowed (IAM, RBAC, WAF, S3 policy)
404Not foundWrong path, or ingress rule not matching
405Method not allowed
408 / 413 / 429Request timeout / payload too large / too many requests413 from NGINX ingress: proxy-body-size; 429 is rate limiting
500Internal server errorThe app threw
502Bad gatewayProxy got an invalid response or connection refused or reset from upstream: crashed pod, wrong port
503Service unavailableNo healthy upstream (no endpoints, all targets unhealthy), overload, maintenance
504Gateway timeoutUpstream too slow; proxy or LB timeout hit

Ports

PortServicePortService
22SSH6443Kubernetes API server
25 / 587SMTP / submission2379-2380etcd client / peer
53DNS (UDP and TCP)10250kubelet API
80 / 443HTTP / HTTPS30000-32767NodePort range
123NTP (UDP)9090Prometheus
389 / 636LDAP / LDAPS9093Alertmanager
3306MySQL9100node_exporter
5432PostgreSQL3000Grafana
6379Redis3100Loki
27017MongoDB9200 / 5601Elasticsearch / Kibana
9092Kafka4317 / 4318OTLP gRPC / HTTP
8080Jenkins (default), common app port8200Vault
2375 / 2376Docker daemon plain / TLS (never expose 2375)4789 / 8472VXLAN (standard / Flannel)

SLO math

AvailabilityDowntime per 30 daysPer year
99%7 h 12 min3.65 days
99.5%3 h 36 min1.83 days
99.9%43.2 min8.76 h
99.95%21.6 min4.38 h
99.99%4.32 min52.6 min
99.999%26 s5.26 min
  • Error budget = 1 − SLO. 99.9 percent over 30 days = 43.2 minutes, or 1 failed request in 1,000.
  • Burn rate = actual error rate ÷ budgeted error rate. Burn rate 1 spends the budget exactly in the window.
  • Classic multi-window alerts (30-day SLO): 14.4x over 1 h (2 percent of budget) pages; 6x over 6 h (5 percent) pages; 1x over 3 days (10 percent) opens a ticket. Each paired with a short window (5 min, 30 min, 6 h) so it resolves fast.
  • Serial dependencies multiply: two services at 99.9 percent in series give about 99.8 percent. Redundant copies in parallel raise it: two independent 99 percent replicas give 99.99 percent.

Kubernetes defaults

SettingDefault
terminationGracePeriodSeconds30 s
Rolling update maxSurge / maxUnavailable25% / 25%
revisionHistoryLimit10
Probe periodSeconds / timeoutSeconds / failureThreshold10 s / 1 s / 3
Probe initialDelaySeconds / successThreshold0 / 1
CrashLoopBackOff restart delay10 s, doubling, capped at 5 min; resets after 10 min running
Max pods per node (kubelet)110 (EKS with VPC CNI: depends on instance ENIs, e.g. 17 on t3.medium)
Tolerations for not-ready / unreachable300 s before pods are evicted from a failed node
Service typeClusterIP
imagePullPolicyAlways for :latest or no tag, otherwise IfNotPresent
Pod DNS<svc>.<ns>.svc.cluster.local, ndots:5
Job backoffLimit6
HPA scale-down stabilisation300 s
Projected ServiceAccount token lifetime1 h (auto-rotated by kubelet)
kube-proxy modeiptables
CPU units1 = 1 vCPU = 1000m

Exit codes and signals

Exit codeMeaning
0Success
1General error (app-defined)
2Misuse of shell builtin, bad arguments
126Command found but not executable (permissions)
127Command not found (exec: "x": executable file not found in $PATH)
128 + nKilled by signal n
130SIGINT (Ctrl-C)
137SIGKILL: OOM killer or a forced kill after grace period
139SIGSEGV: segfault
143SIGTERM: normal graceful stop

Signals: 1 HUP (reload), 2 INT, 9 KILL (cannot be caught), 15 TERM (default for kill and Kubernetes stop), 19 STOP.

AWS numbers

FactValue
Reserved IPs per subnet5 (first four and last)
VPC CIDR size/16 to /28
Instance metadata endpoint169.254.169.254 (require IMDSv2)
ALB idle timeout default60 s
Target group deregistration delay default300 s
RDS Multi-AZ failovertypically 60 to 120 s, same endpoint
S3 max object / max single PUT5 TB / 5 GB (multipart above that)
S3 durability99.999999999% (11 nines)
Lambda max timeout / memory15 min / 10,240 MB
gp3 baseline3,000 IOPS and 125 MB/s, independent of size
EKS control plane price0.10 USD per hour per cluster (standard support)

Answer frameworks

STAR for behavioral questions

PartShare of timeContains
Situation15%Team, system, scale, why it mattered
Task10%Your specific responsibility
Action55%What you did, in order, with tools and decisions and why
Result20%Numbers, outcome, and the lesson or systemic change

Aim for 2 to 3 minutes. Prepare 8 stories that cover: an incident you handled, a mistake, a conflict, influencing without authority, a tight deadline, improving something nobody asked you to, mentoring or helping a teammate, and a failure you learned from. Most behavioral questions map to one of them.

Scenario questions: Clarify → Mitigate → Diagnose → Fix → Prevent

  1. Clarify (30 s): scope, impact, environment, what changed, timeline.
  2. State assumptions out loud when the interviewer will not give details.
  3. Mitigate first if users are affected: roll back, fail over, scale, disable a flag, shed load.
  4. Diagnose with hypotheses and exact commands; say what each result would tell you.
  5. Fix the root cause properly and verify with metrics, not hope.
  6. Prevent: test, alert, guardrail, runbook, postmortem.

Troubleshooting: follow the path, check what changed

  • What changed? Deploys, config, infra, traffic, certificates, dependencies, cron jobs. Most incidents follow a change.
  • Follow the request path and test each hop: client → DNS → CDN or LB → ingress → Service → pod → app → dependency (DB, cache, external API).
  • Bottom up when nothing makes sense: is it running → can it reach the network → does name resolution work → is the port open → does the app respond → is the response right.
  • Split the problem in half: one pod or all, one AZ or all, one endpoint or all, since when.
  • Use the right lens: RED for services, USE for resources, logs for the "why", traces for "where the time goes".

Live hands-on task approach

  1. Restate the task in your own words and confirm the expected output.
  2. Ask about edge cases and constraints: input size, empty input, error handling, which tools are allowed, target OS.
  3. Say your plan in two or three sentences before typing.
  4. Build the simplest working version first, run it, and show the output.
  5. Harden it: errors, timeouts, quoting, set -euo pipefail, idempotency, exit codes.
  6. Test before you say done: a happy path, a failure case, a second run for idempotent tasks.
  7. Narrate throughout, and if stuck, say what you are trying and why; interviewers give hints to people who talk.
  8. Close with trade-offs: what you would add with more time (tests, logging, packaging, CI).

Questions to ask the interviewer

Pick two or three. Good questions show you think like someone who will be on call there.

About the work

  • What does a typical week look like for this role: project work vs operational work vs interruptions?
  • What is the biggest reliability or delivery problem the team is working on this quarter?
  • How often do you deploy to production, and what does a rollback look like?
  • What would you expect me to have achieved in the first 90 days?

About on-call and operations

  • What does on-call look like: rotation size, pages per week, and is it compensated?
  • When did you last have a major incident, and what changed afterwards?
  • Do you write postmortems, and are they blameless in practice?

About the team and growth

  • How are decisions about tooling made, and could I propose changes?
  • How do engineers here learn: conference budget, certifications, internal talks?
  • What do people who do well in this team have in common?

Avoid asking about things the job description already answers, and leave salary and leave policy for the HR round.


Day-of checklist

The night before

  • Re-read the job description and map each requirement to one story or project
  • Re-read your own resume line by line; you can explain every tool and number on it
  • Rehearse the 2-minute introduction out loud twice
  • Skim this cheatsheet, then stop and sleep; cramming at 2 a.m. costs more than it gains

One hour before

  • Laptop charged, charger plugged in, notifications and chat apps off
  • Camera at eye level, face lit from the front, plain background, headphones with a mic tested
  • Meeting link opened and tested; backup phone hotspot ready
  • For live rounds: terminal font enlarged, a clean shell prompt, editor ready, kubectl and docker working if they will be needed, a sandbox (kind or a VM) up
  • Water nearby, a notepad and pen for drawing and jotting the interviewer's names
  • Your capstone repo and architecture diagram open in a tab, ready to share

During

  • Ask one clarifying question before answering scenarios
  • Lead with the answer, then the why; stop and offer more instead of rambling
  • Say "I don't know, but here is how I'd find out" instead of bluffing
  • Think out loud in live rounds; never go silent for more than 30 seconds
  • Use "I" for your work, numbers wherever you have them
  • Leave 5 minutes for your questions

After

  • Write down every question you were asked within an hour, while you still remember them
  • Note the two answers you would improve, and look them up in this repo
  • Send a short thank-you note to the recruiter if that is the norm for the company

Top 15 interview one-liners

  1. "Mitigate first, investigate second." If users are affected, roll back or fail over before hunting for the root cause.
  2. "Most incidents follow a change, so my first question is what changed."
  3. "A 502 means the upstream answered badly or refused; a 503 means there was no healthy upstream; a 504 means it was too slow."
  4. "Readiness decides traffic, liveness decides restarts; never make liveness depend on a shared dependency."
  5. "A PDB protects against evictions, not against kubectl delete pod or a node dying."
  6. "Build once, tag with the commit SHA, promote the same artifact through every environment."
  7. "In GitOps, Git is the source of truth and the cluster pulls; rollback is a revert."
  8. "Terraform state is the map between code and reality, so it lives remote, encrypted, versioned and locked."
  9. "'Forces replacement' on a stateful resource means data loss until proven otherwise."
  10. "Idempotent means running it twice changes nothing the second time."
  11. "Requests are for scheduling, limits are for protection; I set memory limits and usually skip CPU limits for latency-sensitive services."
  12. "Alert on symptoms users feel and on error-budget burn, not on every CPU spike."
  13. "99.9 percent over 30 days is 43 minutes of budget; spend it on shipping, not on surprises."
  14. "No long-lived credentials anywhere: OIDC for CI, roles for machines, Pod Identity or IRSA for pods."
  15. "A leaked secret is fixed by rotating it, not by deleting the commit."
Feedback