Skip to main content

Explain least privilege. How would you apply it to a new team's cloud and app access?

AI security · Beginner 3

Short answer

Least privilege means every person, service and AI agent gets only the access it needs, for only as long as it needs it. In practice I start from no access, grant roles per job, avoid shared admin accounts, use short-lived credentials, require MFA, and review access regularly so leftovers are removed when people change roles or leave.

Deeper answer

Least privilege limits the blast radius. If an account is phished or a key leaks, the attacker gets only what that account could do. It applies to machines too: a reporting service needs read access to one database, not admin on the whole cloud account. AI agents with tools need the same care, because an injected instruction can only use the rights the agent holds.

Practical steps: role-based groups instead of per-person grants, separate admin accounts used only for admin work, just-in-time elevation with approval, secrets in a vault rather than in code, and a quarterly access review. Log privileged actions so you can see when broad rights are actually used.

What a strong answer covers

Answer it out loud in the mock interview about 1.5 min

Follow-ups to expect

Common mistakes

Learn it

Identity and access

Practice AI security questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.