All jobs / Solutions / cloud architect / Identity & Security
Solutions / cloud architect interview question · 1–3 years
How do you design the roles for a product’s permission system so it does not end up as one role per user?
The strongest answer
Derive a small set of roles from real job functions, express permissions as fine-grained actions grouped into roles, handle exceptions with scopes or attributes rather than new roles, and review the roles periodically
Why it works
Exactly — roles model the organisation, permissions model the system, and attributes absorb the exceptions.
What a good answer covers
- Roles from job functions.
- Fine-grained actions, grouped.
- Exceptions via scopes or attributes.
- Review roles regularly.
Answers that fall short
- Close, but not the strongest: Create roles as requests come in; a new need means a new role
Role-per-request is how role explosion happens; the taxonomy needs a design. - Weak: Use three roles — viewer, editor, admin — for everything
Three roles are a fine start but rarely survive contact with tenants, teams and ownership. - Red flag: Put an “is admin” flag on the user record and check it wherever needed
A boolean scattered through the code is neither auditable nor extensible; the interviewer will worry.
Who gets asked this
More Identity & Security questions
- How should cloud permissions be granted to a new service?
- What does zero trust change about how services talk to each other inside the network?
- Design the key management for a platform that encrypts customer data at rest.
- How do you run a threat-modelling session on a new design?
- Enterprise customers ask to sign in with their own identity provider. What do you build?
- An internal certificate expired on a Sunday and took down service-to-service traffic. What do you change in…
- Design identity for a company with acquired subsidiaries, contractors and customers all needing access.
- Why do companies insist on single sign-on for every internal tool instead of separate logins?