AI & Technical question
Design a webhook.
- AI & Technical
- Medium
Practice this question out loud. An AI interviewer asks it, follows up like a real interviewer would, and scores your answer. Type or speak.
Start a mock interview on this question · Mock interview from a job description
What this question tests
Tests technical fundamentals of asynchronous system integration: delivery guarantees, retries, and security.
How to approach it
- Clarify the use case: what event triggers the webhook and what the receiver needs to do with it.
- Define the contract: an HTTP POST with a JSON payload schema, an event type, and a unique event ID.
- Address reliability: retries with exponential backoff on failure, expecting a 2xx acknowledgment.
- Address idempotency: since retries can duplicate delivery, require the event ID so receivers can ignore repeats.
- Address security: sign each payload so the receiver can verify it actually came from your service.
- Define quality measurement: delivery success rate and average retry count, since high retries signal an unreliable endpoint.
What a strong answer includes
- Explicitly handles retries and idempotency together, the core hard problem in webhook design.
- Adds payload signing for security, a standard expected practice for real webhook systems.
- Picks delivery success rate as the concrete quality metric tied to what matters operationally.
Common mistakes
- Designing only the happy-path single delivery with no retry or failure handling.
- No security consideration for payload signing or verification.
Likely follow-up questions
- How would you handle a receiving endpoint that's down for an extended period?
- How would you let developers test their integration safely?
- How would you version the payload schema without breaking existing integrations?
More ai & technical questions
- Build the payment API for a charity event.DoorDash · AI & Technical · Medium
- The Chrome team is looking to reduce power utilization on mobile phones when using the browser. How would you go about solving this problem?Google · AI & Technical · Medium
- What are the various strategies used by recommendations engines?Google · AI & Technical · Medium
- How would you implement Facebook Reactions?Meta · AI & Technical · Medium
- How do you personalize ads?Condé Nast · AI & Technical · Medium
- Explain the process when you hit play on a video streaming platform. What happens in the background?Sling TV · AI & Technical · Medium
Learn the skill behind it
Chapters of the AI PM course that teach what this question tests.
- Chapter 1: Foundations: the model and the decisions it forces on you
- Chapter 8: Evals: define good and make the number defensible
- Chapter 6: Agents and agentic architecture