Get Hired · Interviews

Take-home assignments

How to scope and time-box a take-home task, what to submit so reviewers can judge it quickly, the questions to ask first, and when it's reasonable to push back or decline.

A take-home assignment is a small project you complete on your own time: build an API, fix a bug in a sample repository, write an infrastructure module, analyse a data set. Many engineers prefer it to live coding because there's no audience. But it has its own traps: spending three evenings on something meant to take three hours, or submitting good code that nobody can run.

This guide covers how to approach a take-home so it shows your best work without taking over your week.

Before you start: ask questions

Read the brief twice, then send one short email with your questions. Recruiters and engineers expect this, and the answers often change what you build.

Hi Priya,

Thanks for the assignment. A few quick questions before I start:

1. The brief suggests about 3 hours. Is that a guide or a hard limit?
2. Can I choose the language and framework, or should I use Go?
3. Should data be persisted, or is in-memory storage fine?
4. How will it be reviewed - will I walk through it in a follow-up call?
5. What's the deadline?

Thanks,
Sam

If the brief already answers something, don't ask it. Two to five good questions show judgement.

Scope it before you write code

The brief is usually bigger than the time allowed, on purpose. Reviewers want to see what you prioritise.

  1. List the requirements. Mark each as must-have, nice-to-have or out of scope.
  2. Decide the smallest complete version. A working, tested core beats a half-finished feature-rich one.
  3. Plan your time. For a three-hour task, roughly: 20 minutes planning, 2 hours building and testing, 40 minutes on the README and tidying up.
  4. Write down what you're leaving out. It goes in the README, so reviewers know it was a choice.

What to submit

Reviewers often have 20–30 minutes per submission. Make that time count.

A README that does the work

# Order service - take-home for Example Ltd

## Run it
docker compose up        # API on http://localhost:8080
make test                # unit and integration tests

## What it does
- POST /orders, GET /orders/{id}, GET /orders?status=
- Validates input, returns 400 with field errors
- PostgreSQL storage with migrations

## Decisions and trade-offs
- Chose PostgreSQL over in-memory storage so the status filter is realistic.
- No authentication: out of scope per the brief.
- Pagination is offset-based for simplicity; cursor-based would scale better.

## With more time
- Idempotency keys on POST /orders
- Structured logging and metrics
- Load test for the list endpoint

## Time spent
About 3.5 hours.

The README answers the reviewer's questions before they ask them: how do I run it, what did they build, what did they decide, and what do they know is missing.

Code reviewers want to see

  • It runs with one or two commands, on a clean machine. Test that yourself in a fresh clone.
  • Tests for the important behaviour and a few edge cases, not 100% coverage.
  • Clear structure: sensible folders and names, no dead code, no commented-out experiments.
  • Error handling at the boundaries: bad input, missing records, failing dependencies.
  • Readable history: a few meaningful commits beat one giant "done" commit.
  • No secrets: use example environment files, never real keys.

For infrastructure take-homes (Terraform, Kubernetes, CI pipelines), the same applies: a README with how to run or validate it, formatting and linting passing, variables documented, and a note on what you'd add for production, such as remote state, secrets management and monitoring.

The follow-up discussion

Many companies review the take-home with you in a later call. Prepare to:

  • walk through the design in five minutes,
  • explain one decision you'd change and why,
  • extend the code live with a small new requirement,
  • discuss how it would scale, fail and be monitored in production.

Re-read your own code the day before. Forgetting why you made a choice looks worse than the choice itself.

Time limits and honesty

If the brief says three hours, aim for three hours and say how long you spent. Spending ten hours to produce something polished is common, but reviewers usually know what three hours looks like, and some companies score against the stated time. If you went over, say so briefly in the README.

Don't use code you can't explain, and check the company's rules on AI assistants before using one. If tools were allowed and you used them, be ready to explain every line.

When to push back or decline

Take-homes cost candidates real time. It's reasonable to ask questions, and sometimes to say no.

  • Very long tasks. If a "short exercise" clearly needs two or three days, ask whether a smaller scope is acceptable, or whether an existing project or a live session could replace it.
  • Real work. If the task looks like a piece of the company's actual product or backlog, ask how the work will be used. Unpaid production work isn't a fair assessment.
  • Late in the process with no feedback. If you've already done several rounds, it's fine to ask whether this is the final technical step.
  • Several processes at once. If you're short on time, say so honestly and ask about the deadline: "I can submit by Tuesday; would that work?"

A polite question rarely ends a process. A company that won't discuss scope at all has told you something useful.

Checklist before you submit

  • Fresh clone runs with the documented commands
  • Tests pass
  • README covers run, design decisions, trade-offs, what's missing, time spent
  • No secrets, personal data or unrelated files
  • Linting and formatting pass
  • You've re-read the brief: every must-have requirement is covered

Practise

General guidance, not legal or immigration advice. Laws and rules change: check the official sources linked in each country note.

Was this page helpful?

Report a mistake