PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Atlassian

Store a hierarchy and return all children

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of hierarchical data modeling, REST API design, database schema choices (e.g., adjacency list vs alternatives), and systems-level concerns like scalability, pagination for large subtrees, and cycle prevention.

  • medium
  • Atlassian
  • System Design
  • Software Engineer

Store a hierarchy and return all children

Company: Atlassian

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a service to store a hierarchical tree of nodes and expose APIs. Requirements: - Persist a hierarchy (a forest with multiple roots is acceptable). - Support: 1) Add a node under a parent. 2) Return **all descendants** (all children recursively) of a given node. - Emphasis on REST API design, DB schema, and edge cases. Deliverables: - API endpoints and example requests/responses. - Storage model choice (e.g., adjacency list, materialized path, nested sets, closure table) and justification. - How to handle large subtrees (pagination) and prevent cycles.

Quick Answer: This question evaluates understanding of hierarchical data modeling, REST API design, database schema choices (e.g., adjacency list vs alternatives), and systems-level concerns like scalability, pagination for large subtrees, and cycle prevention.

Related Interview Questions

  • Design a distributed rate limiter service - Atlassian (medium)
  • Design a simple greeting-card web app - Atlassian (medium)
  • Design a Data Stream Processor - Atlassian (easy)
  • Design a scalable chatbot platform - Atlassian (medium)
  • Diagnose why a scaled system became slow - Atlassian (medium)
Atlassian logo
Atlassian
Jan 5, 2026, 12:00 AM
Software Engineer
Onsite
System Design
2
0

Design a service to store a hierarchical tree of nodes and expose APIs.

Requirements:

  • Persist a hierarchy (a forest with multiple roots is acceptable).
  • Support:
    1. Add a node under a parent.
    2. Return all descendants (all children recursively) of a given node.
  • Emphasis on REST API design, DB schema, and edge cases.

Deliverables:

  • API endpoints and example requests/responses.
  • Storage model choice (e.g., adjacency list, materialized path, nested sets, closure table) and justification.
  • How to handle large subtrees (pagination) and prevent cycles.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

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