Interview Security & DevSecOps

What is the difference between authentication and authorization? [Advanced]

Answer

Authentication verifies who or what the caller is. Authorization decides what that authenticated identity is allowed to do. Authentication answers 'are you really this identity?'; authorization answers 'can this identity perform this action on this resource?'.

Technical explanation

Examples of authentication include passwords, MFA, client certificates, OIDC tokens, or workload identity tokens.

Examples of authorization include RBAC permissions, IAM policies, ABAC conditions, and application-level access checks.

Strong systems need both; a valid identity with excessive permissions is still a security risk.

Hands-on example

Example: a developer authenticates to Kubernetes with SSO. Kubernetes RBAC then authorizes whether they can get pods in dev, deploy to staging, or delete secrets in production. The user may authenticate successfully but still be denied a production action.

Preparing for an interview?

Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.

More Security & DevSecOps interview questions

← All Security & DevSecOps questions