All jobs / DevOps / SRE / cloud
DevOps / SRE / cloud interview question · 1–3 years
A user has an allow policy for an action and their group has a deny for it. What happens?
The strongest answer
The deny wins — policy evaluation starts from implicit deny, an explicit allow grants, and an explicit deny anywhere overrides every allow
Why it works
Right. Deny beats allow, always; that is what makes guardrail denies trustworthy.
What a good answer covers
- Default: implicit deny.
- Explicit allow grants.
- Explicit deny overrides everything.
- Guardrails are written as denies for that reason.
Answers that fall short
- Close, but not the strongest: The allow wins because it is attached directly to the user
Attachment point does not rank policies. - Weak: The most recently attached policy wins
Order of attachment is irrelevant. - Red flag: The user is asked which to use
Evaluation is automatic and deterministic.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Cybersecurity
- Solutions / cloud architect
More DevOps / SRE / cloud questions
- URL shortener: how do you generate the short code?
- A service on a VM needs to read from a storage bucket. How does it get permission?
- Design a rate limiter: which algorithm and where does its state live?
- Active-passive versus active-active across regions — what does active-active cost you beyond money?
- A hot cache key expires and 5,000 requests miss at once. Design against it.
- How do you limit the blast radius of a failure in a system serving millions?
- Your DR runbook is a document. How do you make it real?