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 • 1395 views
How do you investigate and triage a suspected phishing email as a Tier 1 SOC Analyst?
Intermediate level • 366 views
What is BOLA (Broken Object Level Authorization) in SaaS APIs, and how do you remediate it?
Intermediate level • 354 views
Explain the CIA Triad and how Zero Trust Architecture enhances modern network defense.
Beginner level • 347 views
What is the difference between EDR, SIEM, and SOAR in a modern Security Operations Center (SOC)?
Intermediate level • 345 views