Documentation and Knowledge Management Questions
Governing how teams capture and keep knowledge usable: documentation standards, ownership models (centralized, federated or dedicated team) and review cadences, incentives and culture change that get engineers to document, decision records and assumption logs, post-project reviews that preserve lessons, and knowledge-base strategy so organizational knowledge stays findable and attributed. Includes building or buying a knowledge platform, migration and consolidation plans, taxonomy, tagging and search quality, linking docs to code, capturing tacit expertise into the knowledge base, detecting and remediating stale docs across a documentation estate, and versioning and change policies for shared reports and metric definitions. Covers the governance and lifecycle of a body of documentation, not the craft of writing any single document.
Teams complain that searching the documentation returns irrelevant results. How would you diagnose the problem: what data would you collect, what are the most likely root causes, and how would you improve relevance over time?
Sample Answer
Direct answer
Treat "irrelevant results" as a measurable problem. First collect data on what people search for and what happens next, then sort failures into a few root causes (nothing relevant exists, it exists but is not found, it ranks too low, or it is stale or duplicated), fix the cheapest and most frequent cause first, and keep improving with a small recurring review of failed searches.
Terms
- Rank: a result's position in the list (rank 1 is the top result).
- Index: the searchable copy of your content that the search tool actually looks through; a page missing from it can never be found.
- Synonym list / alias metadata: a table telling search that "k8s" means "Kubernetes", or a field on a page listing other names people use for it.
- Boost: a setting that pushes matching pages up (or down) in the ranking, for example boosting recently updated pages.
Data to collect
- Search logs: query text, number of results, which result was clicked and at what rank, time on page after click, and whether the user searched again immediately (a reformulation).
- Zero-result rate: share of queries returning nothing.
- Abandonment: share of searches that showed results but ended with no click. Zero-result searches also end with no click, but count them under the zero-result rate so the two are not mixed.
- Content facts: last-updated date, owner, page views, duplicates per topic.
- Qualitative: ask ten engineers for the last thing they could not find, and watch them search.
Worked example (small, made-up log of 20 queries)
| Result of the search | Count | Share |
|---|---|---|
| Clicked a result at rank 1 to 3 | 9 | 45% |
| Clicked a result at rank 4 or lower | 3 | 15% |
| Zero results | 4 | 20% |
| Results shown but no click | 4 | 20% |
Rates: zero-result rate is 4 of 20 = 20%; abandonment (results shown, no click) is 4 of 20 = 20%. Together, 8 of 20 searches (40%) ended without a click, which is why the two are tracked separately.
Now trace every failure to a cause. The 4 zero-result queries: "k8s runbook" and "oncall rota" (the pages say "Kubernetes" and "on-call schedule"), a vocabulary mismatch that synonyms fix, plus "vpn setup for contractors" and "ssl cert renewal steps", which match nothing because no such page exists (missing content). The 4 no-click searches: two show a stale 2021 page first (stale content), and two show pages titled "Notes 3" and "Infra misc" that do not say what they cover (weak titles). The 3 low-rank clicks are ranking problems: the right page exists but sits at rank 4 or lower.
Tally: vocabulary 2, missing content 2, stale content 2, weak titles 2, ranking 3. That accounts for all 11 failed searches (9 succeeded). Eight of the 11 are content or vocabulary problems that are cheap to fix without touching ranking, so fix those first.
Most likely root causes and fixes
The first four rows are the core causes; the last two are checks to make once those are clean.
| Root cause | Sign in the data | Fix |
|---|---|---|
| Vocabulary mismatch (abbreviations, team jargon) | Zero results; users retry with other words | Synonym list, alias metadata |
| Poor ranking (old page above the good one) | Clicks at low rank; reformulations | Boost fresh or high-traffic or owned pages; demote stale ones |
| Duplicated or stale content | Several pages per topic; old dates | Merge, archive, add banners and review dates |
| Missing content | Zero or no-click on real needs | Write it; feed the top failed queries to owners |
| Weak titles and structure | Right page exists but low rank | Titles that say the question answered; headings |
| Index gaps (some spaces not indexed, permissions hiding pages) | Known page never appears | Fix the index and permission handling |
Improving relevance over time
- Build a test set of the 30 to 50 most common queries with the page that should win, and run it after every change to search settings; the measure is the share where the right page is in the top three.
- Review the top failed queries weekly for the first month, then monthly, and assign each to an owner.
- Add ranking signals gradually (freshness, popularity, ownership), one at a time, re-running the test set to see which helped.
- Keyword ranking formulas (such as BM25, a standard scoring method that favors pages containing rare query words) are often enough; add semantic (meaning-based) search only if failures persist after cleanup.
Pitfalls
- Tuning ranking before cleaning content wastes effort: no ranking can surface a page that is missing or wrong.
- Using click-through alone misleads: a click on a bad page counts as a success unless you also check whether the user searched again.
- What would change my order of work: if the zero-result rate dominates, fix vocabulary and gaps before touching ranking.
Engineers at your company rarely write documentation unless someone forces them to. Design an incentive program that encourages meaningful contributions. How would you judge quality, stop people from gaming it, and pilot it before a wide rollout?
Sample Answer
Direct answer
Pay for outcomes that readers experience (docs that get used, kept current and that reduce questions), not for volume. I would build a small program with three parts: visible recognition and career credit rather than cash, a quality signal that comes from readers and from freshness, and guardrails against gaming. Then pilot it with two or three teams for a quarter before scaling.
Terms
- Gaming: producing what the metric rewards without the value it was meant to stand for (for example, splitting one page into ten).
- Docs-as-code: writing docs as files in the code repository, reviewed like code.
- Stale doc: one whose owner has not confirmed it is correct within an agreed period.
- Pilot: a limited trial with a comparison baseline.
- README: the front-page file of a code repository that says what it is and how to run it.
- Swag: small branded goodies such as t-shirts or stickers.
- Freshness: whether the doc has been confirmed correct recently (for example within 90 days).
- Extrinsic rewards crowd out pride: paying or prizing people for something they would otherwise do because they care can make them care less, so the reward replaces the pride instead of adding to it.
Why people do not write docs today (diagnose first)
Usually it is not laziness: writing is invisible in reviews, there is no time budgeted, docs rot so writing feels wasted, and the payoff goes to someone else. An incentive on top of a broken environment fails, so the program pairs incentives with removing friction (templates, docs in the repo, docs time in sprint planning).
Incentives (ranked by what I would try first)
- Career credit: documentation impact counts in promotion and performance write-ups, with managers trained to ask about it.
- Recognition: a monthly "most useful doc" chosen by readers, plus named owners on high-traffic pages.
- Protected time: a small documentation allowance per sprint.
- Small rewards (swag, conference budget) as a garnish. Avoid cash per page.
Judging quality without counting words
| Signal | What it tells you | How it is gamed |
|---|---|---|
| Reader "was this helpful" votes and comments | Usefulness | Friends vote for friends; cap votes per reader per author and weight by distinct teams |
| Usage (views, links from code or tickets) | Whether people find it | Self-viewing; exclude the author's team |
| Freshness (owner confirmed within 90 days, code changed with the doc) | Whether it is current | Rubber-stamp "reviewed" clicks; audit a random sample by asking a peer to follow the doc |
| Reduction in repeat questions on that topic | Real impact | Slow to measure; use as a trend, not a score |
| A monthly sample of ten docs is scored by a peer using a short rubric (accurate, complete for the task, clear next step; 0 to 2 points each, so 0 to 6) and this sample outranks the automated numbers. |
Worked check on one page: last confirmed 2026-07-01, so on 2026-09-28 it is 89 days old and passes the 90-day rule. A page confirmed 2026-06-20 is 100 days old and is flagged stale. The first page has 14 helpful votes from 5 different teams and a peer score of 5 of 6, so it is a strong result. A page with 14 votes all from the author's own team and a peer score of 2 of 6 is not, however popular it looks.
Anti-gaming guardrails
- Never reward raw count or length.
- Credit revisions and deletions of duplicates as much as new pages.
- Rate limits on credited edits per person and per page, and a minimum age before the same page earns credit again.
- Publish the rules so gaming is visible, and review outliers by hand.
Pilot design
Pick two teams that volunteer plus one comparison team without the program. Baselines before start: share of services with a current README, and median time for a new hire to make a first change (measure, don't guess). Run for one quarter, then interview participants and read the sampled docs. Success means participants' freshness and reader ratings rise versus the comparison team without a jump in trivial pages. Illustrative numbers: at baseline 6 of 20 services (30 percent) have a current README and a new hire's median time to a first change is 12 days. After a quarter, the pilot teams are at 14 of 20 (70 percent) and 7 days while the comparison team went from 30 to 35 percent. The gap, not the raw rise, is the signal. Adjust rules, then extend in waves.
Worked example (illustrative)
A team splits one 3-page setup guide into nine tiny pages to raise its count. Under the program the credit came from reader-rated usefulness and freshness, so nine thin pages earn less, the peer sample flags fragmentation, and the reviewer merges them, crediting the merge.
Trade-offs and pitfalls
- Extrinsic rewards can crowd out pride in the work, so keep rewards modest and tied to helping others.
- Heavy scoring becomes a job of its own. Keep to three or four signals.
- What would change my call: in a very small team, direct manager expectations beat a formal program.
What documentation standards would you set for an engineering team, and how would you get people to follow them without turning it into bureaucracy? Cover how the standards are kept up to date as the work changes.
Sample Answer
Direct answer
Set a small, tiered minimum standard (a few artifacts every service, pipeline or model must have), keep the docs in the same repository as the code and change them in the same pull request (PR), and enforce the standard with automation and defaults rather than meetings and sign-offs. Freshness comes from ownership plus a review date on every doc, not from goodwill. The test of "not bureaucracy" is that following the standard is the easiest path and the checks are run by tooling.
Structured elaboration
1. The standard itself: small and tiered
- Tier 1 (anything on-call, customer-facing or shared): a README (the front-page file of a repo: what it is, who owns it, how to run it, where to ask), a runbook (step-by-step instructions for responding to an alert or failure), and a decision record (a short note recording what was chosen, the options rejected and why) for hard-to-reverse choices.
- Tier 2 (internal tools, experiments): README only.
- ML and data assets: a model card (short document stating what a model is for, its training data, known limits and owner) or a dataset datasheet, plus a data dictionary (what each column means, its unit and source). For analytics projects add required metadata: owner, refresh schedule, source tables and last-reviewed date.
- One template per artifact, pre-filled, with the required fields marked. Templates are what stop inconsistent deliverables and the rework that follows.
- The ML and data items are optional add-ons for teams that ship models or datasets, not part of the core README, runbook and decision record set.
A minimal template skeleton, so the required fields are concrete (the CI check simply fails if a heading is missing):
README.md RUNBOOK.md decision record
# <service> # Alert: <alert name> # Decision: <statement>
Owner: <team> Severity: <P1-P3> Status: proposed | accepted | superseded
Last reviewed: <d> Symptoms: <what you see> Context / Options / Consequences
## What it does Diagnosis: <steps> Owner and review date
## Run locally Fix or rollback: <steps>
## Ask for help Escalate to: <who>
2. Governance as one framework (owners, templates, review cadence, tooling, incentives)
- Templates: the pre-filled skeleton above is the only format accepted for each artifact, stored in one template repository, so the CI check has a fixed set of required headings to test.
- Owners: every doc names a team owner (a CODEOWNERS file, which routes PR review to the named owners, plus a service catalog entry, meaning a central list of every service with its owner, docs link and on-call contact). An unowned doc is treated as deletable.
- Review cadence: each doc carries a
last_revieweddate. Tier 1 is reviewed at least every 6 months, and also whenever the system changes shape. - Tooling: docs-as-code (markdown in the repo, reviewed like code), a CI (continuous integration) job that checks required headings, broken links and stale dates, and one searchable site built from all repos.
- Incentives: doc work counts in performance and promotion criteria, authors are credited by name, and "a new hire followed the README and it worked" is celebrated. Punishment alone breeds checkbox docs.
3. Keeping standards current as work changes
- A PR template asks "docs updated or not needed, and why". Changes to alerts, APIs or schemas require touching the linked doc (a CI rule can map code paths to doc paths).
- A bot opens a ticket on the owner when
last_reviewedpasses its limit. Two missed cycles moves the doc toarchivedrather than leaving a confident but wrong page. - The standard itself is versioned and reviewed twice a year by a small docs working group (a few volunteers from different teams who own the standard), and any rule that nobody can justify with an incident or onboarding pain is removed.
4. Measuring compliance and handling non-compliance
- Coverage = Tier 1 assets with all required docs / all Tier 1 assets. Freshness = docs reviewed inside their window / docs required.
- Escalation ladder: bot nudge, ticket on the owner, visible on the team's monthly ops review, and only for Tier 1 a launch-readiness blocker, meaning the service cannot go live until its Tier 1 docs exist. Nothing else is gated.
Worked example
One team owns 15 Tier 1 services. The dashboard shows 12 have a README and runbook, and 9 of those are inside the 180-day review window.
coverage = 12 / 15 = 80%
freshness = 9 / 15 = 60% (9 of the 15 required sets are fresh)
The team lead sees two numbers and six named services to fix (three with no docs, three with docs past their review window), not a lecture. The runbook and decision record carry the same Last reviewed field as the README, so the CI stale-date check and the 6-month cadence apply to every Tier 1 artifact, not only the README. Note freshness is computed against the required 15, so a missing doc cannot hide behind a fresh one.
Rollout at scale (500 engineers, ten teams, two regions), phased over 12 months
- Months 1-2: pilot with two willing teams, build templates and the CI check, fix what the pilot hates.
- Months 3-5: add four teams, stand up the single search site and the service catalog, run a 2-hour training per engineer (500 x 2 hours = 1,000 engineer-hours, which is 25 engineer-weeks at 40 hours, a small fraction of the organization's yearly capacity).
- Months 6-9: remaining four teams; migrate only Tier 1 legacy docs (archive the rest, do not migrate everything).
- Months 10-12: switch on the launch-readiness gate for Tier 1, publish the first compliance report, review the standard.
- Rough cost, in people rather than invented dollars: a docs platform owner and a tooling engineer (about 2 full-time), plus one steward per team (the team's named docs champion who helps peers and chases reviews) at about 10% time (ten teams is about 1 full-time equivalent). Two regions: one site, async PR review so no time zone waits on another, and one regional steward each.
Trade-offs and pitfalls
- Too many required docs produces empty template filling. Cut the list until each item has a story of an incident or onboarding delay it prevents.
- Central mandate without team stewards makes the standard feel imposed. Stewards give teams a peer to ask.
- Gating everything on compliance encourages gaming (docs written to satisfy a linter). Gate only Tier 1 and spot-check quality by having a new joiner try the README.
- What would change my approach: for a 15-person team I would skip the catalog and the phases and adopt README, runbook and a PR checkbox in one week.
Your company just merged with another engineering organization and now has conflicting decision records, duplicate runbooks and inconsistent documentation formats. How do you unify them: what happens to conflicting decisions, how do you preserve history, and how do you tell engineers where the authoritative version lives?
Sample Answer
Direct answer
Do not pick a winner org and delete the other. Run a time-boxed reconciliation: inventory both sets, sort every conflict into a small number of types, let a named decider resolve true conflicts through a new decision record that supersedes (never erases) the old ones, archive the old material read-only with redirects, and make one index the only place anyone is told to look. Start with the documents that hurt during an incident or a deploy, not the ones that are merely ugly.
Terms used below
- ADR (architecture decision record): a short dated document recording one decision, the options considered, and why one won. It has a status such as Proposed, Accepted or Superseded.
- Runbook: step-by-step instructions for an operational task, such as failing over a database.
- Authoritative version: the one copy a reader is entitled to trust and follow.
- Terraform: a tool that describes cloud infrastructure (servers, networks, databases) in code files. Ansible: a tool that configures existing servers from scripts.
- Jenkins and GitHub Actions: two competing services that automatically build and test code when it changes.
- OAuth: a standard way for one service to be granted limited access to another without sharing passwords, either on a user's behalf or, for service-to-service authentication as in the table below, as a short-lived access token issued to the calling service itself.
- Tier-1 service: a service whose outage pages people or stops revenue (tier 2 matters but degrades gracefully; tier 3 is internal or low impact).
- Staging: a safe copy of the production environment used to test changes.
- History-preserving import: copying a repository so every past change and author is kept, not just the latest files.
- Redirect: an old web address automatically forwarding to the new page. Stub: a tiny placeholder page that only points to the new location.
- Sunset date: the date after which something stops being supported. Carve-out: a deliberate exception to a new rule. Claim window: a fixed period in which owners may say "this page is still needed" before it is archived.
1. Inventory and triage (weeks 1-2)
List every ADR, runbook and standards page from both orgs with owner, service, last-verified date and format. Then classify each conflict:
| Type | Example | Resolution |
|---|---|---|
| Compatible | Both orgs chose OAuth for service auth | Keep one, link the other as "also decided" |
| Different scope | Org A: Terraform for cloud, Org B: Ansible for on-prem hosts | Keep both, record the boundary in one ADR |
| True conflict | Org A: Jenkins for CI (continuous integration, automated build and test), Org B: GitHub Actions | One decider picks, new ADR supersedes |
| Obsolete | Either org's decision about a system being retired | Mark Superseded or Archived, no debate |
In practice you expect many conflicts to fall into the first, second or fourth type (this is an expectation, not a measured figure; your own inventory will show the real split). Spend the debating effort only on true conflicts.
2. What happens to conflicting decisions
- Each true conflict gets a reconciliation ADR with one named decider (the architect or engineering lead who owns the affected system, not a committee vote). It lists both original ADRs, the criteria (cost, migration effort, who runs it, security posture), the choice and a migration deadline.
- The losing ADR is not deleted. Its status becomes Superseded by M-0004 and it keeps its text. Reason: engineers will ask "why did the other org do it that way?" for years, and the reasoning is often still valid for a corner case.
- If a decision cannot be settled quickly, record it as Both accepted, sunset date TBD with an owner. An explicit temporary state beats silent divergence.
- Rule for the interim: whichever ADR governs new work is the reconciliation ADR; existing systems follow the old one until migrated.
3. Preserving history
- Import each org's docs repo into a read-only archive keeping full version history (for git repos, a history-preserving import rather than copy-paste).
- Keep original numbers and add an org prefix:
A-0007andB-0007cannot collide, and old links in code comments and tickets still resolve. New reconciliation ADRs written after the merger use the prefixM-(M for merged company), for exampleM-0004. - Old wiki URLs get a redirect to the new page, or, if the page was archived, to the archive copy with a banner.
4. Runbook consolidation
Pair runbooks by service. For each pair, keep the one that was most recently exercised or used in a real incident, then merge in the steps the other had that the kept runbook lacks, in a single new template. Where two runbooks disagree on a command, test it in staging before choosing. Tier-1 services (paging, revenue path) first.
5. Telling engineers where the truth lives
- One documentation portal or repo with a front-page index: "Authoritative docs for service X".
- Every page shows a status banner (Authoritative, Superseded, Archived) and a last-verified date.
- Every old page becomes a stub: "Moved. Do not follow this copy." with a link.
- Pager alerts and CODEOWNERS files (a repo file that maps paths to owning teams) point to the new runbook URLs. This matters more than any announcement, because engineers follow the link in the alert.
- Announce once, with the top ten most-searched pages, then rely on redirects.
Worked example
Org A's A-0012 says "Postgres on managed cloud". Org B's B-0031 says "self-hosted MySQL on VMs". The merged company has two production databases for one product. The database architect decides: Postgres managed for all new services, MySQL kept for two legacy services until a migration ticket closes. Result: new ADR M-0004 (Accepted), B-0031 marked Superseded by M-0004 (legacy carve-out until migration), and the two db-failover runbooks merged into one Postgres runbook plus a short MySQL appendix that carries a removal date.
Trade-offs and pitfalls
- Reformatting everything to one template up front is a trap: it burns months on pages nobody reads. Migrate tier-1 now and everything else "on touch" or by archiving after a claim window.
- Letting both orgs keep their own portal "for now" is how the duplicates return.
- A committee that seeks consensus stalls; one decider with a written rationale is faster and leaves a record.
- What would change my call: if one org's systems are being retired within months, archive that org's docs instead of reconciling them.
Your organization is growing fast and new hires take too long to become productive, while senior engineers are constantly interrupted with questions. How would you scale documentation and knowledge capture so ramp-up speeds up without adding load on seniors?
Sample Answer
Direct answer
Treat the interruptions as data. Log what new hires ask seniors for two weeks, write the docs for the questions that repeat, route every future question through "answer in the doc, then link it", and build a structured first-30-days path. Bound the remaining interruptions with office hours and a buddy rotation so seniors are asked on a schedule instead of continuously. Write only what gets asked twice, otherwise the docs become a second job nobody has time for.
Terms
- Runbook: step-by-step instructions for an operational task, such as deploying or restarting a service.
- README: the front-page file of a code repository that explains what it is and how to run it.
- Stub: a short placeholder page with a title and a link, to be filled in later.
- Shelfware: documentation written once, never used, and left to rot.
- Buddy rotation: a schedule assigning a different teammate each week as the person a new hire asks first.
- Office hours: fixed times when seniors are available for questions, so they are not interrupted at other times.
- Single-point-of-knowledge risk: only one person understands something, so their absence stops the team.
- Time to first merged change: days from a new hire's start until their first change is accepted into the shared code or content.
Step 1: Measure the question stream (weeks 1-2)
Ask new hires to drop every question they take to a senior into one tracker (a channel or form) with a topic tag. Suppose 40 questions arrive in two weeks and they cluster like this:
| Topic | Count |
|---|---|
| Local environment setup | 9 |
| Deploy and release process | 6 |
| Which service owns what | 5 |
| Getting access and permissions | 3 |
| How to read our alerts | 3 |
| Everything else (one-offs) | 14 |
The top five topics account for 26 of 40 questions, which is 65 percent. Five good pages remove most of the repeat load. That is where to start, and it also tells you which pages to leave unwritten.
Step 2: Capture as a by-product of work
- Answer once, in the doc. When a senior answers a repeat question, they paste the answer into the page (or the new hire does) and reply with the link. The cost is two minutes and it is paid once.
- New hires write the setup guide. They have fresh eyes and find the gaps; a senior only reviews. The page is marked "last verified by (name), (date)".
- Definition of done includes docs. The pull request (PR) template asks "does this change how someone runs, deploys or debugs this service? Update the README or runbook."
- Short recorded walk-throughs for architecture, always with a written summary above the video, because video alone is not searchable.
Step 3: Structure the ramp-up
A checklist for day 1, week 1 and day 30 with links to the pages above and a first small task (a safe first pull request in week one). A filled-in version:
Day 1: accounts requested; join team channel; meet your buddy
Week 1: run the service locally (setup page); read "Which service owns what";
make one small safe change (fix a wrong line in a doc) and get it merged
Day 30: shadow one deploy; shadow one on-call shift; write or fix one page you found unclear
The measure of success is a new hire's time to first merged change, plus questions per new hire trending down.
Step 4: Protect seniors without going silent
- Two weekly office-hour slots and a rotating "ask first" buddy (not always the same senior).
- Rule for the team channel: search the docs, then ask; the answerer links the page, and if none exists, creates a stub.
Variant: a business intelligence (BI) team with single-point-of-knowledge risk
A BI team often has one analyst who alone understands a dashboard's logic. The same idea applies with a specific structure:
- Content structure: a metric dictionary page per metric (definition, source tables, refresh schedule, known caveats) and a page per dashboard (purpose, audience, inputs).
- Example metric dictionary entry (weekly active users):
Metric: Weekly active users (WAU)
Definition: distinct user IDs with at least one login or project action in the last 7 days (UTC)
Source: events.user_activity, excluding internal test accounts
Refresh: daily at 06:00 UTC
Owner/backup: A. Analyst / B. Analyst
Caveats: API-only usage not counted; definition changed 2026-03-01, earlier values not comparable
- Ownership: every page has a named owner and a named backup owner, so no page has one person only.
- Metadata: owner, backup, last-verified date, data source, refresh cadence, audience. This makes stale or orphaned pages queryable.
- Maintenance cadence: a quarterly review where each owner re-verifies their pages, plus a trigger whenever a source table changes.
Trade-offs and pitfalls
- Writing "complete" documentation up front produces shelfware. Demand-driven docs are smaller and used.
- If seniors are also the reviewers of every doc, you moved the load, not removed it. Let the second-most-experienced person review.
- Pages with no owner and no verified date go stale in a few months. Ownership is the design, not a nice-to-have.
- What would change my call: for a very small team (under about five people), pairing and a short README beat any portal.
Unlock Full Question Bank
Get access to all 12 Documentation and Knowledge Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.