Debug and extend a REST API with AI assistance

Last updated: June 17, 2026

Quick Overview

You are given a multi-file Node.js REST API with several bugs and a feature request. Using AI coding tools, identify and fix the bugs, then implement the new feature. Meta evaluates your ability to verify AI-generated code, not just prompt it.

Meta
Software Engineering Fundamentals
Software Engineer
Meta
June 17, 2026
Software Engineer
Onsite
Software Engineering Fundamentals
Medium

228

0

393 solved


You are given a multi-file Node.js REST API with several bugs and a feature request. Using AI coding tools, identify and fix the bugs, then implement the new feature. Meta evaluates your ability to verify AI-generated code, not just prompt it.

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.
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
Core Design Principles

In addressing the bugs and feature request for the REST API at Meta, the core design principles to focus on include:

  1. Separation of Concerns: Each endpoint should handle its own logic and not i...
Architecture

The architectural approach for the Node.js REST API at Meta should leverage a microservices-style architecture, enabling modularization and scalability. The system can be broken down into the followin...


Submit Your Answer
Markdown supported

Related Questions