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.
What is an assumption log, and what makes an entry in one actually useful? How is it different from a risk log or a decision log, and when do you update it?
Sample Answer
Direct answer
An assumption log is a living list of the things a project is treating as true without having proved them. A useful entry is specific, falsifiable (written so a test could prove it wrong), owned, backed by stated evidence, and has a date by which it must be validated or dropped. It differs from a risk log (possible future events) and a decision log (choices already made). You update it continuously, in the routines the team already runs, and at every milestone.
Structured elaboration
What makes an entry useful
- Statement: concrete and testable. Bad: "users want reports". Good: "at least half of active admins export a report weekly".
- Owner: the one person who will chase the answer.
- Evidence and confidence: what we know now (source, sample size) and how sure we are (high / medium / low).
- Impact if wrong: what breaks, so we test the expensive ones first. For a data analyst: "if exports are not CSV, the ingestion script must be rewritten, about two weeks of rework". For a business analyst: "if the sponsor has not approved the budget, the scope in the requirements document is void".
- Validation method and date (expiry): how we will test it and when it must be settled. An untested assumption without a date is just an opinion.
- Status: open, validated, invalidated, retired. Plus a link to the decisions that depend on it.
How it differs from a risk log and a decision log
| Log | What it holds | Shape of an entry | Question it answers |
|---|---|---|---|
| Assumption log | Beliefs treated as true | Statement, evidence, validate-by date | "What are we relying on?" |
| Risk log | Possible bad future events | Event, probability, impact, mitigation | "What could go wrong?" |
| Decision log | Choices made and why | Decision, options, rationale | "What did we choose?" |
They connect: an assumption is an input to a decision, and an invalidated assumption usually becomes a risk or an issue.
When to update
- In daily scrum (the short daily team check-in), ask one question: did anything block or change an assumption?
- In sprint planning (the meeting where the team picks the work for the next one to two weeks), scan open assumptions and pull validation work in as tickets.
- When new evidence arrives, and at milestones (agreed checkpoints such as "design approved") or phase gates (formal go/no-go reviews between project stages). Surfacing it through the project lifecycle reduces ambiguity, because people stop building on unstated beliefs.
- On the expiry date, when the owner must validate, extend with a reason, or invalidate.
After a discovery call (an early meeting with a customer or stakeholder to learn their needs)
Capture assumptions and open questions the same day. For each, assign an owner (the person best placed to find the answer, not the note taker) and a date. Flag any item that touches contracts, data privacy or regulation for legal review, and any item that would change scope for escalation to the sponsor (the executive who funds the project and must approve scope changes). Example: "the customer assumes we will migrate 10 years of history" is escalated because it could double the effort.
Worked example
| ID | Statement | Owner | Evidence, confidence | Validate by | Status |
|---|---|---|---|---|---|
| A1 | Customer exports arrive as CSV, under 100 MB | Priya | One sample file, low | 10 Oct | open |
| A2 | Legal permits storing EU data in the US region | Legal contact | None yet, low. Flag: legal review | 8 Oct | open |
| A3 | Payments API supports refunds by order ID | Sam | Read API docs, high | 3 Oct | validated |
If A1 is invalidated (a customer sends 2 GB files), it becomes a risk entry ("upload pipeline may fail on large files") and triggers a decision record about chunked uploads.
Trade-offs and pitfalls
- Vague entries ("system will be fast") cannot be tested. Rewrite until a test exists.
- Logs die when nobody owns them: name one owner for the log itself and review it in planning.
- Do not merge it into the risk log. Mixing them loses the "how do we validate this?" discipline.
Business stakeholders rely on production reports and dashboards that change without notice. Create a change and versioning policy for them: how changes are classified, who approves what, how you roll back, how breaking changes are communicated, and how long old versions are kept.
Sample Answer
Direct answer
Treat each production report as a versioned product with an owner. Classify a change by its effect on consumers (cosmetic, compatible, breaking), route approvals by class, keep every change reversible, announce breaking changes ahead of time with a comparison to the old numbers, and retain the previous version for a defined period.
Terms
- Versioning: giving each release an identifier (for example v2.1) so people can tell which one they saw.
- Breaking change: one that alters what a number means or removes something people rely on.
- Rollback: restoring the previous working version.
- Deprecation: announcing something will be removed, with a date.
- Semantic versioning: MAJOR.MINOR.PATCH numbering; MAJOR for breaking changes.
- Changelog: a dated, running list of every change to a report and why it was made.
- Staging copy: a test copy of the report that runs on real data but that no business user reads.
- Validation total: a headline number (for example total revenue) that you compare between old and new versions before release.
- Metric owner: the business person who defines what a number means (for example Finance owns "revenue").
1. Classify changes
| Class | Examples | Version bump | Approval |
|---|---|---|---|
| Patch: cosmetic or bug fix that restores the intended number | Label fix, colour change, fixing a wrong join (a bug: the report was not computing what its definition already says) | x.y.Z | Report owner plus peer review |
| Minor: additive and compatible | New filter, new chart, new column | x.Y.0 | Report owner plus reviewer, notice to users |
| Major: changes meaning or removes | Redefining "active customer", changing a filter default, dropping a metric | X.0.0 | Owner plus business metric owner (for example Finance) plus data owner; 2+ weeks notice |
| A change that shifts any published number by redefinition is Major even if the screen looks identical. |
The Patch versus Major boundary: ask whether the definition changed. A Patch correction makes the number match the definition everyone already agreed on (the join was wrong, so the number was wrong), so it is announced in the changelog with the before and after values. A Major change alters the definition itself, so the same customers now count differently, and that needs the metric owner's approval and advance notice.
2. Approvals (RACI style)
The analyst who builds is responsible, the report owner is accountable, the metric owner in the business is consulted and must sign off on definition changes (consulted here means their agreement is required, not just their opinion), and affected consumers are informed. (RACI: responsible, accountable, consulted, informed.) Every class gets a second-analyst review: for Patch it is a quick peer check, and for Minor and Major it is a full review before release.
3. Rollback
- Keep the prior version deployable and the query in source control, so rollback means redeploying it, not rebuilding.
- Test in a staging copy against production data before release, and compare key totals side by side.
- Roll back if a validation total differs from the expected one, or if consumers report a wrong number. Decide the rollback owner in advance.
4. Communicating breaking changes
Announce at least two weeks ahead through the channel people actually read (email plus a banner in the dashboard), state what changes, why, when, and show old versus new values for the last three periods. Include a link to the changelog and a named contact. Run old and new versions in parallel where possible.
5. Retention of old versions
Keep the previous Major version accessible read-only for a fixed period (for example 90 days, or through the next month-end financial close, when Finance finalizes its numbers), keep definitions and change logs indefinitely, and archive the rest. The exact period should follow audit and legal requirements.
Worked example (illustrative)
The team wants "active customer" to mean a purchase within 28 days instead of 30. That alters historical counts, so it is Major (v3.0.0). Finance's metric owner approves. Users get notice with a comparison table built from the same customers (the numbers below are illustrative):
Period Old (30 days) New (28 days) Change
Last qtr 12,400 11,900 -500 (about -4%)
Prior qtr 11,800 11,350 -450 (about -4%)
The count drops because customers whose last purchase was 29 or 30 days ago no longer qualify, and the table shows that the drop is a definition effect, not a business decline. v2 remains available for 90 days, and if the Finance total looks wrong at the first close, the team redeploys v2.
Trade-offs and pitfalls
- Heavy approvals push people to silent edits, so keep patch changes light and auditable.
- Communicating only the change and not the numeric impact leads to trust loss.
- Retention costs storage and confusion, so label old versions clearly.
- What would change my call: for self-serve exploratory dashboards, a lighter policy is appropriate. Apply the full one to reports that feed decisions or external reporting.
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.
The company uses several BI tools and the same metric gives different numbers depending on where you look. How would you design the documentation and governance so metric definitions stay consistent: central registry versus federated docs, roles and approvals, change control, enforcement, and how authors are onboarded?
Sample Answer
Direct answer
Use one central, versioned metric registry as the single source of truth for definitions of shared, company-level metrics (revenue, active user, churn), and let teams keep federated docs only for local, team-specific metrics that reference the registry. Every shared metric has a named owner, a change process with approval and notice, and enforcement through code: dashboards pull the definition (or the query) from the registry, so a number in a BI (business intelligence, dashboard and reporting) tool cannot silently diverge.
Why the numbers differ (worked example)
Say 100 orders total 1,000 in item price, plus 100 tax, and 50 was refunded. Three tools report "revenue":
- Tool A: sum of amounts charged, including tax = 1,100.
- Tool B: item price only, ignoring refunds = 1,000.
- Tool C: item price minus refunds = 950.
All three are "correct" for their own unwritten definition. The registry entry writes one down:
metric: net_revenue
definition: sum(item_price) - sum(refunds), excluding tax
grain: daily, in UTC (sales dated by order date; refunds dated by refund date since version 3)
owner: Finance Analytics
source table: orders_curated
version: 3 (changed 2026-08-01: refunds now booked at refund date)
Grain means the level of detail a metric is calculated at (here, one number per day). With that entry, only 950 is "net revenue"; the others need different names (gross_charged, item_sales). The 950 example assumes the orders and the refund fall in the same period, so version 2 and version 3 agree there. They differ when a refund lands in a later period:
Order placed 2026-07-30 for 200; refunded 2026-08-03 for 50
Version 2 (refund booked on order date): July = 150, August = 0
Version 3 (refund booked on refund date): July = 200, August = -50
The total is 150 either way, but July's published number changes from 150 to 200, which is why this needed a version bump.
Central versus federated
| Central registry | Federated docs | |
|---|---|---|
| Consistency | High | Low, drifts |
| Speed of change | Slower (review) | Fast |
| Ownership | Clear per metric | Blurred |
| Best for | Shared company metrics | Team-local metrics |
Recommendation: central for the small set of tier-1 shared metrics (the handful that drive company decisions or external reporting) (typically tens, not thousands); federated for the rest, with a rule that a local metric must not reuse a registered name.
Roles and approvals
- Metric owner (one accountable person per metric, from the business function that lives with the number).
- Data steward group (a small cross-team panel of people responsible for data quality and definitions) approves new tier-1 metrics and definition changes.
- Authors propose changes by pull request against the registry file, so history is the audit trail.
- Approval: owner plus one steward for a change; consumers listed in the entry get notified.
Change control
A definition change bumps the version, states the date it takes effect, and states impact ("historical values restated", meaning past numbers are recalculated under the new rule, or "old value frozen", meaning past numbers stay as originally published and only new periods use the new rule). Dashboards show the version. Breaking changes need a notice window before rollout, and a side-by-side period where old and new values appear together. Example: announce on 2026-07-15, show both columns in July, and switch on 2026-08-01, with a note that July net revenue moves from 150 to 200 in the example above.
Enforcement
- Prefer a semantic layer (a shared layer that holds each metric's definition, so it is written once) or governed metric definition (one place where the metric's SQL lives and BI tools query it) so tools consume rather than re-implement.
- CI check: fail if a dashboard defines a field named like a registered metric outside the registry.
- A weekly reconciliation job compares each tool's reported value for tier-1 metrics against the registry query and alerts on mismatch above a tolerance (the difference you accept, for example 0.5%). Example: the registry says 950 and Tool A shows 941; the gap is 9 / 950 = about 0.95%, above 0.5%, so an alert names the tool and the metric.
Onboarding authors
A one-page contribution guide, a template entry, a 30-minute walkthrough, and a first task of documenting one existing metric under a steward's review. Authors learn the naming rule (no silent reuse) early.
Pitfalls
A registry with no enforcement becomes another stale wiki. A registry too large to steward gets bypassed; keep tier-1 small. What would change this: if only one BI tool remains, its native governed layer may make a separate registry unnecessary.
Design a searchable tagging and metadata model for an internal documentation portal that must serve thousands of datasets and hundreds of engineers. What fields would be mandatory, how would you keep the tag vocabulary from sprawling, and how would tags connect to team ownership and access controls?
Sample Answer
Direct answer
Give every doc or dataset entry a small mandatory core (type, owning team, lifecycle state, sensitivity), a controlled vocabulary for tags with a named steward, and make ownership and access derive from the metadata rather than being maintained separately. Search then works on structured fields first, free-text tags second.
Terms
- Metadata: data about a document (who owns it, what kind it is).
- Tag: a label attached to a doc for search and filtering.
- Controlled vocabulary: an approved list of tag values, changed only through a process.
- Steward: the person responsible for a domain's tags and doc quality.
- ACL (access control list): a rule saying which people or groups may see an item.
- Lifecycle state: draft, active, deprecated or archived.
- Sensitivity: how restricted the content is (public, internal, restricted).
- Model card: a short document describing a machine-learning model's purpose, data and limits.
- Facets: fixed filter categories in search, such as type or domain, shown as checkboxes or dropdowns.
- Alias: an alternative name that points at an approved tag, so "customers" finds docs tagged "customer".
- Recall (in search): how many of the relevant docs a search actually returns. Inconsistent tags hide relevant docs, so recall drops.
- Lineage: the record of where a dataset came from and which datasets or reports are built from it.
- Refresh cadence: how often a dataset is updated (hourly, daily). Schema: the list of columns and their types.
- Identity system: the company directory of people and groups (for example the single sign-on provider).
Mandatory fields (eight rows below, covering eleven individual fields: id, title, type, owner_team, steward, lifecycle, sensitivity, domain, last_reviewed, review_every_days, links; auto-fill most so people complete them)
| Field | Purpose |
|---|---|
| id, title | Stable identity and display |
| type (dataset, runbook, dashboard, model_card, architecture_doc) | Selects the template and extra fields |
| owner_team and steward | Who answers questions and reviews |
| lifecycle | Hides deprecated content from default search |
| sensitivity | Drives access and audit. Policy: restricted content must be reviewed at least every 90 days, stricter than the owner's normal window |
| domain (one value from a fixed list) | Primary browse path |
| last_reviewed and review_every_days | Freshness checks |
| links (code, upstream and downstream datasets) | Connects docs to reality |
Type-specific fields sit on top: a dataset adds schema and refresh cadence, a runbook adds the system and severity it covers, a model card adds training data and intended use.
Typed artifact example (sample record)
{
"id": "doc-4127",
"type": "runbook",
"title": "Orders pipeline: recovering a stuck nightly load",
"owner_team": "data-platform",
"steward": "priya.n",
"lifecycle": "active",
"sensitivity": "internal",
"domain": "orders",
"last_reviewed": "2026-03-02",
"review_every_days": 90,
"links": {"code": "repo://data-platform/orders-etl", "dataset": "ds-orders-daily"}
}
Finding stale or sensitive docs (runnable, with output)
The query computes days since last review (julianday is SQLite's date-to-number function, so subtracting two of them gives elapsed days) and compares it to each doc's window. On the sample date, 2026-09-28: doc-4127 was reviewed 210 days ago against a 90-day window, doc-2001 331 days ago against 180, doc-3310 100 days against 180 (fine), doc-2050 75 days against 180 (fine).
import sqlite3
db = sqlite3.connect(":memory:")
db.execute("""create table docs(id text, type text, owner_team text, lifecycle text,
sensitivity text, last_reviewed text, review_every_days int)""")
db.executemany("insert into docs values (?,?,?,?,?,?,?)", [
("doc-4127", "runbook", "data-platform", "active", "internal", "2026-03-02", 90),
("doc-2001", "dataset", "payments", "active", "restricted", "2025-11-01", 180),
("doc-3310", "model_card", "ml-platform", "active", "internal", "2026-06-20", 180),
("doc-1500", "dashboard", "bi", "deprecated", "internal", "2025-01-10", 90),
("doc-2050", "dataset", "payments", "active", "restricted", "2026-07-15", 180),
])
TODAY = "2026-09-28"
print("stale:")
for row in db.execute("""select id, type, owner_team from docs
where lifecycle = 'active'
and julianday(?) - julianday(last_reviewed) > review_every_days
order by id""", (TODAY,)):
print(row)
print("restricted and not reviewed in 90 days:")
for row in db.execute("""select id, type, owner_team from docs
where sensitivity = 'restricted'
and julianday(?) - julianday(last_reviewed) > 90
order by id""", (TODAY,)):
print(row)
Output:
stale:
('doc-2001', 'dataset', 'payments')
('doc-4127', 'runbook', 'data-platform')
restricted and not reviewed in 90 days:
('doc-2001', 'dataset', 'payments')
The runbook is flagged because 210 days is over its 90-day window, while the dataset entry doc-2001 is flagged twice: 331 days is past its 180-day window and, being restricted, past the stricter 90-day sensitive review rule. doc-2050 is also restricted but only 75 days old, so it is not flagged.
Stopping tag sprawl
- Two tiers: fixed facets (type, domain, lifecycle, sensitivity are dropdowns, never free text) and a governed tag list that a steward approves.
- Request flow: propose a tag, the steward checks for a synonym, then adds it as an alias (for example "customers" maps to "customer") instead of a new tag.
- Quarterly cleanup: merge tags used by fewer than a handful of docs, and report the tag count.
- Autocomplete from the approved list at authoring time prevents most duplicates.
Connecting tags to ownership and access
- owner_team maps to a group in the identity system, so ownership is reassigned in one place when teams reorganize.
- Sensitivity maps to an access rule: internal means all engineers, restricted means the owner group plus named approvers. Search filters results by the viewer's permissions, so restricted titles never leak in results.
- Access changes are logged, and a restricted doc without an owner is blocked from publication.
Trade-offs and pitfalls
- Too many mandatory fields means blanks or junk values. Auto-fill what you can (owner from the repo, type from the template).
- Free-text tags feel flexible but destroy recall in a year.
- Sensitivity set by the author alone is unreliable, so spot-check it and default new data-related pages to "internal".
- What would change my call: with only a few dozen docs a folder structure is enough.
Unlock Full Question Bank
Get access to all 9 Documentation and Knowledge Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.