Estimation question
Estimate the compute cost of hosting ~1M free interactive Spaces.
- Hugging Face
- 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
Structured estimation under real infrastructure constraints, not just multiplying arbitrary numbers.
How to approach it
- State assumptions upfront: assume 1 million Spaces exist, but only a fraction are actively visited or running at any time, since most free Spaces sleep when idle.
- Estimate active fraction: assume 5 percent, or 50,000 Spaces, are awake at a given moment due to a recent visit, based on typical idle-timeout behavior.
- Estimate per-Space compute: assume a modest CPU or small GPU instance costing roughly 0.10 to 0.50 dollars per hour depending on tier.
- Multiply: 50,000 active Spaces times an assumed 0.20 dollars per hour average equals roughly 10,000 dollars per hour, or about 240,000 dollars per day.
- Sanity check against scale: note this is a rough order of magnitude, and the real number depends heavily on idle-timeout policy and GPU versus CPU mix.
What a strong answer includes
- Explicitly separates total Spaces from concurrently active Spaces, since billing only for active compute matters, not the full 1 million.
- States the idle-timeout assumption clearly, since Hugging Face sleeps inactive Spaces specifically to control this cost.
- Shows the arithmetic cleanly and arrives at a daily figure, clearly marking it as an assumption-based estimate, not a real reported number.
- Notes the biggest cost driver is the small share of Spaces using GPUs rather than the large share on free CPU tiers.
Common mistakes
- Multiplying the full 1 million Spaces by an hourly cost without accounting for idle sleeping, which wildly overstates the number.
- Skipping the active-fraction assumption entirely and jumping straight to a final number.
Likely follow-up questions
- How would this estimate change if Hugging Face tightened the idle-timeout window?
- What lever would you pull first if this cost became unsustainable?
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 Hugging Face
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