What happens when your system goes down - how do you approach it?
Show the answer
Structured incident response:
Detect & acknowledge: confirm the outage (monitoring alert, user report, status page). Acknowledge in PagerDuty/Opsgenie to stop alert escalation. Post in the incident Slack channel: "Investigating [service] outage, started [time]."
Assess blast radius: who is affected? All users? A specific region? A single tenant?
Mitigate first, fix later: if there's a quick mitigation (rollback a recent deploy, failover to another region, scale up), do it immediately. Don't wait for root cause before stopping user impact.
Hypothesize and test: form a theory based on signals; validate with a targeted check.
Fix and verify: apply the fix; watch metrics normalize; verify from a user perspective.
Communicate: keep stakeholders updated every 15–30 minutes during the incident.
Post-mortem: blameless RCA within 48 hours; document timeline, root cause, contributing factors, and action items to prevent recurrence.
Your app teams demand custom AMIs. What's your pre-prod vetting strategy at kernel and runtime?
Show the answer
Automated build pipeline: use HashiCorp Packer to build AMIs from a base (Amazon Linux 2023, Ubuntu) with a standardized provisioning script. All customizations go through Packer — no manual AMI modifications.
CIS hardening: apply the CIS Level 1 benchmark automatically in the Packer build using Ansible roles (e.g., dev-sec/cis-hardening).
Security scanning: run AWS Inspector or Trivy on the built AMI; fail the pipeline if HIGH/CRITICAL kernel or package CVEs are found.
Functional testing: launch a test EC2 from the AMI; run automated tests:
Performance baseline: run sysbench or fio to confirm I/O performance regressions aren't introduced.
Staged rollout: deploy to dev node group first; monitor for 24h; then staging; then production node groups using a blue-green ASG replacement.
Approval gate: security team sign-off required before production AMI promotion.
You deployed a sidecar logging agent. Suddenly, CPU throttling spikes. Diagnose and rollback.
Show the answer
Diagnose:
# Which pods are being throttled?
kubectl top pods -A --sort-by=cpu
# Check throttling metric (cgroup-level)
# On the node:
cat /sys/fs/cgroup/cpu/kubepods/pod<pod-uid>/<container-id>/cpu.stat
# Look for: nr_throttled and throttled_time
# Prometheus metric for throttling
rate(container_cpu_cfs_throttled_seconds_total{container="logging-agent"}[5m])
Root cause candidates:
The logging agent has a very low resources.limits.cpu, causing CFS throttling when log volume spikes.
The agent is doing expensive regex parsing or compression on every log line.
The log volume itself increased (e.g., verbose debug logging turned on accidentally).
Rollback:
# Rollback the DaemonSet to previous version
kubectl rollout undo daemonset/logging-agent -n logging
# Verify
kubectl rollout status daemonset/logging-agent -n logging
Fix: increase resources.limits.cpu for the sidecar, add log sampling/filtering to reduce processing volume, or switch to async batched log shipping.
3 more in the member app, with practice sets and your own marks. Join free