Giving and Receiving Feedback Questions
Exchanging feedback constructively in both directions. Covers delivering specific, actionable, and respectful critique to peers, juniors, senior colleagues, cross-functional partners and direct reports, including written review comments on code, documents and analyses that separate must-fix from minor points; receiving feedback and criticism without defensiveness, asking for clarification, pushing back with reasons, and closing the loop afterwards; choosing the channel and setting (live or written, public or private) and adapting to cultural norms; handling defensive reactions; and building feedback loops and habits on a team. Assesses the ability to help others improve without damaging the relationship. Excludes the candidate's own coachability and growth after being given feedback, stories of the candidate's own mistakes, sustained mentoring and development plans, resolving disputes between parties, design-critique craft, and code-review policy and process standards.
You are reviewing a teammate's pull request containing a model training pipeline. Beyond correctness, what would you look for, and how would you phrase your comments so they are specific and low-friction?
Sample Answer
Direct answer
Beyond correctness (does it run and produce the right numbers), I would review a training pipeline for seven things: data leakage, split quality, reproducibility, evaluation validity, consistency between training and serving (serving means using the trained model to make predictions on new data), operability, and tests. The split decides whether the score can be trusted, so it is checked next to leakage and evaluation, and tests keep all the other checks alive. I would phrase each comment as a specific observation, with the reason and a suggested change, and label how important it is.
What I look for
- Data leakage: information from the test data reaching training. Common case: fitting a scaler (rescales numbers to a common range) or imputer (fills in missing values) on the whole dataset before splitting it into training rows and test rows. Both learn statistics from the data, so fitting them before the split lets test-row information leak into training.
- Split quality: random splits for time-ordered or per-user data can leak. Is the split by user or by time where it should be? (A held-out split is the portion of data set aside and never used for training.)
- Reproducibility: fixed random seeds, pinned library versions (exact versions written down so reruns use the same code), the dataset version recorded, and configuration in a file, not hard-coded paths.
- Evaluation: is the metric the right one for the problem, computed on the held-out split only, and compared against a simple baseline?
- Training-serving skew: the same preprocessing code used at training and at prediction time, since a difference between how data is prepared in training and how it is prepared when the deployed model serves predictions silently changes the inputs the model sees.
- Operability: logging of metrics and parameters, checkpointing (saving progress periodically) so a failed run can resume, sensible failure on missing or empty data.
- Tests: a small fixture dataset (a tiny sample of data kept for tests) so the pipeline runs end to end in CI (continuous integration, automated checks on each change).
A leakage example
# split() is a stand-in for any helper that returns train and test rows
# Before: scaler sees the test rows
X_scaled = scaler.fit_transform(X)
X_train, X_test = split(X_scaled, y)
# After: fit on training rows only
X_train, X_test = split(X, y)
scaler.fit(X_train)
X_train = scaler.transform(X_train)
X_test = scaler.transform(X_test)
How I phrase the comments
| Comment | Why it works |
|---|---|
"Blocking: fit_transform runs on the full dataset before the split, so test statistics leak into training. Could we fit the scaler on the training rows only and transform the test rows with it?" | Names the line, the problem, the fix, and that it blocks |
| "Question: why a random split here? If the same user appears in both sets, the metric may be optimistic. Would a split by user work?" | Asks, gives the reason |
| "Optional: a fixed seed in the config would make reruns comparable." | Marked as a suggestion |
"Nit: rename df2 to train_df." | Marked as minor |
| "Nice use of a baseline model here, it makes the result easy to trust." | Specific praise |
This follows Google's published code-review guidance: comment on the code, not the developer, explain the reason, and mark nits and optional items.
Trade-offs
Not every item blocks. I would block on leakage and invalid evaluation, and leave the rest as optional or follow-up, so the review is fast and the author sees what matters.
A teammate shares a design doc that makes a key performance claim with no evidence. How do you write your review comments to challenge the claim without discouraging them, when do you push back versus accept, and when would you move the discussion to a call?
Sample Answer
Direct answer
I would comment on the claim, not the author, ask for the evidence as a question, say what would change my mind, and mark which comments block approval. I push back when the claim drives a costly or hard-to-undo decision, accept when it is cheap to reverse and the design includes a way to check it, and move to a call when the thread has gone two rounds without converging, when the tone is tightening, or when the disagreement is about meaning (what the claim or the goal actually is) rather than about facts a benchmark could settle.
Example
The design doc says: "The new cache will cut p99 latency (the time within which 99% of requests finish) in half." There is no benchmark.
Comment drafts
- Question about the evidence: "This claim is the main reason for adding the cache, so I want to be sure of it. What workload and data size was this measured on, and what is the baseline? If you have not measured yet, could we add a quick benchmark to the doc, or mark this as a hypothesis with a plan to test it?"
- Say what would settle it: "A comparison of cache-on vs cache-off on a replay of last week's traffic (recorded real requests sent through both versions) would convince me."
- Label severity: start with "Blocking:" for the claim, and "Nit:" or "Optional:" for minor edits, so the author knows what must change.
- Acknowledge what is good: "The invalidation section (how stale cached entries get removed) is clear, and the rollout plan is thoughtful."
Push back or accept
| Situation | Choice |
|---|---|
| The claim justifies adding a new system or a data migration (hard to undo) | Push back until there is evidence |
| The claim is incidental to the design | Accept, and note it as unverified |
| The design includes a feature flag (a switch that turns the new behavior on for a few users first) and a measurement in the rollout | Accept, and make the measurement an explicit exit criterion (a condition that must be met before rollout continues), for example "the cache stays on only if p99 drops at least 20% on the 10% of traffic that gets it" |
When to move to a call
- After two rounds of replies that still disagree.
- When the thread is getting longer or the tone is tightening, since text hides intent.
- When the author is likely to be discouraged by a stack of comments.
- When the disagreement is about meaning, such as what "latency" or "fast enough" refers to, not about a fact a measurement could settle. A call clears up definitions quickly, while more text rarely does.
Accepting an incidental claim without a check is safe only if the thread says it is unverified, so nobody later builds on it as if it were measured.
After the call, write the outcome back into the doc ("agreed to benchmark on replayed traffic, owner Sam, due Friday") so the decision is on record.
Written feedback on a research-style draft
The same structure fits a colleague's paper draft: a short summary of what you understood the claim to be, then strengths (specific), then concerns ordered by importance (for example: the baseline is weak, the claim is stronger than the experiment supports), each with a suggested check, in a respectful tone. A concern written out: "The comparison is against a model with default settings, so the gain may come from tuning, not the new method. Could you add a baseline that gets the same tuning effort? If the gap holds, the claim is much stronger." Starting with the summary shows the author whether you understood them, which often removes half the disagreement.
A respected senior engineer consistently resists design changes proposed in review, and you need to give them feedback about it. How would you approach the conversation, keep it about impact rather than personality, and follow up?
Sample Answer
Direct answer
I'd first decide whether this is a pattern or just legitimate technical disagreement, then have a private conversation grounded in specific review threads and their impact, ask what is driving the resistance, agree on how disagreements will be settled, and follow up after a defined period. I'd keep "this is how decisions are being made" separate from "you are difficult."
Step 1: Check yourself and gather evidence
- Is the senior engineer sometimes right? Resistance can be valuable. I'd look at the last four or so reviews: did they push back with reasons, or block with no engagement?
- Write down 2 to 3 concrete threads: what was proposed, what they said, what happened (a change stalled for a week, the author gave up).
Step 2: Private conversation, impact-focused
"I want to talk about design review. In the retry-logic pull request (PR, a proposed code change sent for review), three comments asked for the same approach without a reason, and the author stopped replying. The change sat a week. I value your judgement on this system. How do you see those reviews?"
Listen. They may hold context you lack (an earlier outage), or feel their standards are being eroded. If so, ask them to write that context down, which helps everyone.
Step 3: Agree a working rule
For example: "If we disagree, the author and reviewer each write the trade-off in two lines and we pick by the criteria in the design doc (the written proposal for the system, which lists goals and constraints)." That moves the argument from personality to criteria.
If the dispute is technical, and if the resistance happens in a public thread
- ML modeling approach: if they resist a different model type, propose a small offline comparison (testing both models on saved historical data, with no live users involved) using the same data and the same metric, with the decision rule agreed beforehand. For example: "We run both on last quarter's data and measure recall at 90% precision. If the new model improves recall by at least 2 points, we adopt it; otherwise we keep the current one." Evidence replaces authority.
- Public forums: if resistance happens in a meeting thread, reply briefly on substance there ("good point, let's compare options") and move the personal part offline. Do not critique them in front of others; it damages morale and makes them dig in harder.
Step 4: Follow up
Two weeks later, re-read the new review threads and say what improved. For example: "Of the five design reviews since we talked, four had a written reason for each requested change and none sat longer than two days, down from a week. Thanks, that unblocked the team." If it persists, involve their manager after telling them.
Pitfalls
Do not frame it as "your attitude," do not skip listening, and do not assume rank equals being right or wrong.
A reviewer pushes back hard on your approach in a pull request and you believe they are wrong. How do you respond, and how do you decide whether to concede, hold your position or escalate?
Sample Answer
Direct answer
I would first make sure I understand their objection by restating it and checking the facts, then reply with evidence, not opinion. I concede if their point stands up, hold if I have evidence and the risk is real, and escalate only after a direct conversation has not resolved it, while not letting the PR (pull request, a proposed code change awaiting review) sit.
Step by step
The example used below: the PR makes a payment call that retries on failure. The reviewer worries a retry could charge a customer twice and suggests an idempotency key (a unique token sent with each request so the server recognises a repeat and processes it only once). I think a simpler database rule already prevents it.
-
Pause and restate. "My understanding is that you are worried the retry loop (the code that repeats a failed call) can send duplicate charges. Is that right?" A hard comment is often a real worry stated badly.
-
Separate fact from preference. Is it a claim I can test (a bug, a measurable slowdown) or a style or design preference? Google's published code-review guidance says technical facts and data overrule opinions and personal preferences, and the style guide is the authority on style.
-
Check whether I am wrong. Reproduce their concern with a test. If it fails, concede and thank them.
-
Reply with evidence and the trade-off. "I tried the idempotency-key approach you suggested. It adds a table and a migration (a script that changes the database structure and must be rolled out carefully). My approach avoids that: the payments table already has a unique constraint (a database rule that rejects a second row with the same order id), and here is a test showing a retried call cannot create a second charge. Does that address it?"
Check the claim against the failure that matters before sending it. A unique constraint only stops a second row in our own table. If the first call timed out after the payment provider had already charged the card, a retry would call the provider again, and no local constraint can stop that. In that case the reviewer is right and the idempotency key (sent to the provider, which many payment providers support) is the correct fix, so I would concede in step 3. My test must therefore simulate a timeout after the provider has processed the charge, not only a repeated local write. My position holds only if the charge record is created first, the provider call carries that record's id, and the provider deduplicates on it.
-
Offer a call if the second reply does not settle it. Text can read harsher than intended.
-
Escalate if still stuck. Google's guidance lists a broader team discussion, a tech lead, a maintainer of the code, or an engineering manager, and says not to leave the change waiting.
Decision table
| Situation | Action |
|---|---|
| Their point is correct or I cannot disprove it | Concede, change the code |
| Preference, low risk, easy to change later | Concede or compromise to save time |
| I have evidence, and the risk is high or hard to undo | Hold, explain, offer a call |
| Still unresolved after a call | Escalate for a decision, framed neutrally with both options |
Close the loop
After a decision, I thank the reviewer, and if I held my position I make sure the decision is recorded in the PR, so the next reader sees why.
What would change my call
A reproducible failing test, a production incident, or a teammate who owns the affected module disagreeing would move me toward conceding.
A developer on another team keeps shipping flaky tests that trigger spurious alerts and burn on-call time. How would you give them that feedback, and what would you do to make sure it changes?
Sample Answer
Direct answer
I would raise it privately and early with the developer, using a short three-part note (situation, behavior, impact), bring the cost data, offer a concrete way to fix the tests, and then agree on a date when we both look at the numbers again. If nothing changes, I involve their manager as a shared-problem conversation with the same data, and I fix my own side so their flakiness cannot wake my on-call at night regardless. Feedback only "changes" when the person knows the cost, knows exactly what to do, and sees a follow-up.
How I would do it
Terms: a flaky test passes and fails on the same code with no change, usually from timing, shared state (data that several tests read and change) or network calls. A spurious alert is a page that fires with no real customer problem. On-call is the rotation of engineers who get paged out of hours. The pipeline is the automated build-and-test run that checks every code change. Main-branch runs are runs of that pipeline on the team's shared, up-to-date code, so a failure there is not caused by one person's work in progress. A retry automatically re-runs a failed test once before reporting it.
- Check my own picture first. Is the test really theirs? Is it flaky or is it failing for a real, intermittent bug? Do they even know it pages anyone? Often the author never sees the alert, so the cost is invisible to them.
- Collect evidence they cannot argue with. Illustrative numbers: the test failed on 9 of the last 40 runs on the main branch (22.5%), and it triggered 3 pages in two weeks, on 3 separate nights, each costing about an hour of someone's sleep.
- Talk one-to-one, before escalating. Peers outside my reporting line owe me nothing, so tone is "help me understand" rather than "fix it". Use SBI (Situation, Behavior, Impact, a model from the Center for Creative Leadership).
- Make the fix cheap. Offer a pattern or offer to pair for 30 minutes. The usual three: (a) replace a fixed sleep with waiting until a condition is true, (b) give each test its own data so tests do not disturb each other (isolate shared state), (c) replace a real network call with a fake that returns a fixed answer (mock it). Agree a stopgap: quarantine the test (it still runs, but its failures no longer page anyone) until fixed.
# Flaky: guesses the job finishes within 2 seconds
time.sleep(2)
assert order.status == "done"
# Stable: checks repeatedly, up to 10 seconds, and continues as soon as it is true
wait_until(lambda: order.status == "done", timeout=10)
wait_until is not a built-in: it stands for a small helper your test suite defines (or a retry library provides) that re-checks a condition every fraction of a second and fails only if the timeout passes. The snippet is a pattern sketch, not a runnable program.
5. Close the loop. Agree a check-in date, look at the flake rate together, and thank them publicly when it drops.
Worked example
"Yesterday's 02:10 page came from
test_checkout_timeoutin your service's pipeline (Situation). It failed on 9 of the last 40 main-branch runs with no code change. The pipeline's single automatic retry hides most of those failures, but when the retry fails too the alert fires, and it did (Behavior). That has cost our on-call three broken nights in two weeks (3 pages on 3 separate nights), and the team is starting to ignore that alert channel (Impact). Could we look at it together on Thursday? I think it is waiting on a fixed sleep, and I can show the condition-wait pattern we use."
All three SBI parts are present, there is an ask, and no judgement of the person. The numbers tie together: 9 failures in 40 runs is 22.5%. If each run failed independently at that rate, about 5% of runs (0.225 x 0.225) would fail twice in a row and page, roughly 2 pages per 40 runs, which is the same order as the 3 pages observed (illustrative figures).
Written work with a repeated downstream cost
The same method fits a colleague's incomplete model documentation. Situation: the churn-model README for the latest release. Behavior: the input section does not state that tenure is in months or how nulls are encoded. Impact: my team guessed days and shipped the same integration bug twice. The ask is a short checklist (units, null handling, ranges, an example row) plus an offer to review the next draft.
Trade-offs and pitfalls
- Escalating first poisons the relationship; waiting forever lets the cost grow. One direct conversation and one dated follow-up is the balance.
- If they say "it is low priority", the answer is data plus their manager, not more nagging.
- Fix my side as well (alert only on non-quarantined tests): it is faster than waiting on another team's behavior.
- If the failure turns out to be a real intermittent bug, the conversation becomes "thank you for the signal" and the tone changes.
Unlock Full Question Bank
Get access to all 7 Giving and Receiving Feedback interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.