PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Reinforce Labs

Design a REST GET API to fetch DB records

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in RESTful API design, HTTP semantics, database querying and schema considerations, pagination and filtering strategies, error handling and status codes, performance optimization (indexes/caching), and security aspects such as authentication, authorization, and rate limiting.

  • medium
  • Reinforce Labs
  • System Design
  • Software Engineer

Design a REST GET API to fetch DB records

Company: Reinforce Labs

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Take-home Project

Design a RESTful endpoint that uses **HTTP GET** to retrieve information from a database. Scenario: - You have a `products` table in a relational database. - Clients need to fetch either: 1) a single product by ID, and/or 2) a list of products with filtering and pagination. **Task:** Specify the API design and the server-side behavior, including: - Endpoint paths and query parameters - Request/response JSON shape - Status codes and error handling - Pagination strategy - Basic performance considerations (indexes/caching) - Security considerations (authn/authz, rate limiting) Keep the design practical for production use.

Quick Answer: This question evaluates a candidate's competency in RESTful API design, HTTP semantics, database querying and schema considerations, pagination and filtering strategies, error handling and status codes, performance optimization (indexes/caching), and security aspects such as authentication, authorization, and rate limiting.

Reinforce Labs logo
Reinforce Labs
Jan 8, 2026, 12:00 AM
Software Engineer
Take-home Project
System Design
1
0
Loading...

Design a RESTful endpoint that uses HTTP GET to retrieve information from a database.

Scenario:

  • You have a products table in a relational database.
  • Clients need to fetch either:
    1. a single product by ID, and/or
    2. a list of products with filtering and pagination.

Task: Specify the API design and the server-side behavior, including:

  • Endpoint paths and query parameters
  • Request/response JSON shape
  • Status codes and error handling
  • Pagination strategy
  • Basic performance considerations (indexes/caching)
  • Security considerations (authn/authz, rate limiting)

Keep the design practical for production use.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

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