Estimation question
Estimate the compute cost per app built with Replit Agent.
- Replit
- Estimation
- Hard
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
Estimation of AI compute costs per unit of user output, requiring reasonable assumptions about task complexity and model usage.
How to approach it
- State the goal: estimate the average LLM compute cost to build one app end to end with Replit Agent.
- Assume an average app takes several iterative agent turns to reach a working state, say 15 turns including planning, code generation, and error fixing.
- Assume each turn processes a moderate amount of context, say 5,000 input tokens (code and file context) and 1,000 output tokens.
- Apply an illustrative blended price, for example 3 dollars per million input tokens and 15 dollars per million output tokens, clearly marked as an assumption.
- Compute: 15 turns times 5,000 tokens equals 75,000 input tokens, and 15 times 1,000 equals 15,000 output tokens per app.
- Multiply: (75,000/1,000,000 times $3) plus (15,000/1,000,000 times $15) equals about $0.23 plus $0.23, roughly 45 to 50 cents per app, before compute for code execution and testing.
What a strong answer includes
- Breaks the task into discrete agent turns rather than guessing a lump-sum figure.
- States all assumptions (turns per app, tokens per turn, price per token) explicitly and separately.
- Adds that execution and sandboxing compute (running the generated code) is a separate cost not covered by the token math.
- Sanity-checks the final number against what a free-tier user might cost the business, to reason about margin.
- Flags that complex apps with many error-correction loops could cost several times this baseline estimate.
Common mistakes
- Ignoring compute cost for actually running and testing the generated app, not just the LLM tokens.
- Picking an unrealistic number of turns without justifying it.
Likely follow-up questions
- How would this change for a complex app needing many error-fix loops?
- How would you reduce this cost without hurting build quality?
- How does this compare to what a free-tier user is allowed to consume?
More estimation questions
- YouTube Red is a premium service without ads. Assume that 1.5% of initial YouTube user base signs up for the service. What is the lifetime revenue Google generates from those users?Google · Estimation · Hard
- How would you design a service like Instagram? Estimate server and storage requirement for peak traffic.Google · Estimation · Hard
- How much storage is required to store all of the images on Google Maps?Google · Estimation · Hard
- A company has launched a new drug that eliminates the need for sleep. How would you price this drug?Google · Estimation · Hard
- How much storage space is required to host all the images of Google Street View?Google · Estimation · Hard
- Imagine you created a new type of product that would replace the mobile phone. How would you determine how many units to manufacture?Google · Estimation · Hard
More questions from Replit
Learn the skill behind it
Chapters of the AI PM course that teach what this question tests.
- Chapter 2: Data fluency: SQL, logs, and reading the truth yourself
- Chapter 9: Prove it paid off: outcomes, economics, and pricing
- Chapter 14: Get the job: the AI PM interview loop