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
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.

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.

EasyTechnical
81 practiced

When reviewing infrastructure code, how do you evaluate what tests are appropriate? Describe a testing strategy (unit, integration, end-to-end) for a Terraform module that provisions a VPC, subnets, and an autoscaling group used by several services. Explain what each test layer validates and how you'd run them safely in CI.

HardTechnical
89 practiced

Leadership: You're in a large engineering org where reviewers are overloaded and PR latency is high. Propose a scalable manual-review strategy combining automation, triage, reviewer assignment rules, and code ownership. Explain how to maintain quality while reducing time-to-merge and preventing reviewer burnout.

MediumTechnical
86 practiced

A PR adds a GitHub Actions workflow that builds artifacts and deploys to production. Review the YAML below and identify security, caching, and reliability issues. Suggest concrete fixes.

yaml
name: deploy
on: [push]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: echo $SECRET_KEY
      - run: curl -sL https://example.com/install.sh | bash
      - run: ./deploy.sh

What would you change and why?

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.