Preparing your design workspace

Loading the problem and your latest saved attempt…

Design an Assessment Platform and ATS Integration

Connect an online coding-assessment platform with companies' applicant tracking systems: invite each applicant once, save test attempts safely, and get every score back to the ATS by webhook or polling.

Problem statement

Design the integration between an online coding-assessment platform and a company's applicant tracking system (ATS), the tool recruiters use to manage job applicants.

When a recruiter moves an applicant to the test stage in the ATS, the platform invites the applicant to a coding test, stores the attempt, and sends the score back to the ATS. A retried request must never invite an applicant twice, and no score may be lost.

Tests and questions. - For this exercise, assume each company's test authors write questions (coding and multiple choice) in the platform, or copy them from a shared library, and combine questions into tests with a time limit. - Assume a test must be published before candidates can get it, editing a published test creates a new version, and an invitation keeps the version that was current when the invitation was created. - Assume the ATS lists the company's published tests, page by page, so a recruiter can link a test to a job's test stage.

Inviting and taking the test. - Assume the ATS calls the platform's API when a recruiter moves an applicant to the test stage. The call carries the ATS's candidate ID and application ID, the applicant's name and email, and the chosen test. The ATS retries a call that times out. - Assume the platform stores the candidate and emails a unique test link, one application gets at most one invitation per test, and an invitation expires after 7 days if the test was not started. - Assume the candidate takes the test in the platform's web app. Answers are saved while the candidate works, so closing the browser loses at most 30 seconds of work, and the time limit keeps running while the candidate is away. - Assume an existing scoring service runs the code against hidden test cases and returns a score.

Sending results back. - Assume the ATS shows each invitation's status (invited, started, completed, scored or expired) and, once scored, the score and a link to the full report on the platform. - Assume some ATSs can receive webhooks (HTTP calls the platform makes to a URL the ATS registered). Others cannot accept incoming calls and can only poll (ask the platform for changes on a schedule). The platform must serve both. - Assume each company sees only its own tests, candidates and results.

Out of scope: how code is run and scored, cheating detection, the ATS's own features, billing, and how recruiters sign in.

What to build

  1. Let a company's test authors create questions and tests and publish them, and let the ATS list the company's published tests page by page.
  2. When the ATS asks, invite an applicant to a published test and email a unique test link, creating exactly one invitation even when the ATS retries.
  3. Store the candidate's data and test attempt, saving answers while the candidate works and enforcing the time limit.
  4. Get every status change and score to the company's ATS, by webhook or through a feed the ATS polls, and let the ATS read one invitation's current result.

At scale

  • For this exercise, assume 5,000 companies connect their ATS, and together they send about 2 million invitations a month. A company can move 10,000 applicants into the test stage at once, which sends 10,000 invite requests within a few minutes. A company can have up to 2,000 tests.
  • Assume up to 30,000 candidates take tests at the same time at peak. A test lasts up to 90 minutes, and the candidate's page saves the answers every 30 seconds.
  • Assume a status change or score must appear in an ATS that is up within 5 minutes after it happens.
  • Assume an ATS can be down for up to 24 hours. No status change or score may be lost, and a retried request must never create a second invitation.