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
60 practiced

You find a change in a PR that appears to add API keys and database passwords as plain text constants in a repository. As the reviewer, what steps do you take immediately and what long-term code-review policies and automated checks would you recommend to prevent credentials from being committed? Include remediation for secrets already committed to history.

HardTechnical
63 practiced

You are reviewing a Helm chart for a critical service and notice templates that duplicate labels, interpolate values unsafely, and use imagePullPolicy: Always with latest tags. The Chart.yaml and templates are large. What templating anti-patterns would you flag, and how would you refactor the chart to be safer, testable, and reusable? Include unit-test strategies for Helm charts.

MediumTechnical
131 practiced

You are responsible for integrating static-analysis tools for a compiled monitoring agent written in Go. As a reviewer, which tools/checks would you require in CI and which classes of defects do they catch (formatting, race conditions, undefined behavior, performance issues)? Explain how to prioritize fixes found by these tools in PR reviews.

HardTechnical
70 practiced

Security review: you find an IaC change that opens a security group to 0.0.0.0/0 for SSH and stores a service account key in a repo variable file. As the reviewer, propose a remediation plan that enforces least privilege, performs minimal disruption, and includes a migration path to rotate credentials and tighten rules. Include both code changes and rollout steps.

EasyTechnical
88 practiced

You are reviewing a Kubernetes deployment manifest in a PR. The file (excerpt) is:

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ingest
spec:
  replicas: 3
  template:
    spec:
      containers:
      - name: ingester
        image: mycompany/ingester:latest

List missing operational and security best practices you would require (resource requests/limits, probes, image policies, RBAC, securityContext, labels, etc.) and provide the exact changes you would request in the PR.

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.