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.
You are asked to design a documentation approach for a regulated industry where clients and external reviewers read some of it. How do you balance transparency against legal and regulatory protection, what access, redaction and audit controls do you need, and how do external reviewers request more information?
Sample Answer
Direct answer
Treat documentation as tiered by audience and sensitivity. Default to publishing what external readers need to verify your controls and use the product, and withhold or redact only what creates security, legal or competitive risk, with a written rule for each redaction. Make access, redaction and audit part of a controlled process, and give external reviewers a defined request path with response times, so transparency is deliberate rather than ad hoc.
Terms
- Privileged legal advice: communications with lawyers that the law protects from disclosure; releasing them can waive that protection.
- Shared-responsibility split: a statement of which security controls the client manages (for example their own users' passwords) and which you manage (for example the servers).
- Data-flow description: a diagram or text showing where data enters, moves and is stored.
- Role-based rights: access granted by job role (auditor, sales engineer) rather than person by person.
- Multi-factor authentication (MFA): a second proof of identity beyond a password, such as a code from a phone.
- Watermark: a visible label on each page (for example the recipient's name and date) that discourages leaking.
- Key rotation: periodically replacing an encryption key with a new one so a leaked key stops working.
Balancing transparency against protection
Decide by asking, per document: who is the audience, what harm follows disclosure (attack roadmap, exposed personal data, privileged legal advice, trade secrets), and what does the reader need in order to trust or use the system?
| Tier | Example content | Who sees it | Controls |
|---|---|---|---|
| Public | Product docs, high-level security overview | Anyone | Editorial review |
| Client-shared | Architecture overview, data-flow descriptions, shared-responsibility split | Named clients under contract | Access list; watermark |
| Reviewer-only | Control descriptions, test evidence, policies | Auditors and regulators under confidentiality | Time-limited access; access log |
| Internal restricted | Vulnerability details, incident forensics, legal analysis | Named staff | Need-to-know; no external release |
Legal and compliance sign off on tier definitions once; individual docs are then classified by owner, not re-litigated each time.
Controls needed
- Access: role-based rights, single sign-on with multi-factor authentication for external accounts, expiry dates on every external grant, per-document watermarks.
- Redaction: redact by rule (personal data, secrets, internal hostnames, customer names) using a repeatable, reviewed process, and keep the unredacted original in a restricted store. Redact the source into a separate published copy rather than hiding text in the original; hidden text can still be recovered.
- Audit: log who viewed, downloaded or shared which version and when; keep classification changes and redaction approvals as records; retain per your regulatory obligations.
How external reviewers request more
- A single request channel (a form or ticket queue), not email to individuals.
- Each request records requester, document or control asked about, and purpose.
- A triage owner in compliance classifies it: answer from an existing tier, produce a new redacted version, or decline with a reason.
- Published service targets, for example acknowledge within one business day and give a substantive answer within five business days (the number is a policy choice, agreed with clients); overdue items escalate to the compliance lead.
- If a request cannot be met in writing, offer a supervised review session (a controlled read-through) instead of sending the material.
Worked example
A bank client's assessor asks how backups are encrypted. The overview (client-shared tier) says data is encrypted at rest and lists key management at a high level. The assessor asks for the key rotation procedure. It sits in the reviewer-only tier: compliance grants time-limited, logged access under a confidentiality agreement, the redacted procedure omits hostnames and secrets (before: "Run rotate-key --host backup-eu-2.corp.internal using token AKIA..."; after: "Run rotate-key --host [REDACTED HOST] using the [REDACTED CREDENTIAL] issued by the key custodian"), so the steps stay readable while the sensitive values do not, and the access log records the download for later audit.
Trade-offs and pitfalls
- Over-restriction damages trust and slows sales and audits; over-disclosure creates an attack roadmap.
- Manual redaction by copy and paste leaks (metadata, comments, tracked changes); generate published copies through a pipeline and check them.
- Governance is only credible if exceptions are logged.
- Regulations differ by sector and country. Have counsel confirm which obligations apply rather than assuming, and tune the retention and disclosure rules accordingly.
A long chat thread ended in a decision, but the outcome and the follow-up actions are buried in it. How do you turn it into a durable decision note the team can find later, what does it always include, and where does it link back to the discussion?
Sample Answer
Direct answer
Write a short decision note (also called a decision record) that leads with the outcome, states why, lists the actions with owners and dates, and links back to the thread. Store it in a searchable, permanent place (a decisions folder or wiki page tied to the project), and post the link in the original thread so the chat points to the note.
Terms
- Decision record (ADR-style note): a short doc capturing one decision. ADR means architecture decision record, and the same shape works for product or team decisions.
- Owner: the one named person who ensures an action happens.
- Durable: findable and still understandable a year later.
What every decision note includes
- Title as a statement: "Use weekly releases for the mobile app", not "Release discussion".
- Status and date: proposed (under discussion), accepted (agreed and in force), or superseded (replaced by a newer decision; keep the old note, mark it superseded and link to its replacement).
- Decision: one or two sentences.
- Context: the problem and constraints at the time.
- Options considered and why each was rejected.
- Consequences and trade-offs accepted.
- Actions: each with owner and due date.
- Decision makers and who was consulted.
- Links: to the thread, related tickets and any superseded note.
- Review trigger: what would cause us to revisit.
Process
- Find the decision. Scroll to where the group converged, and check the last few messages for dissent.
- Draft the note from the thread within a day, while memory is fresh.
- Ask the decision maker to confirm it in the thread, which turns a summary into a shared record.
- Publish it and reply in the thread: "Decision recorded here: link."
- Copy actions into the ticket tracker with links back to the note.
Short note versus full ADR
The shape is the same; the difference is depth. The short note above (about 200 words) fits reversible or low-cost decisions: a tool choice for one team, a release cadence. Write a full ADR when the decision is hard or costly to reverse, affects several teams or systems, or needs sign-off: it adds a fuller options analysis with pros and cons for each option, cost and risk estimates, an explicit list of who was consulted and who approved, and it goes through a review (usually a pull request) before it is accepted. A rule of thumb: if undoing the decision would take more than a few weeks of work, or another team will build on it, use the full form.
Where it links back
Chat threads are hard to search and may expire, so the note quotes the essential reasoning itself and carries a permalink (a permanent direct link to the thread). If the chat tool deletes history, the note still stands. Export or screenshot the thread into an attachment when the retention policy is short.
Worked example (illustrative)
Thread: 60 messages about whether the data team should migrate a dashboard tool. Note:
- Title: "Keep the existing dashboard tool through Q4."
- Decision: postpone migration.
- Context: two analysts on leave, migration needs about six weeks of effort, and the current tool meets the compliance need.
- Options: migrate now, migrate in Q1, keep. Rejected "now" for capacity.
- Actions: Sam to add a migration estimate to the Q1 plan by the 15th.
- Review trigger: if license renewal price rises materially.
- Thread link.
Someone who joins in six months reads 200 words instead of 60 messages.
Trade-offs and pitfalls
- Summaries written by one person can misrepresent, so get confirmation.
- Recording what was chosen but not why leaves the same debate to recur.
- Keep it short. A long note that nobody reads is another buried thread.
You are introducing decision records for product and analytics decisions made under uncertainty. Draft the template you would give the team, then explain how you would get people to actually fill it in and revisit it later rather than let it rot.
Sample Answer
Direct answer
For decisions made under uncertainty, the record must capture more than the choice: it needs the assumptions, the evidence and its limits, how we will know if we were right (metrics and a date), the fallback, and who disagreed and why. I would give the team a one-page template like the one below, embed it in the places where work already happens (sprint planning, handoffs, roadmap reviews), and keep it alive with review dates that create tickets automatically.
Structured elaboration
The template
Two terms first. A pull request (PR) is a proposed change to a shared file or code that teammates comment on before it is accepted; on a non-engineering team, read it as the comment thread on a proposed change. Validate by means the date by which we check the success metric.
Decision: <one-sentence decision> ID / Date / Status (proposed | accepted | reversed | superseded)
Owner (decides): <name> Consulted: <names> Informed: <names>
Context: <what problem, what deadline, what we know>
Options considered: <option, why not chosen> (at least two)
Assumptions: A1 <statement> confidence H/M/L how we will test it
Evidence: <data links, with a note on quality and sample size>
Success metrics: <metric, threshold, when we check> ("validate by")
Risks and fallback: <what would make us reverse, and the plan B>
Dissent log: <who disagreed, their argument, link to the pull request or thread, how it was resolved>
Review date: <date> Outcome (filled later): <what actually happened>
Fields that matter most under uncertainty
- Assumptions with confidence: the decision is only as good as the beliefs under it. Marking low-confidence ones tells reviewers what to test first.
- Metrics to validate with a date and threshold: without a threshold nobody can say we were wrong.
- Stakeholders and fallbacks: who is affected and what we do if it fails, decided before we are emotionally committed.
- Dissent log (conflict log): recording disagreement is not a blame device. It preserves the reasoning of people who lost the argument, links to their pull request comments or thread, and lets a later reviewer see if the dissent was proven right.
Getting people to fill it in
- Proportionality: only for decisions above a threshold (irreversible, costly, or affecting other teams). A 15-minute fill-in, pre-populated from the ticket.
- Put it in the workflow: sprint planning asks "does this story depend on an open decision record?", and handoffs link the record so the next team inherits the assumptions.
- Owner writes it, others comment: ownership is one name.
- Visible use: open the record in the retro when the review date comes up. If people see records being used, they write them.
Keeping it from rotting
- The review date creates a calendar ticket for the owner. On review they set outcome: confirmed, partly, reversed.
- Retention: keep records permanently (small), mark them superseded rather than deleting, and each quarter review the aggregated outcomes to learn which kinds of assumptions tend to fail.
Worked example
Decision: cap the free plan at 3 projects.
- Assumption A1 (confidence: medium): users who reach a second project are more likely to upgrade. Test: compare upgrade rates for users with 1 vs 2+ projects in the event logs.
- Metric: at least 20% of new free users create a second project within 30 days (illustrative threshold). Check date: 45 days after launch.
- Fallback: the second-project metric is only a necessary precondition for the cap to bind (a cap of 3 only affects users who reach a third project), so on its own it cannot show the cap is binding. If fewer than 20% of new free users reach a second project, a cap of 3 is not what limits them, so raising it to 5 would change nothing and the cap should be dropped or replaced by a different upgrade lever. Raise the cap to 5 only if the dissent proves right, that is, if churn among students rises past the agreed threshold. Add a second metric so A1 is actually tested: upgrade rate of users with 2+ projects versus 1 project after 45 days. Also track the share of new free users who reach the 3-project limit, since that is the group the cap actually affects.
- Dissent: support lead argued the cap would raise churn among students. Logged with a link to their comment. At the review, the outcome field records what churn actually did, so the dissent is judged fairly.
Filled in for this example:
Decision: Cap the free plan at 3 projects. ID: D-014 / 2026-03-10 / accepted
Owner (decides): Head of Product Consulted: support lead, growth analyst Informed: sales, engineering
Context: Free users cost hosting money; no data on what drives upgrades.
Options considered: No cap (rejected: cost); cap at 1 (rejected: blocks evaluation).
Assumptions: A1 users who reach a second project upgrade more; confidence M; test: upgrade rate 1 vs 2+ projects
Evidence: Event log query, 3 months, about 4,000 users (small for paid conversion)
Success metrics: >= 20% of new free users create a second project within 30 days; upgrade rate 2+ vs 1 project at 45 days; validate by 2026-04-24
Risks and fallback: If <20% reach a 2nd project the cap is not binding: drop it. If student churn rises past threshold: raise cap to 5
Dissent log: Support lead: cap raises student churn. Link: comment thread on the proposal. Resolved: accepted with churn tracked.
Review date: 2026-04-24 Outcome: (filled at review)
Trade-offs and pitfalls
- A template that is too long dies. If people skip fields, cut them.
- A record with no threshold looks rigorous but cannot be wrong. Insist on a number and a date.
- Do not use the dissent log to relitigate. It records reasoning, not a running argument.
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.
Your team keeps re-debating choices made months ago because nobody can say why they were made. What should a decision record capture, which decisions deserve one and which do not, and where would you keep them so people find them?
Sample Answer
Direct answer
A decision record (in software often called an ADR, architecture decision record) is a short note written when a decision is made. It should capture the context, the options considered, the choice, the reasoning and the consequences, so a person six months later can see why without asking. Not every decision needs one: write records for decisions that are hard to reverse, costly, cross-team, surprising or likely to be asked about again. Keep them next to the work (in the repository for engineering choices, linked from the ticket or roadmap for product choices) with one index page.
Structured elaboration
What to capture (one page is plenty)
- Title and date, and status (proposed, accepted, superseded by record N).
- Decision owner and who was consulted.
- Context: the problem, the constraints and the deadline pressure at the time.
- Options considered, with the reason each was rejected. This is the part that stops re-debate, because people who propose the rejected option can see it was already weighed.
- Decision in one sentence.
- Consequences: what gets easier, what gets harder, and what we accept.
- Revisit trigger: the condition that would reopen it ("if traffic exceeds X" or "at the next vendor renewal").
Which decisions deserve one
A quick test: would a new team member reasonably ask "why did we do it this way?" in six months, and would the answer be lost if the two people who decided left? Yes means write it. Typical yes: choosing a database (the reasons live in a few heads and are costly to redo), an API style such as REST versus GraphQL (every client depends on it), build vs buy (the cost, lock-in and staffing reasoning is rarely written elsewhere), a data retention policy (the legal reasoning matters when someone later wants to delete or keep data), a metric definition (dashboards and targets hang on it). Typical no: variable naming, a reversible feature flag default, an option you can change in an afternoon.
Where to keep them
- Engineering decisions: a
docs/decisions/folder in the repository, numbered, reviewed in a pull request (PR). They travel with the code and are found by anyone who opens the repo. - Product or cross-team decisions: a decision-log space in the wiki, linked from the ticket and the roadmap item.
- One index (a table of number, title, status, date) so people can scan.
Worked example
Decision record 007: Store order data in PostgreSQL, not DynamoDB
Status: Accepted (2026-03-04)
Owner: Backend lead. Consulted: data team, finance.
Context: Finance needs ad hoc joins across orders and refunds.
Team has strong SQL experience, no DynamoDB experience.
Options: (a) PostgreSQL. (b) DynamoDB: rejected, ad hoc joins would need extra pipelines.
Decision: Use PostgreSQL with read replicas.
Consequences: Easier reporting. Harder to scale writes past one primary.
Revisit if: Sustained write load outgrows a single primary.
In plain words: PostgreSQL is a relational database queried with SQL, good at joins across tables. DynamoDB is a managed key-value database, fast for simple lookups but awkward for ad hoc joins. A read replica is an extra copy of the database that only serves read queries, which spreads reporting load. A single primary is the one main copy that accepts all writes, so if writes outgrow one machine, the design is harder to scale.
When someone asks in July "why not DynamoDB?", the answer is one link, and the debate is only reopened if the revisit trigger has actually fired.
Trade-offs and pitfalls
- Records that are too long are never written. Cap at one page and accept rough drafts.
- Do not edit an old record to change its meaning. Write a new one that supersedes it.
- Writing records after the fact from memory loses the rejected options, so write them as part of making the decision.
- A record folder nobody links to is invisible: link to it from the README (the repo's front-page file) and the PR template.
Unlock Full Question Bank
Get access to all 11 Documentation and Knowledge Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.