PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCareers
|Home/Software Engineering Fundamentals/Scale AI

Debug a Project Assignment Codebase

Last updated: May 1, 2026

Quick Overview

This question evaluates debugging, state management, test-driven troubleshooting, data filtering correctness, and the ability to maintain a public API within a multi-file codebase, under the software engineering fundamentals category.

  • medium
  • Scale AI
  • Software Engineering Fundamentals
  • Software Engineer

Debug a Project Assignment Codebase

Company: Scale AI

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

You are given a multi-file codebase and several CSV fixtures that implement a project assignment workflow. The system assigns people to projects based on course eligibility, project priority, and remaining capacity. Several automated tests are failing. Your task is to inspect the existing implementation, reproduce the failures, and fix the bugs without changing the public API. The expected behavior is: 1. A project can accept a new assignment only when its available headcount is strictly greater than 0. 2. Projects must be processed in descending order of priority. 3. Eligibility filtering must use `course_id`, not a generic row `id` field. 4. Any temporary state used inside a loop must be reset before the next iteration. Describe how you would debug this codebase, identify the root causes, implement the fixes, and verify that the behavior is now correct.

Quick Answer: This question evaluates debugging, state management, test-driven troubleshooting, data filtering correctness, and the ability to maintain a public API within a multi-file codebase, under the software engineering fundamentals category.

Related Interview Questions

  • Design CSV upload endpoint with GPT classification - Scale AI (medium)
  • Explain worker state machine load balancer design - Scale AI (medium)
Scale AI logo
Scale AI
Jan 4, 2026, 12:00 AM
Software Engineer
Onsite
Software Engineering Fundamentals
11
0
Loading...

You are given a multi-file codebase and several CSV fixtures that implement a project assignment workflow. The system assigns people to projects based on course eligibility, project priority, and remaining capacity. Several automated tests are failing.

Your task is to inspect the existing implementation, reproduce the failures, and fix the bugs without changing the public API.

The expected behavior is:

  1. A project can accept a new assignment only when its available headcount is strictly greater than 0.
  2. Projects must be processed in descending order of priority.
  3. Eligibility filtering must use course_id , not a generic row id field.
  4. Any temporary state used inside a loop must be reset before the next iteration.

Describe how you would debug this codebase, identify the root causes, implement the fixes, and verify that the behavior is now correct.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Scale AI•More Software Engineer•Scale AI Software Engineer•Scale AI Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • Careers
  • 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.