All jobs / DevOps / SRE / cloud / Security
DevOps / SRE / cloud interview question · 3–5 years
Engineers still have long-lived cloud keys on laptops. What is the programme?
The strongest answer
SSO / short-lived creds, hardware 2FA, and a hunt for leftover keys — I do not “also add SSO” and leave the keys
Why it works
Exactly. Replace, then hunt. Also-SSO is two ways in.
What a good answer covers
- SSO and short-lived creds.
- Hardware 2FA.
- Revoke leftover keys.
- Do not run both forever.
Answers that fall short
- Close, but not the strongest: SSO plus the old keys, for safety
Two ways in is the incident. - Weak: A yearly email asking people to rotate if they remember
Memory is not rotation. - Red flag: A shared key on a USB in a drawer
A USB is a 1990s break-glass, not a programme.
Who gets asked this
More Security questions
- What does a good IAM review look like that a good app review does not?
- Security wants a gate that takes 40 minutes on every PR. What do you negotiate?
- What has to already exist for you to answer “which images, and by when”?
- An engineer wants prod data “to reproduce a bug” on their laptop. What is the bar?
- A `.env` with production URLs and a shared password is in git “for convenience.” What do you do?
- Someone committed a cloud access key. What do you do first?
- A “temporary” object store is world-readable. What do you do?
- A pipeline file prints `echo $DATABASE_URL`. What happens next?