You're designing an e-commerce platform where users can have different roles such as admin, customer, and seller. How would you manage access control for each role?

  • Implement access control lists (ACLs) for each user role to define their permissions.
  • Implement role-based access control (RBAC) where each role is assigned specific permissions to access resources within the platform.
  • Use attribute-based access control (ABAC) where access decisions are based on attributes associated with users and resources.
  • Use identity-based access control (IBAC) where access is determined based on the identity of the user.
Role-based access control (RBAC) is a suitable approach for managing access control in this scenario because it allows administrators to define roles such as admin, customer, and seller, and assign specific permissions to each role. This simplifies access management and ensures that users only have access to the resources they need based on their roles.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *