ThoughtWorks · Software Engineer
Updated · 2026-10-02

ThoughtWorks Software Engineer
Interview Guide

THE 60-SECOND BRIEF

As a Software Engineer at ThoughtWorks, you are not just a developer; you are a consultant and a problem solver. You will work within high-performing, cross-functional teams to build complex, scalable software solutions for clients across a wide range of industries. The role demands more than just technical proficiency; it requires a deep commitment to Agile methodologies, Clean Code, and the ability to navigate ambiguous business requirements. You will often find yourself working on projects that require modern development techniques, such as Test-Driven Development (TDD), Pair Programming, and Extreme Programming (XP). Your impact extends beyond the codebase, as you will engage directly with stakeholders to understand their business challenges and design architectures that are not only functional but also maintainable and extensible.

This guide is scoped to a Software Engineer candidate at ThoughtWorks.

No round sequence has been reported for ThoughtWorks. Confirm the format with your recruiter.

Pair ProgrammingSystem DesignProblem Solving

20 min read

Browse Software Engineer questions

See the practice prompts

2Candidate experiences ↗Read their reports
12Practice promptsAcross five skill areas

As a Software Engineer at ThoughtWorks, you are not just a developer; you are a consultant and a problem solver. You will work within high-performing, cross-functional teams to build complex, scalable software solutions for clients across a wide range of industries. The role demands more than just technical proficiency; it requires a deep commitment to Agile methodologies, Clean Code, and the ability to navigate ambiguous business requirements. You will often find yourself working on projects that require modern development techniques, such as Test-Driven Development (TDD), Pair Programming, and Extreme Programming (XP). Your impact extends beyond the codebase, as you will engage directly with stakeholders to understand their business challenges and design architectures that are not only functional but also maintainable and extensible. Success in this role requires a balance of technical depth, a passion for continuous learning, and the social intelligence to thrive in a collaborative, feedback-oriented consultancy environment.

01

Preparation focus

editorial

No round sequence has been reported for this company, so confirm the format with your recruiter and work the reported questions below.

What to demonstrate

  • Breadth across the topics this company reports testing
  • Whether you confirm the format before preparing for it

How to prepare

  • Ask the recruiter for the sequence, the duration of each stage and whether you will be writing code
  • Work the reported questions below and time yourself
PracHub preparation framework ↗

2 candidate reports. Individual accounts describe a particular role and hiring cycle.

Software Engineer

ThoughtWorks Software Engineer interview: pair programming, logging and production incidents

Technical Screen → Other

The recruiter screen was supportive and gave me enough detail to understand what the interviewers would look for. Scheduling took some time. Once the interviews began, the process felt focused on technical reasoning and how I thought while working with someone else. In pair programming, I had to explain my approach as I coded. We worked on clean code, problem-solving communication and design deci…

Read full experience
Software Engineer

ThoughtWorks Software Engineer interview experience

Take-home Project → Technical Screen

After a recruiter conversation, I went directly into a coding-focused process. There was a take-home code challenge on clean code, object-oriented thinking, and testing. When I finished, a pairing-style round asked me to show how the solution fit the current design and explain the full flow rather than simply hand over code. It was moderately difficult because working code was not enough. I also…

Read full experience

PracHub editorial advice for the preparation topics above.

01

Own your resume

Be prepared to discuss every technology and project mentioned in your profile in depth.

02

Prepare your environment

Since many rounds are remote, ensure your IDE and screen-sharing setup are comfortable and familiar.

03

Ask questions

Use the time at the end of every interview to ask about the team’s current challenges and the company’s vision.

04

Don't hide your process

If you are stuck, talk through your thought process. Interviewers want to see how you troubleshoot, not just your ability to find a perfect answer immediately.

Choose a category, try a prompt, then open its approach, worked solution or follow-up when you need it.

9 technical prompts0 include a worked solution

Merge partitioned event streams into one ordered feed with bounded lateness

hard
k-way mergewatermarksout-of-order streams

The read-model service consumes 64 log partitions carrying about 4,000 events per second in total. Each partition is ordered within itself, but partitions drift by up to 30 seconds, and the activity feed must present a tenant's events in occurred_at order. Produce the merge. State its complexity, the buffer it requires in events and in bytes, what happens when one partition is idle, and what you do with an event that arrives after you have already emitted its position. Payloads average 1 KB.

Approach
  1. Merge with a min-heap over the 64 partition heads keyed on (occurred_at, event_id): O(log P) per event and O(n log P) overall. The tie-break on event_id is what makes the output deterministic when two partitions carry the same millisecond, which matters because the feed is paginated and a non-deterministic order reorders pages under the reader.
  2. Emitting the heap head is only correct once every partition has produced everything up to that timestamp, so the emit condition is a watermark: the minimum across partitions of the highest occurred_at seen, less the allowed lateness. Events are held until the watermark passes them, which is what turns individually ordered streams into a jointly ordered one.
  3. Size the buffer from the lateness rather than guessing: 4,000 events per second times 30 seconds is 120,000 buffered events, and at 1 KB each about 120 MB of heap. That number is the real price of the ordering guarantee and belongs in front of whoever asked for it.
  4. Handle the idle partition explicitly, because it fails the feed rather than corrupting it: a partition with no traffic never advances its own maximum, so the watermark freezes and output stops entirely. Either every partition emits a periodic idle marker carrying the broker's current time, or the watermark falls back to wall clock for a partition silent beyond a threshold.
Follow-up
  • The lateness budget is raised to five minutes. What is the new buffer, and what besides memory changes?
  • The consumer restarts. Where does it resume from, and what does the feed look like for the first 30 seconds?

Find overlapping job attempts and peak concurrency from lease records

medium
sweep lineintervalsleases

A day of job_run history yields about 50,000,000 attempt records: (job_run_id, job_type, attempt, started_at, finished_at which is NULL when the worker died, lease_expires_at). Leases expire on a clock, so a job that outran its lease ran twice. Produce (a) every job_run_id whose attempts overlapped in wall-clock time and (b) the peak number of simultaneously running attempts per job_type with the minute it occurred. Target O(n log n). State how you treat a NULL finished_at and what clock skew does to your answer.

Approach
  1. Define the interval before sorting anything: an attempt occupies [started_at, COALESCE(finished_at, lease_expires_at)). finished_at is observed and lease_expires_at is only a promise, so every attempt without a finish contributes an estimate and the whole result is a lower bound on overlap rather than an exact count.
  2. For peak concurrency, sweep: emit 2n endpoints, sort by (timestamp, kind) with ends ordered before starts at equal timestamps, then walk the sequence maintaining a counter per job_type and record each type's maximum with its timestamp. O(n log n) dominated by the sort, O(n) space, or O(1) extra if the sort is external and the walk streams.
  3. For overlap detection, do not compare attempts pairwise. A single global sort by (job_run_id, started_at) gives both the grouping and the order; within a group, keep the maximum end seen so far and report an overlap exactly when the next start is less than that running maximum, which is one linear pass after the sort.
  4. Half-open intervals matter and are easy to get wrong: with closed intervals an attempt ending at the same millisecond another begins reads as concurrency two, and across 50,000,000 records that artefact swamps the real signal.
Follow-up
  • A handler is not idempotent and you have found 400 overlapping jobs. Which of them actually caused damage, and what would you query to find out?
  • Peak concurrency for one job_type is 4 against a configured cap of 4. Is the cap working, or is the data hiding attempts that never started?

Diff a projection against the primary without per-row point reads

hard
reconciliationrange hashingthrottling

The listing projection has drifted and some rows show a stale version. The primary holds 40,000,000 resource rows across 12,000 tenants while serving 1,200 writes and 14,000 reads per second. The obvious repair, reading each resource row and comparing its version against the projection, is correct and would eventually finish. Explain precisely why it is unacceptable here, then give a diff that finds the differing rows, state its complexity, and make it safe to run against a live primary. Replication lag is usually under 100 ms and is not bounded.

Approach
  1. Quantify the naive cost rather than calling it slow: 40,000,000 point reads at even 0.5 ms each is over five hours serialised, and the only lever is concurrency, which is exactly what you cannot spend. The primary's pool is sized for the write path, and 40,000,000 random reads evict the buffer cache that sustains the 85 percent cache hit rate, so the audit degrades the system it is auditing.
  2. Replace random access with one ordered pass per side. Both sides can be read in (tenant_id, resource_id) order, which is a sequential scan on each and a merge join in O(n) time and O(1) memory. For a dense diff that is the whole answer, and it reads the primary once instead of 40,000,000 times.
  3. For the expected sparse case, compare range hashes instead of rows: partition the key space, compute per range an order-independent aggregate over hash(resource_id, version), compare aggregates, and descend only into ranges that differ. With d differing rows and branching factor B, at most d ranges mismatch per level, so the drill-down examines O(d log_B(n/d)) ranges and reads full rows only in mismatching leaves.
  4. Aggregate with a sum modulo 2^64 or a multiset hash, never XOR. XOR is order-independent but self-cancelling, so two rows wrong in the same way, or a row duplicated on one side, leave the range aggregate matching and the range is declared clean.
Follow-up
  • The diff reports 900 stale rows. How do you decide between patching those rows and rebuilding the projection from resource_revision?
  • Same job, but the projection lives in a search index that cannot be scanned in key order. What changes?

Built from the topics and questions ThoughtWorks candidates report; no round sequence has been reported.

Small steps. Visible outcomes.0 / 7 completed
ONE WEEK · YOUR PACE

Prepare, practise & reflect

One practical outcome each day. Spend longer where you need it.

0 / 7 done
01Establish the ThoughtWorks format
  • No round sequence has been reported, so ask your recruiter for the sequence, the duration of each stage and whether you will write code.

Deliverable: A written reply from your recruiter confirming the format.

02Work Pair Programming
  • Spend the session on Pair Programming, which ThoughtWorks candidates report being tested on.
  • Write one worked example in Pair Programming and time yourself on it.

Deliverable: One timed worked example in Pair Programming.

03Work System Design
  • Spend the session on System Design, which ThoughtWorks candidates report being tested on.
  • Write one worked example in System Design and time yourself on it.

Deliverable: One timed worked example in System Design.

04Work Problem Solving
  • Spend the session on Problem Solving, which ThoughtWorks candidates report being tested on.
  • Write one worked example in Problem Solving and time yourself on it.

Deliverable: One timed worked example in Problem Solving.

05Answer out loud: Technical & Domain Knowledge
  • Answer aloud, timed: Explain the difference between inheritance and composition; when would you prefer one over the other?
  • Answer aloud, timed: How do you handle database migrations in a production environment?

Deliverable: Spoken answers to 2 reported Technical & Domain Knowledge question(s), under time.

06Rehearse your own examples
  • Prepare three examples from your own work where you made the decision, each with the outcome you can quantify.

Deliverable: Three examples written out, each with a number attached.

07Dry run for ThoughtWorks
  • Run one full mock under time, then write down the two questions you most want to ask your interviewers.

Deliverable: A completed timed mock and two questions to ask.

Expand any day for tasks and deliverables. Your progress is saved on this device.

Behavioural rounds judge the decision you made and what it cost.

How do you handle database migrations in a production environment?

medium
Technical & Domain Knowledge

How do you handle database migrations in a production environment?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

Describe a time you had to optimize a piece of code or a database query. What was your process?

medium
Technical & Domain Knowledge

Describe a time you had to optimize a piece of code or a database query. What was your process?

Approach
  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. Name the disagreement and how you resolved it with evidence.
Follow-up
  • What would you do differently if you ran that again?
  • How did you know your change caused the improvement?

Estimate work you have never done and defend the range

hard
estimationbackfillsexpand-contract

You are asked to estimate a change you have never attempted: add a column to a 100-million-row table, populate it, move reads across, and drop the old shape. Give a range with the assumptions that generate it, including batch size, the signal your backfill throttles on, and wall-clock hours, and name the three unknowns that would move the number most. Then describe a real estimate you gave under comparable ignorance: how you expressed its uncertainty, what you committed to, and how wrong you turned out to be.

Approach
  1. Decompose into independently deployable steps before estimating anything: add the column nullable, write both shapes, backfill in batches, verify, move reads, stop writing the old shape, drop it. That is four deploys spread over days, and the calendar estimate is dominated by them rather than by the loop's runtime.
  2. Do the arithmetic aloud for the part that has arithmetic in it: batch size times number of batches times per-batch duration, at a write rate the primary can absorb alongside roughly 1.2k writes per second of production traffic. The loop is throttled by replication lag and lock waits, not by how fast it can issue statements.
  3. Price the schema step by its lock rather than its statement duration. In PostgreSQL an ALTER TABLE taking ACCESS EXCLUSIVE waits for every open transaction on that table while later queries queue behind it, so a millisecond change issued during a thirty-second analytics query stalls that table for thirty seconds. Adding a nullable column with a non-volatile default avoids a rewrite from version 11; a new index wants CREATE INDEX CONCURRENTLY, which cannot run inside a transaction block and leaves an invalid index behind if it fails.
  4. Express the answer as a range whose endpoints each trace to a stated assumption, then name the cheapest experiment that collapses it, which is almost always running one real batch against the real table and multiplying.
Follow-up
  • How do you verify the backfill genuinely finished, given rows written by production traffic while it ran?
  • Where does the backfill resume from after a worker is killed mid-batch, and what makes that resume point trustworthy?
  • 01

    How do you handle database migrations in a production environment?

  • 02

    Describe a time you had to optimize a piece of code or a database query. What was your process?

  • 03

    You are asked to estimate a change you have never attempted: add a column to a 100-million-row table, populate it, move reads across, and drop the old shape. Give a range with the assumptions that generate it, including batch size, the signal your backfill throttles on, and wall-clock hours, and name the three unknowns that would move the number most. Then describe a real estimate you gave under comparable ignorance: how you expressed its uncertainty, what you committed to, and how wrong you turned out to be.

PracHub preparation framework ↗
How much time should I set aside for preparation?

The process is intensive. Dedicate at least 1–2 weeks to brush up on your core language, practice TDD, and reflect on your past project experiences.

ThoughtWorks Software Engineer candidate reports ↗
What is the most common reason for rejection?

Many candidates fail because they focus only on the final solution during the pairing round instead of demonstrating clean coding practices, communication, and TDD.

ThoughtWorks Software Engineer candidate reports ↗
Is the culture really as emphasized as the website suggests?

Yes. The social/cultural interview is not a formality. Candidates are frequently eliminated here if they cannot demonstrate alignment with the company’s values and commitment to social change.

ThoughtWorks Software Engineer candidate reports ↗
Will I receive feedback if I am not successful?

ThoughtWorks is widely recognized for its commitment to providing detailed, constructive feedback, even if you are not offered the position.

ThoughtWorks Software Engineer candidate reports ↗
What topics does ThoughtWorks test in interviews?

ThoughtWorks interviews most often cover Pair Programming, Problem Solving, Live Coding, JavaScript, and System Design. The exact emphasis depends on the specific role you apply for.

ThoughtWorks Software Engineer candidate reports ↗
Sources & methodology 3 sources ↗

No official company page is cited. Rounds and questions come from candidate reports and PracHub editorial material; each source shows the date it was read.