What is least privilege, and how would you apply it to a database-backed application?
Interactive Practice Mode
Formulate your thoughts or take notes before revealing the model solution.
Saved automatically
Model Answer & Deep-Dive Explanation
Grant each identity only the permissions needed for its purpose and duration. A web application usually should not connect as a database administrator. Give its runtime account the necessary data operations, use a separate migration identity for schema changes, and restrict administrative access. Apply the same idea to file permissions, cloud roles, and support tools. Review permissions as responsibilities change, and log sensitive actions. Least privilege reduces the impact of mistakes and compromise, but still needs secure authentication, monitoring, and a working recovery process.
Related Questions in Cybersecurity & InfoSec
Explain SQL Injection (SQLi) vulnerabilities and defense mechanisms (Prepared Statements vs ORM)
Intermediate level • 1385 views
How do you investigate and triage a suspected phishing email as a Tier 1 SOC Analyst?
Intermediate level • 352 views
Explain the CIA Triad and how Zero Trust Architecture enhances modern network defense.
Beginner level • 339 views
What is the difference between EDR, SIEM, and SOAR in a modern Security Operations Center (SOC)?
Intermediate level • 339 views
What is the difference between an MSP (Managed Service Provider) and an MSSP (Managed Security Service Provider)?
Intermediate level • 336 views