All jobs / DevOps / SRE / cloud / Linux
DevOps / SRE / cloud interview question · 0–1 years
Everyone SSHes as root with the same key. What do you change first?
The strongest answer
Named users or a break-glass role, no shared root key, and audit who did what — I do not “wait until we are bigger”
Why it works
Exactly. Identity and audit. A shared root key is a shared incident.
What a good answer covers
- Named identities.
- No shared root key.
- Keep a break-glass path.
- Do not publish the key.
Answers that fall short
- Close, but not the strongest: Nothing; root is simpler
Simple is how you cannot answer “who.” - Weak: Post the key in the wiki so we stop DMing it
A wiki is a wider leak. - Red flag: Disable SSH and tell people to use FTP
FTP is not an improvement.
Who gets asked this
More Linux questions
- A service fails to start with “address already in use” on port 8080. How do you find out what holds it?
- A runbook installs a CLI on every server with `curl https://… | sudo bash`. What do you prefer, and why?
- A deploy script failed on step two (the build), carried on, and pushed an empty artifact to production. What…
- `df -h` says the root volume is 100% full. `du -sh /` adds up to less than half of that. What is going on…
- Load average is 40 on an eight-core VM, yet `top` shows CPU mostly idle and the app is crawling. What does…
- `./deploy.sh` says “Permission denied” and `ls -l` shows `-rw-r--r--`. What do you do?
- What do you check, and what was the likely mistake?