PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Amazon

Design a multi-size storage locker system

Last updated: Jun 4, 2026

Quick Overview

This question evaluates a candidate's system-design skills, including distributed systems architecture, resource allocation/bin-packing reasoning for multi-size lockers, concurrency control, availability and consistency trade-offs, API and data-model design, and operational concerns like auditing and failure handling.

  • medium
  • Amazon
  • System Design
  • Software Engineer

Design a multi-size storage locker system

Company: Amazon

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a storage-locker system that supports **storing** and **retrieving** items when lockers come in multiple sizes. ## Scenario A company operates self-service locker locations (like package lockers). Each location contains many individual locker compartments of different sizes (e.g., S/M/L, or dimension-based). Couriers arrive to deposit packages; customers later retrieve them. ## Functional requirements 1. **Store / check-in**: Given a package (dimensions or size class) and a target location, assign a locker and generate a pickup credential (PIN/QR/code). 2. **Optimal assignment**: Choose the **smallest** available locker that fits the package (minimize wasted space). If none fit, return an error. 3. **Retrieve / pickup**: Given a pickup credential at a location kiosk, open the correct locker door and mark the item as picked up. 4. **Expiration**: Packages expire after a configured time; expired packages may be removed by an operator. 5. **Operations/admin**: Mark lockers out-of-service; support manual overrides (e.g., door jam, lost code). ## Non-functional requirements - Low latency at kiosk/courier check-in. - Correctness under concurrency (multiple couriers arriving simultaneously). - High availability (locations may have intermittent connectivity). - Auditability and security (access logs). ## Deliverables - APIs and data model - Core services/components and how they interact - Locker allocation strategy (including concurrency control) - Storage/consistency choices, scaling strategy, and failure handling

Quick Answer: This question evaluates a candidate's system-design skills, including distributed systems architecture, resource allocation/bin-packing reasoning for multi-size lockers, concurrency control, availability and consistency trade-offs, API and data-model design, and operational concerns like auditing and failure handling.

Related Interview Questions

  • Design a Log Collection System - Amazon (medium)
  • Design Human Avoidance for Warehouse Robots - Amazon (medium)
  • Design a High-Availability Load Balancer - Amazon (hard)
  • Design a Ride-Hailing Matching System - Amazon (medium)
  • Design a cloud database write path and recovery - Amazon (hard)
Amazon logo
Amazon
Jan 2, 2026, 12:00 AM
Software Engineer
Onsite
System Design
4
0
Loading...

Design a storage-locker system that supports storing and retrieving items when lockers come in multiple sizes.

Scenario

A company operates self-service locker locations (like package lockers). Each location contains many individual locker compartments of different sizes (e.g., S/M/L, or dimension-based). Couriers arrive to deposit packages; customers later retrieve them.

Functional requirements

  1. Store / check-in : Given a package (dimensions or size class) and a target location, assign a locker and generate a pickup credential (PIN/QR/code).
  2. Optimal assignment : Choose the smallest available locker that fits the package (minimize wasted space). If none fit, return an error.
  3. Retrieve / pickup : Given a pickup credential at a location kiosk, open the correct locker door and mark the item as picked up.
  4. Expiration : Packages expire after a configured time; expired packages may be removed by an operator.
  5. Operations/admin : Mark lockers out-of-service; support manual overrides (e.g., door jam, lost code).

Non-functional requirements

  • Low latency at kiosk/courier check-in.
  • Correctness under concurrency (multiple couriers arriving simultaneously).
  • High availability (locations may have intermittent connectivity).
  • Auditability and security (access logs).

Deliverables

  • APIs and data model
  • Core services/components and how they interact
  • Locker allocation strategy (including concurrency control)
  • Storage/consistency choices, scaling strategy, and failure handling

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Amazon•More Software Engineer•Amazon Software Engineer•Amazon System Design•Software Engineer 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.