Linux troubleshooting interview questions
Linux rounds are usually live troubleshooting. A box is out of disk or memory, or someone wants to fix a permission error with chmod 777. The question is whether you find the cause and leave the system in a state the next person can trust.
Each question below is the exact prompt from a DevOps Ledger challenge. Decide what you would do, then open the challenge to defend it.
4 scenarios: 2 beginner, 1 intermediate, 1 advanced. Answer keys reviewed by Branko Petric.
What interviewers probe
- Finding what is using disk or memory instead of guessing
- Least-privilege fixes for permission errors
- Why a manual hotfix that config management does not know about comes back
The questions
- 01beginner8 min
Disk Is at 100% and the App Is Down. rm -rf?
A web server is throwing 'No space left on device' and the app is down. df shows / at 100%. A teammate says just run rm -rf on /var/log to free space fast. What do you do, and why?
Practice this scenario - 02beginner8 min
Deploy Fails with Permission Denied. chmod 777 Everything?
A deploy to a Linux VM fails with 'Permission denied' when the app tries to write to its data directory. A teammate says just run chmod -R 777 on the whole app directory so permissions can never break a deploy again. What do you do, and why?
Practice this scenario - 03intermediate11 min
The Fix Is One Line in /etc. Just SSH In and Edit It?
Prod is degraded because of one wrong kernel/sysctl value in /etc, and a teammate says just SSH into the three boxes and fix the file by hand now, we'll put it in Ansible later. What do you do, and why?
Practice this scenario - 04advanced13 min
The Box Keeps OOM-Killing. Just Add a Huge Swapfile?
A latency-sensitive service keeps getting OOM-killed on its VM, and a teammate says just add 16GB of swap and crank vm.swappiness so the kernel stops killing it. What do you do, and why?
Practice this scenario
Worked answers
- Scenario Based DevOps Interview Questions, With Worked Answers
Scenario based DevOps interview questions for Linux, Docker, CI/CD, Git and AWS, with first commands, the interviewer's pushback, and weak vs strong answers.
Free Linux guides
Practice defending your decisions
DevOps Ledger is a scenario-based DevOps and SRE interview practice platform: you pick a real production incident, defend your decision in a chat against a senior-engineer AI that pushes back, and get scored against an answer key written before you started.
A general chatbot makes up an answer on the spot. DevOps Ledger grades you against an answer key written before you started.
One payment. 12 months of access. No subscription, nothing renews.
Get full access - $19