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.

HardSystem Design
64 practiced

You are reviewing a data migration that renames a heavily used column and requires backfilling millions of rows. Design a rollback-safe migration strategy that can be reviewed and approved. Cover schema changes, dual-write/read strategies, backfills, verification, monitoring, and how code review should verify each migration step.

MediumTechnical
79 practiced

How would you detect secrets leaked in a PR or git history, and what would you actually do about it: immediate reviewer actions, secret rotation, and cleaning up the history? Name the tools you'd reach for and walk through the trade-offs of your remediation approach.

EasyTechnical
72 practiced

A colleague submitted a small Python utility that parses syslog files and prints a summary. The snippet:

python
def parse(lines):
    counts = {}
    for l in lines:
        level = l.split()[2]
        counts.setdefault(level, 0)
        counts[level] += 1
    print(counts)

Identify code smells, maintainability and correctness problems, and suggest a refactor that improves clarity, testability, and robustness.

MediumSystem Design
80 practiced

Design a code-review checklist specifically for Terraform modules in a large, multi-team organization, covering everything from module interface design to security posture. Provide the checklist and explain why each item matters at organizational scale.

EasyTechnical
88 practiced

As a reviewer of automation that provisions cloud infrastructure, what specific performance and cost items do you check for in the code? Explain why each one matters and how you'd verify it during review or in CI.

Unlock Full Question Bank

Get access to all 31 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.