What interviewers expect
Interviewers expect you to validate the API contract and then think about real production risks: who can create users, what data is stored, what happens on duplicates or concurrency, and whether sensitive information leaks.
QA interview guide
A Create User API is a great interview prompt because it tests whether you understand contracts, validation, permissions, persistence, security, and downstream side effects like audit logs or invitations.
Interviewers expect you to validate the API contract and then think about real production risks: who can create users, what data is stored, what happens on duplicates or concurrency, and whether sensitive information leaks.
Checklist
“201 created and invalid email”
This covers a basic success case and one validation case, but misses required fields, duplicates, authorization, role escalation, password handling, persistence, schema, events, and concurrency.
“I would test valid minimal and full payloads, 201 Created, response schema, generated id, default status, role, createdAt, GET user after creation, missing/empty/invalid/duplicate fields, malformed JSON, Unicode and oversized fields, missing/invalid/expired token, permission denied, non-admin users, role escalation, tenant isolation, password hashing, password not returned or logged, mass assignment, injection values, database persistence, unique constraints, transaction rollback, idempotency, concurrent same-email requests, user.created event, invitation email, audit log, safe error responses, correct status codes, metrics, diagnostic logs, dependency failures, and SLA.”
Write your own answer, get scored, see what you missed, and compare it with junior, middle, and senior QA thinking.