Object-Oriented Design for a Resort Room and Amenity Access System

Last updated: November 29, 2026

Quick Overview

Design the classes for a resort access system where MagicBands open a guest's room during their stay and amenities such as the pool during opening hours, credentials can be revoked, and every tap is audited.

Disney
Software Engineering Fundamentals
Software Engineer
Disney
November 29, 2026
Software Engineer
Onsite
Software Engineering Fundamentals
Medium

0

0

0 solved


Design the classes for a resort access system where MagicBands open a guest's room during their stay and amenities such as the pool during opening hours, credentials can be revoked, and every tap is audited.

A low-level design round in the style of Disney Parks and Resorts engineering, based on how MagicBands and MagicMobile unlock rooms and amenities. The interviewer checks clean responsibilities, extensibility through policy objects, and correct handling of time windows.

What the Interviewer Expects
  • Identify core entities: guest stay, credential, door, access rule, controller
  • Put the access decision in pluggable rule objects rather than if-else chains
  • Treat time windows as half-open intervals
  • Support revocation and an append-only audit log
  • Explain how new door types are added without editing the controller
Key Topics to Cover
object-oriented design
strategy pattern
SOLID
time intervals
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • How would a door lock decide access while offline from the server?
  • How would you support a family where a child cannot open the adults' connecting door?
  • How would you test the time-window logic?
  • Where would you add rate limiting for repeated failed taps?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

A guest has one or more stays (room, check-in, check-out). A credential (band or phone) belongs to a guest and can be revoked when lost. Doors have a kind (room, pool, gym) and a list of rules. A tap ...

High-Level Design

Stay is an immutable value object. Credential holds the guest's stays and a revoked flag. AccessRule is an abstract strategy with allows(credential, door, at); RoomRule checks the door is th...


Submit Your Answer
Markdown supported