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.
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
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]
- What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]
- How do you prevent privilege escalation in a Kubernetes cluster? [Advanced]
- What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]
- How do you apply least privilege to service-to-service communication (e.g., with Istio mTLS)? [Intermediate]