All jobs / DevOps / SRE / cloud / Security
DevOps / SRE / cloud interview question · 1–3 years
A CI role can delete the production database. How do you reshape it?
The strongest answer
Split roles: CI can deploy the app, a break-glass can destroy data, and I do not grant * “in case”
Why it works
Exactly. Split the blast. * is not a convenience; it is the incident.
What a good answer covers
- Split deploy vs destroy.
- No * “in case.”
- Break-glass for the rare destroy.
- Do not copy * to laptops.
Answers that fall short
- Close, but not the strongest: Keep *; IAM is hard and we have MFA on the console
MFA on a console does not shrink a CI role. - Weak: Put the same * on every engineer’s laptop role
Laptop * is a stolen-laptop story. - Red flag: Turn off IAM and use access keys in the app
App keys are not an IAM strategy.
Who gets asked this
More Security questions
- You have never rotated the database password in production. What do you do before you need to?
- How do you know the image in prod is the image CI built?
- You have 200 services and a human still pastes secrets at provision time. What do you build?
- A squad needs to ship without being able to destroy another squad’s data. What is the shape?
- Engineers still have long-lived cloud keys on laptops. What is the programme?
- 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”?