AI & Technical question
Design an API and schema for a shopping list app.
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
Technical product thinking, translating user needs into concrete API endpoints and a data schema.
How to approach it
- Clarify the client, mobile app, web, and whether third party integrations like Alexa need access.
- Define the core entities, User, List, Item, with attributes like quantity, category, and checked status.
- Design the schema, a List belongs to a User and can be shared with other Users, Items belong to a List.
- Define the core endpoints, create/get/update/delete for lists and items, plus an endpoint to share a list with collaborators.
- Consider real-time sync, e.g. a websocket or polling endpoint so multiple people checking off items see updates live.
- Define success criteria for the API design, low latency for item updates and support for offline then sync behavior.
What a strong answer includes
- Models sharing and collaboration explicitly in the schema, not just a single-user list, since shopping lists are often shared.
- Separates read and write patterns, e.g. a lightweight GET for list summaries versus a detailed GET for full item state.
- Addresses real-time or near real-time updates, since multiple people editing the same list concurrently is the core use case.
- Mentions offline support, since users check off items in a store with poor connectivity, then sync later.
Common mistakes
- Designing only a single-user schema and ignoring collaborative sharing.
- Skipping real-time sync considerations for a naturally multi-user app.
- Listing generic CRUD endpoints without addressing the app's actual use case.
Likely follow-up questions
- How would you handle two people editing the same list at the same time.
- How would you version this API for backward compatibility.
- How would you support offline mode.
More ai & technical questions
- Design a simple load balancer for Google.com. What data structures would you use?Google · AI & Technical · Hard
- How does TinyURL work?Google · AI & Technical · Easy
- How would you explain cloud computing to your grandmother?Google · AI & Technical · Easy
- What happens when you enter a URL in your browser?Google · AI & Technical · Easy
- You’re part of the Google Search web spam team. How would you detect duplicate websites?Google · AI & Technical · Hard
- Explain the data pipeline for the last AI project you worked on. What were the top challenges in getting data, and how did you resolve them?Google · AI & Technical · Hard
More questions from these companies
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