InterviewStack.io LogoInterviewStack.io

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.

MediumTechnical
89 practiced

Design a custom lint rule (no implementation required) that enforces usage of a secure random function for token generation instead of non-cryptographic RNGs in a JavaScript codebase. Specify the detection heuristic, examples of violations and allowed patterns, false-positive risks, and minimal unit tests you would write for the rule.

EasyBehavioral
73 practiced

Behavioral: Tell me about a time when you found a critical bug or security issue in infrastructure code during a code review. Use the STAR format: describe the Situation, the Task you had, the Actions you took as reviewer and with the team, and the Results (including any follow-up changes to process or automation).

MediumTechnical
87 practiced

You're the on-call reviewer for a hotfix that must be reviewed and merged in under two hours. The author asks for rapid approval. Walk through exactly what you'd check in this timeboxed emergency review to convince yourself the fix is safe to ship, and what deployment precautions you'd still insist on.

MediumTechnical
123 practiced

You are reviewing a teammate's pull request that adds memoization to a function. What checks would you perform in code review to ensure correctness, memory safety, and thread-safety? Provide concrete review comments you might leave.

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.

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.