PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Amazon

Build a responsive grid of fixed boxes

Last updated: Mar 29, 2026

Quick Overview

This question evaluates front-end layout and responsiveness skills including HTML/CSS and React component rendering, plus performance scaling for large lists and accessibility considerations, and is categorized in the Software Engineering Fundamentals domain.

  • medium
  • Amazon
  • Software Engineering Fundamentals
  • Software Engineer

Build a responsive grid of fixed boxes

Company: Amazon

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

## Task (React/CSS) Render a list of square “boxes” on a page: - Initially there are **10 boxes**. - Each box is **100px × 100px**. - Boxes should lay out left-to-right and **wrap to the next line** when they no longer fit in the container. You may use any reasonable HTML/CSS approach (e.g., Flexbox). ## Follow-ups 1. If the list grows to **100+ boxes**, how would you make rendering and interaction **scale** (performance + UX)? Discuss options such as pagination and infinite scrolling. 2. If you choose **pagination**, what would you do to ensure the pagination UI and page changes are **accessible (a11y)** for keyboard and screen-reader users?

Quick Answer: This question evaluates front-end layout and responsiveness skills including HTML/CSS and React component rendering, plus performance scaling for large lists and accessibility considerations, and is categorized in the Software Engineering Fundamentals domain.

Related Interview Questions

  • Debug Watch List Movie Operations - Amazon (medium)
  • Design an advertiser metrics tracking platform - Amazon (medium)
  • Implement Review Content Moderation - Amazon (medium)
  • Validate AI-Generated Code Safely - Amazon (medium)
  • Fix the Password Reset Workflow - Amazon (medium)
Amazon logo
Amazon
Jan 22, 2026, 12:00 AM
Software Engineer
Technical Screen
Software Engineering Fundamentals
4
0
Loading...

Task (React/CSS)

Render a list of square “boxes” on a page:

  • Initially there are 10 boxes .
  • Each box is 100px × 100px .
  • Boxes should lay out left-to-right and wrap to the next line when they no longer fit in the container.

You may use any reasonable HTML/CSS approach (e.g., Flexbox).

Follow-ups

  1. If the list grows to 100+ boxes , how would you make rendering and interaction scale (performance + UX)? Discuss options such as pagination and infinite scrolling.
  2. If you choose pagination , what would you do to ensure the pagination UI and page changes are accessible (a11y) for keyboard and screen-reader users?

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Amazon•More Software Engineer•Amazon Software Engineer•Amazon Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
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.