Mock Interviews¶
Three full 45-minute sessions that mix screening, hands-on, troubleshooting and internals the way a real loop does. Run each end to end against the clock, then read the linked topic for anything that was slow.
How to Use These¶
Set a 45-minute timer and answer out loud, one line first, then the proof. Each question notes what the interviewer is scoring and links to where the full answer lives, so a weak spot maps straight to a topic. Do not read the links until after the timer.
The three mocks escalate: the first is a junior screen, the second a production-engineer troubleshooting loop, the third a senior internals round.
Mock A: Junior DevOps Screen (45 min)¶
A breadth-first screen that starts light and probes depth on a few answers.
- (L1, 3 min) What is the difference between a process and a thread, and what is PID 1? See Process Fundamentals.
- (L1, 3 min) Explain the fields of
ls -land the difference between a hard and a soft link. See Inodes and Links. - (L2, 5 min) Add a user to a group so it takes effect, and explain why a current shell does not see it. See Groups.
- (L2, 5 min) A service is
enabledbut not running after boot: walksystemctlto diagnose it. See systemctl. - (L2, 5 min) In a
dfwhere writes fail but there is free space, what do you check next? See Disk Full. - (L3, 8 min) "The website is down", no other detail: talk through your first five minutes. See Service Unreachable.
- (L3, 8 min) A cron job "does not run" but works by hand: find out why. See Cron Job Not Running.
- (L4, 6 min) What happens, step by step, when you type
lsand press enter (fork/exec, PATH, syscalls)? See Command Resolution.
What a screen actually tests
The screen is looking for someone who clarifies before acting and knows the basics cold. A confident, ordered systemctl status plus journalctl -u beats naming an advanced tool you cannot drive.
Mock B: Production Engineer Troubleshooting (45 min)¶
Symptom-driven, with the interviewer withholding detail until you ask.
- (L1, 3 min) What does load average count, and how do you read it against core count? See CPU and Load.
- (L2, 6 min) Read a
topwith CPU 100% user and two hot processes: what is and is not the problem? See Round 2: Hands-On. - (L3, 8 min) "Load is 40 but the CPUs are idle": diagnose it, knowing load counts
D-state tasks. See High Load, Low CPU. - (L3, 8 min) A container keeps dying with exit 137: find the cause and decide the fix. See High Memory and OOM.
- (L2, 5 min) A service logs
Too many open files: confirm the layer and raise the right limit. See Limits and File Descriptors. - (L3, 8 min) Works on
localhostbut not from another host: walk the layers. See Service Unreachable. - (L4, 7 min) Why can a process on a hung NFS mount not be killed, even with
SIGKILL? See NFS.
Withheld detail is part of the test
A production round often starts vague on purpose. Asking "one host or the fleet?", "when did it start?", and "what changed?" scores as highly as the fix itself.
Mock C: Senior Internals (45 min)¶
Depth-first, trading breadth for mechanism and trade-offs.
- (L2, 5 min) Prove that a running container is an ordinary process on the host. See Containers vs VMs.
- (L4, 8 min) How does a rootless container run as root inside with no real root on the host (the user namespace and
uid_map)? See Namespaces. - (L4, 8 min) A program
mallocs 2 GB, it succeeds, then it is killed: explain overcommit, demand paging and the OOM killer. See Virtual Memory. - (L4, 7 min) How does the kernel enforce a cgroup memory limit, and what exactly happens at the cap? See Cgroups.
- (L4, 7 min) What is the difference between a kernel oops and a panic, and when does one become the other? See Kernel Panic.
- (L4, 6 min) Why must
/etc/shadowbe relabelled after resetting the root password in a chroot on SELinux? See Recovery. - (L3, 4 min) How would you decide between a container and a VM for a hostile multi-tenant workload? See Containers vs VMs.
Senior rounds reward the trade-off, not the recital
Naming the mechanism is table stakes; the signal is stating the cost. "A container is cheaper but shares the host kernel, so a kernel exploit crosses the boundary" is the answer they want.
Related¶
- Round 1: Screening: the L1 bank
- Round 2: Hands-On: the L2 tasks and output drills
- Round 3: Troubleshooting: the L3 scenario index
- Round 4: Internals: the L4 bank
- Interview Overview: how the rounds fit together