Scrivio Interview library
LeadershipPrincipal5 min read · updated 13 November 2026

A product team wants autocomplete personalised from each person's search history and location, plus a generated answer inside the suggestion list. Privacy and legal teams worry about exposing sensitive searches, and today's system is shared and anonymous.

As the senior technical leader, how do you weigh personalised and generated suggestions against privacy, safety and cost, and what would you build first?

I would treat search history as sensitive: personal suggestions stay on the device or tied only to the signed-in user, people can clear or disable history, and one person's queries never feed anyone else's suggestions. Coarse signals such as language and region give much of the gain with little risk and stay cacheable, while per-user ranking defeats edge caching and multiplies origin cost. Generated answers add model latency and cost, so they are limited to complete queries or long prefixes, cached and filtered; sensitive areas get review rules and fast removal; and we build in steps behind A/B tests and privacy review, coarse personalisation first, then opt-in history.

Background to this question

Personalisation and generated answers both sound like obvious improvements, and both can go wrong in ways that hurt people: a suggestion that reveals a private health search to a family member on a shared laptop, or a generated answer that states something false about a real person. A senior leader is asked this to see how they weigh product gain against privacy, safety and cost, and how they turn a big ambition into safe steps. In this answer, we will look at what search history can expose, compare coarse and per-user personalisation, cost out generated answers, set rules for sensitive areas, and lay out what to build first.

1What Search History Can Expose

Search queries are some of the most personal data a product holds: symptoms, debts, relationships, job searches. Showing them back as suggestions is helpful for one person and harmful if anyone else sees them, which happens constantly on shared family computers, work screens being presented, and phones handed to a friend.

So the principles come first. Personal suggestions are kept on the device, or tied only to the signed-in user and shown only to them; never inferred from a device shared by several people. People can see, clear and turn off history easily. And one person's queries never feed into anyone else's suggestions: popularity-based suggestions come only from aggregated queries that passed distinct-user thresholds, so a rare personal query can never leak to others.

2Coarse Signals Before Per-User Ranking

Much of the benefit of personalisation comes from coarse signals: language, country or city-level region, perhaps device type. Someone in Chicago typing 'bea' probably wants local results, and that needs no history at all. These signals carry little privacy risk, and they keep caching working: there are a few hundred region and language combinations, so short prefixes per region can still be cached at the CDN.

Per-user ranking is different. If every response depends on the person, nothing can be shared at the edge, so the 85 percent or so of requests the CDN answered today all go to the origin. Origin load, and cost, rise several times, and each request needs a lookup of the user's profile within the same few-millisecond budget.

Personalisation options compared
OptionGainPrivacy riskEdge caching
Language and regionmuch of the benefitlowkept: a few hundred variants
On-device historyhigh for returning userslow if stored only locallykept: merged on the device
Server-side per-user rankinghighesthigh: history on serverslost: origin cost rises sharply

3The Cost of Generated Answers

A generated answer inside the suggestion list means calling a language model. Even a small model adds hundreds of milliseconds and a cost per call, while the whole suggestion budget is about 100 ms. At 20,000 requests per second, calling a model on every keystroke would cost far more than the rest of the system and could never meet the deadline.

So generated answers are limited to where they make sense: complete queries, or prefixes long enough to show clear intent, for example after the person pauses or the prefix exceeds a dozen characters. Answers for popular queries are generated ahead of time or cached, so most are served without a model call. And they pass through the same safety filters as suggestions, plus checks specific to generated text, because a model can state false things confidently.

4Sensitive Areas Need Rules

Suggestions shape what people search for: a suggestion that pairs a person's name with a crime, or a question about an election with a false claim, can spread a rumour to millions who never typed it. That is true for ordinary suggestions and even more for generated text.

So sensitive areas, such as people's names, health, elections, and tragedies in the news, need written review rules: categories where suggestions or generated answers are restricted, more conservative thresholds, or human review. And there must be a fast removal process that takes effect within minutes, with an audit trail, for both suggestions and generated answers.

5What I Would Build First

I would build in steps, each behind an A/B test and a privacy review. First, coarse personalisation by language and region, which gives a measurable gain at low risk and keeps the edge cache. Second, opt-in history suggestions, merged on the device or for signed-in users who turned it on, with clear controls. Third, generated answers for complete queries in a narrow set of safe topics, cached and filtered, with tight latency budgets.

Each step is judged by two kinds of metric: benefit, such as keystrokes saved and suggestion click-through, and harm, such as complaint rates, removal requests and privacy incidents. A step that improves the first while worsening the second does not ship.

Step throughStaged rollout
  1. Language and region signalsA/B test, keep edge caching
  2. Opt-in history, on device or signed-in onlyprivacy review, easy clear and disable
  3. Generated answers for complete queriessafe topics, cached, filtered
  4. Benefit up and harm flat?keystrokes saved vs complaint rate
    YesWiden the next stepNoStop and fix

4 steps in order. Play them, or step through them one at a time.

6Follow-up questions

How do you keep history suggestions private on a shared device?

Show them only to a signed-in user, mark them clearly as from history, let them be removed one by one, and offer to turn them off entirely. A device-level history on a shared computer should be off by default or easy to clear.

Can generated answers ever use one user's data?

Not in the shared suggestion list. Generated answers for suggestions should be built from public information and cached for everyone; anything using a person's own data belongs in a separate, signed-in experience with its own consent.

What would make you stop the project?

If privacy review finds the history design cannot prevent exposure on shared devices, or if generated answers cannot meet the latency and safety bar in testing. Shipping a reduced version, such as regional personalisation only, is a perfectly good outcome.

7Conclusion

In this answer, we weighed personalised and generated suggestions against privacy, safety and cost. Search history is sensitive, so personal suggestions stay on the device or with the signed-in user, can be cleared or disabled, and never feed others' suggestions. Coarse signals like language and region give much of the gain while keeping edge caching, whereas per-user ranking defeats it and multiplies origin cost. Generated answers are limited to complete queries or longer prefixes, cached and filtered; sensitive areas get review rules and fast removal; and we build in steps behind A/B tests and privacy review, measuring keystrokes saved against complaint rates.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start from the risk. Search history can expose sensitive queries on shared devices, so personal suggestions should stay on the device or be tied only to the signed-in user, people must be able to clear or disable history, and one person's queries must never feed into other people's suggestions; shared suggestions only come from aggregated queries above distinct-user thresholds.

Then, if they want more

Then cost: coarse signals like language and region give much of the gain with little privacy risk and stay cacheable, since there are only a few hundred variants, while per-user ranking defeats edge caching and multiplies origin cost.

Generated answers add model latency and cost on every call, which does not fit a 100 ms budget at 20,000 requests per second, so I would limit them to complete queries or longer prefixes, cache them, and apply the same safety filters.

Suggestions shape what people search for, so sensitive areas like people's names, health and elections need review rules and a fast removal process. What I would build first is coarse personalisation, then opt-in history, then generated answers for complete queries in safe topics, each behind A/B tests and privacy review, measuring keystrokes saved and complaint rates.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "As the senior technical leader, how do you weigh personalised and generated suggestions...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/b7e83db564/