Skip to content
Tech Interview Prep

Identity and Access Management (IAM) Engineer Interview Prep

Overview

Owns the identity layer for humans and services: authentication, least-privilege authorization, and privileged access controls across enterprise systems, kept correct through change and incident.

Curated: · Written: · Reviewed:

Interview Q&A
105
Practice MCQs
100

The role in one line

You own who and what can authenticate to enterprise systems, what they may do once inside, and you keep both correct through change and incident.

The interview loop

RoundWhat it probesWhat it scores
Protocol designOAuth 2.0, OIDC and SAML flows, trust boundaries, token and assertion validationEach hop traced, with the check made at each one
Authorization modelRBAC vs ABAC, least privilege, segregation of dutiesModel justified against a stated constraint
Lifecycle and PAMJoiner-mover-leaver, access reviews, just-in-time and vaulted privilegeRemoval path named, with the evidence it leaves
Incident diagnosisFailed logins, token errors, provisioning driftEvidence to containment, recovery, then audit artifacts
ArchitectureMultiple IdPs, key rotation, scaleAssumptions stated first, failure modes named

Five must-know areas

  • OAuth vs OIDC: OAuth authorizes access to an API, OIDC authenticates the user. An access token is not a login.
  • Token validation: iss, aud, exp, nonce, an algorithm allowlist and kid lookup, not the signature alone.
  • Redirect and code protection: exact redirect URI matching, PKCE with S256, and state for CSRF on the callback.
  • Federated identity: the key is iss plus sub, never email, because email changes and gets reassigned.
  • Session end: what a disable or sign-out terminates immediately, and what stays valid until expiry.

Numbers and formulas to have ready

Access token lifetime and cache TTLs are set by your deployment, so quote your configured values and say where they come from. Leaver exposure is bounded by the sum of the access token lifetime and any cache that still honours a revoked result:

Wexposure=Taccess+TcacheW_{\text{exposure}} = T_{\text{access}} + T_{\text{cache}}

For a SAML assertion, the time window check uses a clock skew tolerance you configure. The tolerance is not a standard value:

tnb−δ≤tnow<tna+δt_{nb} - \delta \le t_{now} < t_{na} + \delta

where t_nb is NotBefore, t_na is NotOnOrAfter and delta is your configured skew.

Reference architecture

auth request with state, nonce, PKCE federates code code plus verifier access token for audience verify signature via kid User browser Relying party app Authorization server Upstream IdP Resource API JWKS endpoint
  • The authorization server, not the relying party, holds the upstream IdP trust.
  • Each callback is bound to one IdP by the issuer in the response, not by the URL alone.
  • The resource API checks aud and scope on every request; it does not accept an ID token.
  • Key rotation publishes the new key in JWKS before the first token is signed with it.

Strong vs weak answers

QuestionStrong answerWeak answer
Use OAuth to log users in?OAuth delegates access. I'd use OIDC so the ID token carries authentication, then validate iss, aud and nonce.OAuth logs them in.
Public client, no secret?Authorization code with PKCE using S256. Implicit is removed in OAuth 2.1.Implicit, it's simpler.
Wildcard redirect on staging?No. Register exact URIs per environment; a wildcard lets a code reach an attacker's host.Fine on staging if it's internal.
Disable a leaver at the IdP?New tokens stop. I revoke refresh tokens and end app sessions. Access tokens run to exp.They're out.
Sign-out order?End the local session, revoke refresh tokens, then call the end_session endpoint or send back-channel logout.Clear the cookie.

Interview tips

  • State your assumptions first: client type, token lifetimes, and which party holds the signing keys.
  • Draw the flow with each validation step labelled before you speak to it.
  • Name the threat each control stops: code interception, CSRF, replay, token substitution.
  • Close every answer with the operational control: revocation path, monitoring signal, or audit record.
  • When you cannot defend a point, say which step you would check first and in what order.

Last-week checklist

  • Trace OIDC, OAuth and SAML end to end without notes.
  • Practise ID token and SAML assertion validation as ordered lists.
  • Write out the leaver path and what each step terminates.
  • Rehearse key rotation with the publish, sign, retire order.
  • Work through the Top 100 aloud and repair the Concepts you could not defend, in study order.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.