Technical Writing and Documentation Questions
The craft of producing durable, reference-quality written artifacts and keeping them accurate: READMEs and quick-start guides, design docs, RFCs and technical proposals, runbooks and deployment guides, model cards, datasheets and data dictionaries, bug reports and reproducible examples, postmortem write-ups, handoff documents, pull request descriptions, code comments, release notes, experiment reports, and knowledge-base articles. Covers structure and information design, writing for a specific audience and for future readers (including plain language and accessibility), templates and style standards, docs-as-code workflows with CI checks, testing of examples and snippets, documentation review and quality checks, versioning and freshness checks on the documents you own, keeping sensitive data out of docs, and measuring whether documentation works. Architecture decision records, API reference docs, PRDs and PR/FAQs, and live presentations are covered elsewhere.
Your organisation makes technical decisions asynchronously across several teams. Design the proposal template and review process. What must a proposal contain so it can be reviewed in one pass, who reviews what, and how do you time-box comments?
Sample Answer
Direct answer
I would use one proposal template that forces the author to state the decision requested, the deadline, the options, and a recommendation on the first screen, plus a fixed review process with named reviewers, labelled comments and a hard comment window. The goal is that a reviewer can understand the ask and respond in a single pass, without a meeting. I would time-box by how reversible the decision is: short windows for easy-to-undo choices, longer for costly ones.
What a proposal must contain (reviewable in one pass)
The first screen answers three questions: what am I being asked to decide, by when, and what happens if I say nothing?
- TL;DR (3-4 lines): the proposal and the recommendation.
- Decision requested and deadline: "Approve moving the three checkout services to the shared message queue. Comments close Fri 16 Oct, decision by Wed 21 Oct."
- Default if no objection: stated up front (see time-boxing).
- Context and problem: only what a reviewer from another team needs.
- Decision criteria: what "good" means, ranked. Example: operational cost, migration effort, delivery guarantees.
- Options and trade-offs: a table, one row per option, scored against the criteria, including "do nothing".
- Recommendation and why.
- Impact on other teams and reversibility: who must change something, and how hard it is to undo.
- Rollout plan and rollback.
- Explicit asks: per reviewer, one line each. "Payments: confirm the retry semantics (what happens when a failed message is delivered again) work for you. Security: review the access model in section 6."
Anything longer than needed goes in an appendix, so the one-pass body stays around two pages. A filled-in first screen looks like this (illustrative):
Proposal: move checkout services to the shared message queue
(a message queue is a shared waiting line where one service drops messages for another to pick up)
Decision requested: approve the migration of 3 checkout services
Comments close: Fri 16 Oct 17:00. Decision by: Wed 21 Oct, owner: Dana (platform)
If no objection by then: only a reversible pilot of one service proceeds (silence never approves the full migration, because it is costly to undo)
Recommendation: Option B, the shared queue (see options table)
Asks: Payments confirm retry semantics; Security review access model
Who reviews what
| Role | Responsibility |
|---|---|
| Author | Writes the proposal, answers comments, updates the doc |
| Decision owner (one named person, sometimes called the DRI, directly responsible individual) | Makes the call after the window closes |
| Required reviewers | Owners of systems the "impact" section lists. Each reviews only their explicit ask |
| Specialist reviewers (security, data, operations) | Pulled in by a trigger: personal data, new network path, on-call change |
| Optional readers | May comment, but no one waits for them |
Naming who reviews what stops the two failure modes of async review: everyone assuming someone else looked, and everyone commenting on everything.
Time-boxing the comments
- Reversible decisions (a "two-way door": you can walk back through it, so undoing is cheap): 2 business days, silence means approval.
- Costly or hard to reverse: 5 business days, and each required reviewer must reply explicitly (approve or object), because silence is not safe.
- Comments are labelled blocking (I object, with reason and a fix I would accept), non-blocking (suggestion) or question. Only blocking comments can stop the decision.
- Schedule for a 5-day window: post Monday, comments close Friday 17:00, author responds Monday, decision owner decides by Wednesday. If a blocking comment is unresolved at close, a single 30-minute call is held with only those two parties, then the owner decides and records the dissent.
Worked example
A platform team proposes a shared message queue. Monday the template is posted with the deadline. Payments answers on Tuesday with a blocking comment: "at-least-once delivery would double-charge; we need idempotency keys." In plain words: at-least-once delivery means the queue never loses a message but may hand over the same one twice, so a retried payment message could charge a customer twice. An idempotency key is a unique id attached to each charge, so the payment service recognises a repeat and ignores it. The author adds an idempotency section and marks it resolved. Security posts a non-blocking suggestion. Friday close: no blocking comments open. Wednesday the owner approves and files a short ADR (architecture decision record) linking the proposal.
Trade-offs and pitfalls
- Before posting, ask one teammate to read only the first screen and say what is being asked. If they cannot, the proposal is not ready.
- Silence-as-consent is efficient but wrong for irreversible changes. Match it to reversibility.
- Do not let deadlines slide: a comment window that quietly extends teaches teams that the deadline is optional.
- If an author gets contradictory blocking comments, the decision owner arbitrates. The process fails when nobody owns the call.
How would you tell whether your team's documentation is working? Which signals would you collect, how would you collect them, and which popular measure would you distrust?
Sample Answer
Direct answer
I would judge documentation by what happens after someone reads it: do they find what they need, act on it, and stop asking people? So I collect a few behavioural signals (search that fails, questions that repeat, ramp time for new hires), one or two opinion signals (a page rating and a short survey), and I would distrust raw page views, which go up when docs are good and also when they are confusing.
Signals and how to collect them
| Signal | What it tells you | How to collect |
|---|---|---|
| Search abandonment (searches with no click) divided by all searches | People cannot find the answer | Docs site search logs, weekly |
| "Avoidable ticket" share: support tickets or team-chat questions whose answer was already in the docs, divided by all tickets | Docs exist but are not found or not trusted | Tag tickets at closing; sample if volume is high |
| Time to first successful task for new hires (days to first merged PR, first deploy) | End-to-end usefulness | Onboarding tracker |
| Page feedback ("helpful: yes/no" plus a comment box) | Quality on that page, qualitatively | Widget on each page |
| Freshness: share of tier-1 pages (pages for the most critical services) verified in the last 90 days | Trustworthiness | Metadata "last verified" |
| Time to resolve incidents (MTTR, mean time to resolve) where a runbook (step-by-step procedure for an alert) existed versus not | Link to a real outcome | Incident tool, by tag |
MTTR by runbook tag, with made-up numbers: incidents with a runbook took 45, 30 and 60 minutes (mean 135/3 = 45); incidents without one took 90, 120 and 75 (mean 285/3 = 95). The 50-minute gap is a hint, not proof, since the incident types may differ.
Worked example (illustrative data, run it)
# Tiny, made-up docs-effectiveness data (illustrative). Each row is one week.
weeks = [
# (page_views, searches, searches_with_no_click, tickets, tickets_where_answer_was_in_docs)
(900, 200, 90, 40, 14),
(1500, 210, 60, 33, 9), # after rewriting the top pages
]
for i, (views, searches, no_click, tickets, in_docs) in enumerate(weeks, start=1):
print(f"week {i}: views={views}",
f"| search abandonment={no_click / searches:.0%}",
f"| avoidable tickets={in_docs / tickets:.0%} ({in_docs}/{tickets})")
# Onboarding signal: days from start date to first merged pull request
before = sorted([21, 24, 19, 30, 26])
after = sorted([14, 16, 12, 20, 15])
median = lambda xs: xs[len(xs) // 2]
print("median days to first merged PR:", median(before), "->", median(after))
Output:
week 1: views=900 | search abandonment=45% | avoidable tickets=35% (14/40)
week 2: views=1500 | search abandonment=29% | avoidable tickets=27% (9/33)
median days to first merged PR: 24 -> 15
Reading it: after rewriting the top pages, search abandonment fell from 45% (90 of 200 searches) to 29% (60 of 210), avoidable tickets from 35% (14 of 40) to 27% (9 of 33), and the median time to first merged PR from 24 to 15 days. Note that page views rose too; on their own, views could not have told us whether that was good.
Which popular measure I distrust: page views
Views measure traffic, not usefulness. A confusing page produces repeat visits and more views. A great page that answers in one glance also produces views but no follow-up. Other gameable ones are "number of pages written" and "words". Guard by pairing every activity measure with an outcome measure (views with search abandonment; docs written with avoidable tickets).
Quantitative versus qualitative KPIs (key performance indicators, the few numbers you track to judge success) and the response when one drops
Quantitative: the rates above. Qualitative: free-text feedback, and watching a new hire try a task. When a KPI drops, look at the pages contributing most, read the comments, run a 20-minute test with someone who has not seen the page, then fix and re-measure a few weeks later. Also link the improvement to an outcome such as incident time to resolve: compare incidents where the runbook was used with those where it was not.
Pitfalls
Small samples (say which counts are behind a percentage), changing two things at once, and treating a correlation as proof. Say the numbers back a claim about direction, not exact cause.
How do you write a deployment guide so a reader can confirm each step worked without asking the author? Give me a concrete example of the evidence you would build into one step.
Sample Answer
Direct answer
A deployment guide is a numbered procedure for putting a change into an environment. Every step should have four parts: the action, the expected observable result, a check the reader runs themselves, and what a failure looks like with the next move. The reader then confirms success from evidence on their own screen instead of trusting the author. The key design choice is to verify the outcome (what is now running), not merely that the command did not error.
Concrete example: one step with its evidence
Illustrative service orders-api on Kubernetes (a system that runs copies of a service, called pods):
STEP 4. Deploy version 1.8.2 to production.
Do:
kubectl -n orders set image deployment/orders-api api=registry.example.com/orders-api:1.8.2
Wait for it (a rollout is Kubernetes replacing the old pods with new ones, a few at a time):
kubectl -n orders rollout status deployment/orders-api --timeout=120s
Expected last line: deployment "orders-api" successfully rolled out
Prove it is the version you wanted (do not skip). The jsonpath expression below just prints the full image reference (registry, name and tag) of the first container in the deployment's pod template, that is, which version Kubernetes has been told to run:
kubectl -n orders get deployment orders-api -o jsonpath='{.spec.template.spec.containers[0].image}'
Expected output: registry.example.com/orders-api:1.8.2
Prove it serves traffic:
curl -fsSi https://orders.example.com/health
Expected: a first line of HTTP/2 200 (or HTTP/1.1 200 OK) and a body containing "status":"ok"
(-i prints the status line and headers; without it curl shows only the body. -f makes curl exit non-zero on a 4xx or 5xx response.)
If the wait ends with "error: timed out waiting for the condition" (the progress lines "Waiting for deployment ... rollout to finish" are printed during every normal rollout, so on their own they are not a failure):
run kubectl -n orders get pods and look for CrashLoopBackOff (a pod status meaning the container keeps starting, crashing and being restarted with growing delays), then go to
"Rollback" at the end of this guide. Do not continue to step 5.
Why this step works
- The second check compares the image the Deployment is now configured to run with the version in the step, which catches "the command succeeded but the wrong version was applied" (a typo or a stale tag). The rollout wait is what proves the old pods were actually replaced; to see what is running right now, read the pods' images with
kubectl -n orders get pods -o jsonpath='{.items[*].spec.containers[*].image}'. - Expected output is written out, so the reader can compare text instead of judging.
- The failure branch tells the reader where to go, so they do not improvise.
- The step is bounded (
--timeout=120s), so "still waiting" becomes a decision, not an endless hang.
Practices that generalise
- Preconditions before step 1: access, tool versions, the approved release number.
- One action per step, and outcome checks placed before the next action.
- Match on stable substrings in expected output, not banners with version numbers that change monthly.
- Make risky steps reversible: each has an undo, or an explicit note that it is irreversible and needs a second person.
- Test the guide: give it to someone who was not involved and do a dry run in staging. Each question they ask is a missing piece of evidence.
Another evidence example. For a database migration step, the check is a query against the migrations table that returns the latest applied migration name, compared with the name in the release notes.
Pitfalls
- "Verify the deployment succeeded" with no method.
- Expected output copied once and then wrong after a tool upgrade.
- Verifying only that a process is up, not that it does the job.
Create the checklist an author works through before marking an engineering document 'final' or 'production-ready'. Which items are hard gates rather than advice, and who signs off on each?
Sample Answer
Direct answer. Before an engineering document (a design doc, runbook or API guide) is marked "final", I run a short checklist and split it into hard gates (the document cannot be marked final while any fail, and a named person signs off) and advice (good practice, author's judgement).
Terms. A design doc explains how something will be built and why. A runbook is step-by-step instructions for handling a task or alert. A changelog is a dated list of what changed. A staging host is a practice copy of production where steps can be tried safely. An architecture board is the group that approves significant technical designs. Internal-only hostnames are server names that only resolve inside the company network and reveal how it is laid out.
Hard gates, with sign-off
| Gate | What "pass" means | Who signs off |
|---|---|---|
| Accuracy | Every command, diagram and number tested or checked against the real system | A technical reviewer who did not write it |
| Owner and review date | Named owner, version, next review date | The owning team lead |
| Audience and purpose stated | First paragraph says who it is for and what to do with it | Reviewer (reads only that paragraph) |
| Security and privacy | No secrets, credentials, customer data or internal-only hostnames in a public doc | Security reviewer, for anything external |
| Actionable steps verified | For a runbook, someone else ran it end to end on a clean environment | The on-call engineer or team who will use it |
| Approvals recorded | Required stakeholders (for example, architecture board or legal for a public doc) approved | The approver themselves, recorded in the doc |
| Findable | Published in the agreed location, linked from the index or README | Author |
Advice (not gates)
- Consistent terminology, and acronyms defined on first use.
- Diagrams have text alternatives and readable labels.
- Length trimmed, headings scannable, examples included.
- Changelog entry describing what changed.
Worked example. A runbook for a failing job: the author lists "restart the worker with systemctl restart worker". The reviewer runs it on a staging host and finds it needs sudo. That is an accuracy gate finding, so the document stays "draft" until fixed and re-tested, but the missing changelog line is only advice and does not block.
Worked example: the security and approval gates. The security reviewer runs a scan over the public draft for credentials and internal hostnames. On a draft runbook containing SSH to db01.corp.internal and export API_KEY=AKIAABCDEFGHIJKLMNOP (AKIA-prefixed strings look like cloud access key IDs), this command:
grep -nEi "AKIA[0-9A-Z]{16}|password|\.corp\.internal|(^|[^0-9])10\.[0-9]+\.[0-9]+\.[0-9]+" runbook.md
prints lines 2 and 3 and exits 0. The draft runbook.md is three lines: line 1 # Runbook: database failover, line 2 SSH to db01.corp.internal, line 3 export API_KEY=AKIAABCDEFGHIJKLMNOP; the fixed draft keeps line 1 and has SSH to <db-host> and export API_KEY=<from secrets manager> on lines 2 and 3. The first match means the gate fails. After the author replaces them with <db-host> and <from secrets manager>, the same command prints nothing and exits 1 (no match, gate passes). I ran both. The scan catches only patterns you thought of, so the reviewer still reads the doc. For the approvals gate, a public doc is not final until the document carries a line such as Approved: <name>, architecture board, 2026-09-14 (link to ticket), written by the approver, which is what makes a signature traceable later.
Why split it this way. If everything is a gate, people rubber-stamp; if nothing is, "final" means nothing. Gates are the items where being wrong causes harm (a broken procedure at 3am, a leaked secret).
Design a documentation audit for one engineering group to keep its diagrams, runbooks and API docs accurate. How often, who owns it, and what counts as passing?
Sample Answer
Direct answer
I would run a lightweight, mostly automated audit with three parts: continuous checks in CI, a sample-based human review by each owning team (cadence set per artifact type in the table below: each release for API docs, quarterly for tier-1 diagrams, at least every six months for tier-1 runbooks), and an annual full sweep of everything. Each artifact has a named owner, and "passing" means specific, testable criteria per artifact type, not "someone looked at it".
Scope and ownership
- An inventory first: a table listing every diagram, runbook (step-by-step instructions for handling a known operational task or alert) and API doc, with owner, tier (how critical the service is), and last-verified date.
- Owner: the team that owns the service owns its docs; one rotating "doc steward" per team runs the audit, and the engineering manager is accountable for the result. An unowned doc is archived or assigned, never left.
How often
| Artifact | Continuous (CI or alerts) | Human review |
|---|---|---|
| API docs | Contract test (an automated check that the real service behaves as the doc says): the OpenAPI spec (a machine-readable description of the API) is checked against the running service on each merge in CI (the automated checks that run on every change) | Each release |
| Diagrams | Generate from infrastructure-as-code (deployment config files that declare what is deployed) where possible; otherwise diff against deployed resources | Quarterly for tier-1 services, annually for the rest |
| Runbooks | Link and command checker; alert-to-runbook link present | Executed in a game day (a scheduled rehearsal where the team practises an incident and follows the runbooks for real) at least every six months for tier-1 |
What counts as passing (concrete criteria)
- API docs: spec validates, contract test green, and a new developer can make a first successful call from the docs alone (tested with someone who has not used it).
- Diagrams: every box and arrow on a tier-1 diagram matches deployed reality on a spot check; the diagram shows a "verified on" date.
- Runbooks: a person who did not write it completed the procedure in a rehearsal without asking for help, and every alert page links to one.
- Overall: no tier-1 artifact past its verification date, and every defect found has a ticket with an owner.
One artifact against its criteria (illustrative)
Runbook "restart the queue consumer", tier-1. Check 1: linked from the alert page? Yes. Check 2: a teammate who did not write it followed it in a game day. Step 3 said consumerctl restart, but the command had been renamed to consumerctl reload, and the teammate had to ask for help. Result: fail. Ticket opened for the owner, fix merged, teammate re-ran it unaided, verified date updated.
Worked example (illustrative)
Team of 12 services, about 40 artifacts. Q3 audit: the steward samples 10 artifacts, weighted by risk: 5 of the 6 tier-1 artifacts plus 5 of the other 34 (the stratified split described under pitfalls), rather than 10 picked evenly. Three fail: a diagram missing a queue added in July, a runbook whose restart command was renamed, and one API endpoint undocumented. Each becomes a ticket; the team closes them within two weeks and the audit is recorded in one summary line: "10 sampled, 3 failed, 3 fixed".
Trade-offs and pitfalls
- A pure-manual audit dies within two quarters; automate everything checkable and reserve people for judgement (does this runbook actually work).
- Do not measure "percent of docs updated": that rewards touching docs. Measure defects found by the audit and defects found in production incidents; the second should fall.
- Sampling is cheaper than reviewing everything, but stratify by risk (sample more from the critical group instead of picking evenly; for example, 5 of 6 tier-1 artifacts plus 5 of 34 others, rather than 10 chosen at random), otherwise you audit the easy, low-traffic docs.
Unlock Full Question Bank
Get access to all 45 Technical Writing and Documentation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.