Turborepo accelerates monorepo workflows through intelligent task scheduling, local caching, and remote caching. Test your understanding of how Turborepo makes large codebases manageable.
0 / 5 completed
1 / 5
In Turborepo, what is a task graph and why does it matter?
Turborepo's task graph is a DAG (directed acyclic graph) where nodes are tasks and edges represent dependencies (e.g., build depends on dependency packages' build). Turborepo traverses this graph to determine the maximum parallelism — running independent tasks simultaneously while respecting ordering constraints.
2 / 5
What does Turborepo's remote caching feature do?
Remote caching uploads task artifacts (build outputs, test results) to a shared cache — either Vercel's hosted service or a self-hosted alternative. When another developer or CI job runs the same task with identical inputs (file content hash), it restores the cached output instead of executing, making CI dramatically faster.
3 / 5
How does Turborepo determine whether a task's cache is still valid?
Turborepo's cache key is a hash of all task inputs: the files matching the inputs glob, environment variables listed in env, and the task configuration itself. If the hash matches a previous run's cache entry, the task is skipped and outputs are restored — no recompilation needed.
4 / 5
What does turbo run build --filter=@myapp/web... do in a monorepo?
The ... suffix in a Turborepo filter means 'include this package and all of its dependencies'. So --filter=@myapp/web... runs build for @myapp/web plus every workspace it imports from. Without the suffix, only the named package runs, potentially failing if its dependencies aren't built.
5 / 5
In Turborepo's turbo.json, what does setting a task's cache field to false mean?
Setting cache: false tells Turborepo to always execute the task, bypassing both cache reads and writes. This is appropriate for tasks like dev (watch mode) or deployment scripts where the side effect (running a server, pushing to production) is the goal — not a reproducible build artifact.