PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/ML System Design/Shopify

Design hierarchical product classification

Last updated: Apr 6, 2026

Quick Overview

This question evaluates a candidate's ability to design end-to-end machine learning systems for hierarchical product classification, covering competencies in taxonomy design, data bootstrapping, feature extraction from product content and merchant metadata, hierarchical model selection, serving architectures for batch and real-time inference, and evaluation and monitoring. It is commonly asked to assess judgment about trade-offs between accuracy, latency, and operational complexity, strategies for handling low-quality or scarce labels, and integration of batch and real-time pipelines; the category is ML System Design and the level of abstraction spans both conceptual system-architecture understanding and practical implementation details.

  • medium
  • Shopify
  • ML System Design
  • Machine Learning Engineer

Design hierarchical product classification

Company: Shopify

Role: Machine Learning Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Technical Screen

Design an end-to-end machine learning system that classifies products into a hierarchical taxonomy such as `department -> category -> subcategory`. Assume the interviewer starts with little or no high-quality labeled data. Your design should cover: - How to define or refine the taxonomy - How to bootstrap training data - What inputs and features to use from product content and merchant metadata - Model choices for hierarchical classification - How to support both batch inference for catalog backfills and real-time inference for newly created or updated products - API and serving considerations - Evaluation, monitoring, and retraining strategy Explain trade-offs between accuracy, latency, and operational complexity.

Quick Answer: This question evaluates a candidate's ability to design end-to-end machine learning systems for hierarchical product classification, covering competencies in taxonomy design, data bootstrapping, feature extraction from product content and merchant metadata, hierarchical model selection, serving architectures for batch and real-time inference, and evaluation and monitoring. It is commonly asked to assess judgment about trade-offs between accuracy, latency, and operational complexity, strategies for handling low-quality or scarce labels, and integration of batch and real-time pipelines; the category is ML System Design and the level of abstraction spans both conceptual system-architecture understanding and practical implementation details.

Related Interview Questions

  • Design Personalized Product Feeds - Shopify (medium)
  • Design search autocomplete ML system - Shopify (medium)
  • Design a baseline loan recommendation system - Shopify (hard)
  • Describe ML projects and tech choices - Shopify (medium)
  • Design a hierarchical multi-label classifier - Shopify (hard)
Shopify logo
Shopify
Mar 1, 2026, 12:00 AM
Machine Learning Engineer
Technical Screen
ML System Design
5
0
Loading...

Design an end-to-end machine learning system that classifies products into a hierarchical taxonomy such as department -> category -> subcategory.

Assume the interviewer starts with little or no high-quality labeled data. Your design should cover:

  • How to define or refine the taxonomy
  • How to bootstrap training data
  • What inputs and features to use from product content and merchant metadata
  • Model choices for hierarchical classification
  • How to support both batch inference for catalog backfills and real-time inference for newly created or updated products
  • API and serving considerations
  • Evaluation, monitoring, and retraining strategy

Explain trade-offs between accuracy, latency, and operational complexity.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More ML System Design•More Shopify•More Machine Learning Engineer•Shopify Machine Learning Engineer•Shopify ML System Design•Machine Learning Engineer ML System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.