Code Review and Working with Existing Codebases Questions

Reviewing others' code and navigating unfamiliar systems: giving and receiving actionable review feedback, spotting correctness and design issues, and reading and understanding large or legacy codebases before changing them. Covers collaborative coding norms, incremental change in shared repositories, and verifying changes against existing behavior. The team-facing side of day-to-day engineering.

EasyTechnical
75 practiced

List five elements you always include in a pull request description to make reviews efficient for team members and new joiners. Explain why each element matters for maintainability, discovery, and onboarding.

HardTechnical
62 practiced

Advanced technical domain: A long-running monitoring agent has a memory leak in production. As a reviewer of the agent's codebase, describe the steps you would take to identify leaking code during review: which profilers and CI checks to add, which code patterns to look for (circular refs, global caches, goroutine leaks), and what automated tests or metrics would catch regressions early.

MediumTechnical
89 practiced

You observe several flaky tests in CI that pass locally but fail intermittently on the pipeline. As a reviewer and engineer, walk through your triage and remediation plan, and how you'd communicate status to the team while it's unresolved.

MediumTechnical
89 practiced

You are reviewing a change that reduces test coverage from 85% to 68% but the author argues the removed tests were flaky and unreliable. As a reviewer, outline a principled decision process: what evidence to request, how to measure test value, alternatives to removing tests, and how to document the decision so future reviewers can understand the risk.

MediumTechnical
69 practiced

Write a Python script that parses the output of git diff --numstat (tab-separated added, deleted, filename lines) from STDIN and emits JSON with total additions, total deletions, number of files changed, and a list of files exceeding 200 additions. Describe how this script could be integrated into a CI job to label large PRs automatically.

Unlock Full Question Bank

Get access to all Code Review and Working with Existing Codebases interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.