How do authentication, authorization, and accounting differ?
Interactive Practice Mode
Formulate your thoughts or take notes before revealing the model solution.
Saved automatically
Model Answer & Deep-Dive Explanation
Authentication establishes who or what is making a request. Authorization determines which actions that identity may perform on a particular resource. Accounting records relevant activity for monitoring and investigation. For example, signing in authenticates a user, checking whether they own an invoice authorizes access, and an audit event records the download. Authentication does not imply permission to every resource. Enforce authorization on the server for each relevant action, and protect audit records from unauthorized alteration while avoiding unnecessary storage of secrets or sensitive content.
Related Questions in Cybersecurity & InfoSec
Explain SQL Injection (SQLi) vulnerabilities and defense mechanisms (Prepared Statements vs ORM)
Intermediate level • 1251 views
What is least privilege, and how would you apply it to a database-backed application?
Easy level • 1 views
Why do parameterized queries prevent SQL injection more reliably than escaping user input?
Medium level • 1 views
How do XSS and CSRF differ, and what controls address each?
Medium level • 1 views
A user changes an invoice ID in the URL and sees another customer’s invoice. What failed?
Medium level • 1 views