Role or Attribute-Based Access Control
Talk it through out loud with your AI coach.
The problem
- hard
- Pro
Your app started with admin and user roles, but now managers should only edit documents in their own department during working hours. Compare role-based and attribute-based access control, and explain how you'd structure authorisation as rules grow.
What a strong answer covers
- How role-based control works and where it struggles.
- How decisions based on attributes handle richer rules.
- Where authorisation logic should live as rules grow.
- Keeping policies testable and auditable.
Common mistake: Adding a new role for every rule until nobody understands who can do what.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud