Interview questions

Servers and operations interview questions

6 questions, 6 with model answers. Every member practises all of them free.

Samples

3 of 6 questions.

What happens when your system goes down - how do you approach it?

Show the answer

Structured incident response:

  1. 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]."
  2. Assess blast radius: who is affected? All users? A specific region? A single tenant?
  3. 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.
  4. Gather signals: check dashboards (Grafana/Datadog), logs (Kibana/Loki), recent changes (git log, deploy history), cloud provider status page.
  5. Hypothesize and test: form a theory based on signals; validate with a targeted check.
  6. Fix and verify: apply the fix; watch metrics normalize; verify from a user perspective.
  7. Communicate: keep stakeholders updated every 15–30 minutes during the incident.
  8. 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
  1. 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.
  2. CIS hardening: apply the CIS Level 1 benchmark automatically in the Packer build using Ansible roles (e.g., dev-sec/cis-hardening).
  3. Security scanning: run AWS Inspector or Trivy on the built AMI; fail the pipeline if HIGH/CRITICAL kernel or package CVEs are found.
  4. Functional testing: launch a test EC2 from the AMI; run automated tests:
  5. cloud-init completes without error.
  6. Required services start (kubelet, containerd, ssm-agent).
  7. Kernel version meets minimum requirement.
  8. SELinux/AppArmor in enforcing mode.
  9. auditd is running and logging.
  10. Performance baseline: run sysbench or fio to confirm I/O performance regressions aren't introduced.
  11. Staged rollout: deploy to dev node group first; monitor for 24h; then staging; then production node groups using a blue-green ASG replacement.
  12. 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

More topics

Other interview topics.