PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Amazon

Design a scalable parking lot system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's system design competencies, including scalable architecture, concurrency-safe resource allocation, data consistency versus availability trade-offs, fault tolerance, real-time availability tracking, payment integration, and domain/API modeling.

  • hard
  • Amazon
  • System Design
  • Software Engineer

Design a scalable parking lot system

Company: Amazon

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Design a parking lot system supporting multiple vehicle types and levels, entry/exit gates, ticketing, payments, availability tracking, and pricing rules (hourly, daily). Define core classes, relationships, and APIs for parking, un-parking, and querying availability. Address concurrency, data consistency, failures (e.g., lost tickets), and full-capacity scenarios.

Quick Answer: This question evaluates a candidate's system design competencies, including scalable architecture, concurrency-safe resource allocation, data consistency versus availability trade-offs, fault tolerance, real-time availability tracking, payment integration, and domain/API modeling.

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
Jul 16, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
7
0

System Design: Multi-Level Parking Lot Service

Context

Design a production-grade parking lot system for a large, multi-level facility. The system should support multiple vehicle and spot types, multiple entry/exit gates, real-time availability, ticketing, payments, and pricing rules. Assume the system may operate across many lots and must remain available under concurrent use.

Requirements

  1. Functional
    • Support multiple vehicle types (e.g., motorcycle, car, truck/van, EV) and spot types (compact, large, handicapped, EV-charging).
    • Support multiple levels and multiple entry/exit gates per lot.
    • Entry flow: issue ticket (or identify by license plate), assign or admit to a spot/group, start a parking session.
    • Exit flow: compute charges based on pricing rules (hourly, daily), accept payment, end session, open gate.
    • Real-time availability tracking by lot/level/spot type.
    • Handle failure scenarios: lost tickets, payment failures, network issues, and full capacity.
  2. Non-functional
    • High availability and concurrency-safe spot allocation.
    • Data consistency for session state and payments; reasonable eventual consistency for availability counters.
    • Observability and auditability of financial transactions.
  3. Deliverables
    • Define core classes/entities and their relationships.
    • Define key APIs for parking, un-parking, payments, and querying availability.
    • Address concurrency control, data consistency, failure handling, and full-capacity behavior.
  4. Assumptions (make minimal, explicit choices if needed)
    • License plate recognition (LPR) is available but may be imperfect; tickets (QR/barcode) serve as fallback.
    • Option A: “Free parking” model where the driver selects a spot; Option B: “Assigned spot” model at entry. Design should support both; default to Option A for throughput, with optional assignment.
    • Pricing supports hourly and daily with configurable grace and rounding.

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.