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.
You are preparing a technical whitepaper for a public launch of a new hybrid-cloud architecture. How do you structure it for developers, architects and customers, and what editorial and peer-review steps do you run before publication?
Sample Answer
Direct answer. A whitepaper for three audiences works when it is layered: a self-contained front section for customers, a core architecture section for architects, and implementation detail for developers pushed into appendices and linked resources. Before publication it runs a claims audit, a technical review by the people who built the system, a security and legal check, and a copy edit, each with a named sign-off.
Terms. A hybrid-cloud architecture combines on-premises or private infrastructure with a public cloud. A whitepaper is a long-form, authoritative document that argues for an approach. An SME (subject matter expert) is the person who actually knows the area deeply.
More terms. Data residency means a legal or policy requirement that data stays in a specific country or region. A reference architecture is a proven blueprint others can copy. Trust and network boundaries are the lines on a diagram where one security zone ends and another begins. Shared responsibility spells out which security tasks the provider handles and which the customer handles. A context diagram shows the whole system as one box with the people and systems around it; a component diagram then opens the box. The benchmark method is how a performance test was set up, so others can repeat it.
Structure by audience
| Section | Reader | Content |
|---|---|---|
| Executive summary (1 page) | Customers, decision makers | The business problem, what the architecture achieves, who it suits, next step. No jargon. |
| Problem and requirements | All | Why hybrid: data residency, existing hardware, latency to on-premises systems. |
| Reference architecture | Architects | Diagrams (context, then components), the data flow, trust and network boundaries, failure modes, and design trade-offs including where the design is a poor fit. |
| Implementation guidance | Developers | Prerequisites, integration points, sample configuration, links to code and API docs (kept in a versioned repo, not pasted). |
| Security, compliance, operations | Architects, customers' security teams | Shared responsibility, encryption, identity, monitoring. |
| Appendix | Developers | Glossary, detailed configs, benchmark method. |
Each section opens with "who this is for and what you will get", so readers can skip safely.
What the one-page executive summary looks like (illustrative)
Run regulated workloads in the cloud without moving your data out of your data center. Companies in finance and healthcare often cannot move customer records off their own hardware, yet want cloud scale for peaks. This paper describes a hybrid design that keeps sensitive data on-premises and runs burst processing in the public cloud, connected by an encrypted link. It suits teams with an existing data center and a legal requirement to keep records in-country. It is a poor fit if you are starting from scratch with no on-premises systems. Next step: read the reference architecture (section 3) with your architect, or start the 30-minute walk-through in section 4.
It states the problem, the outcome, who it fits (and who it does not), and the next step in about 100 words, with no product jargon.
Editorial and peer-review steps, in order
- Audience and message brief signed by the product owner, before writing. Decide the one claim the paper defends.
- Outline review with two architects, cheap to change now.
- Technical review by SMEs who did not write it, checking every diagram against the real system.
- Claims audit. Every number, comparison and "supports X" statement gets a source or a reproducible method. Benchmarks state the setup. Anything unverifiable gets softened or cut.
- Security and legal/compliance review, including customer names, trademark use and regulatory statements.
- Developer walk-through: someone follows the implementation section on a clean environment.
- Copy edit against a style guide: terminology consistency, defined acronyms, accessible diagrams with alt text.
- Final gate: product owner and engineering lead sign off; the launch date does not override an open claims-audit finding.
- After publication: a named owner, a version number, and a review date, so it can be corrected when the product changes.
If time is short: steps 3 (SME technical review), 4 (claims audit) and 5 (security and legal check) are never cut, because errors there hurt customers or the company. Steps 2, 6 and 7 can be compressed; step 9 is cheap and should not be skipped.
Pitfalls. Marketing claims that engineering has never seen; one voice trying to serve all three audiences in every paragraph; a public paper that reveals unreleased roadmap or internal topology. If the schedule slips, I cut scope (fewer appendices), never the claims audit.
You own a production system, such as a data platform, a service or a model. Which written artifacts would you keep for it, who is each one for, and which ones would you deliberately choose not to write?
Sample Answer
Direct answer
I keep a small set of artifacts, each with a primary reader (a few serve several closely related readers), one owner and a refresh trigger, and I write only what the code and generated tools cannot already tell people. The code, schema or generated spec is the source of truth (the one authoritative place), so a document should add meaning to it, not copy it. I deliberately skip anything that duplicates a source of truth, narrates code line by line, or nobody will maintain.
Artifacts I would keep
| Artifact | Who it is for | Owner and refresh rhythm |
|---|---|---|
| README (repo front page) | New engineer, first 30 minutes | Team; update in the same change that alters setup |
| Architecture overview plus decision records (ADRs, short notes recording one decision, its context and alternatives) | Engineers, architects, future maintainers | Tech lead; overview reviewed quarterly, ADRs are append-only |
| Runbook (step-by-step response to each alert or failure) | On-call engineer at 3 a.m. | On-call rotation; updated after every incident that touched it |
| Data or schema catalog (for each table and column: its meaning, owner and freshness, where freshness means when the data was last updated) | Analysts, data scientists, downstream teams | Mostly generated by a script that reads the database's own metadata (table and column names, types); humans own the column meanings |
| Model card or dataset note (what it is for, training data, limits, known failure modes) | Data scientists, product owners, reviewers | Model owner; refreshed at each retrain (rebuilding the model on newer data) or release |
| Onboarding tutorial | A newcomer who must reach a working result | Whoever onboarded last; re-run at every new hire |
| Postmortems (written reviews of an incident: what happened, why, what changes) and a changelog (dated list of what changed in each release) | Incident responders now, and every future engineer later | Incident lead; release owner |
The onboarding tutorial is the artifact people skip. For a recommender system at scale, it walks a newcomer through training on a tiny sample, checking one evaluation number, and serving one recommendation locally, so they meet the whole pipeline in an afternoon. A sample outline: (1) install and load the 5,000-row sample; (2) train and see one evaluation number, such as accuracy on held-out data; (3) start the service locally and request one recommendation; (4) break something on purpose and read the log. Each step ends with the exact output to expect. Pipeline, schema and process documents pay for themselves by shrinking incidents: a runbook maps each alert to a first action, and a schema catalog stops two teams from reading the same column differently.
What I would deliberately not write
- Line-by-line code narration (the code and its tests say it, and comments drift).
- A hand-typed copy of anything generated (API specs, schemas, dependency lists).
- Meeting minutes as documentation. Keep the decision in an ADR instead.
- Speculative future designs for work nobody has committed to.
- A giant "everything wiki" page with no owner.
Worked example
For a nightly feature pipeline I would keep the README, one runbook with three entries (late data, schema change upstream, failed job), a generated catalog page, and one ADR on "batch not streaming". I would skip a per-function design doc. Each page carries an owner and a "last verified" date, and the runbook is reviewed after every incident.
Trade-offs and pitfalls
The test for each artifact is "who is hurt if this does not exist, and who will keep it true?" No answer to the second question means do not write it. Too few artifacts causes bus-factor risk (the number of people who could leave before nobody knows how something works, so knowledge lives in one head); too many produces stale pages that erode trust in all of them.
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.
You need to adapt an internal architecture document for publication on a customer-facing knowledge base. What do you remove, what do you add for the customer, and how do you restructure it?
Sample Answer
Direct answer
I would not redact the internal document in place. I would write a separate, customer-oriented version from it: remove anything internal, sensitive or uncommitted, add what a customer needs to make decisions and act safely, and restructure from the way we built it to the way they use it. Then security, legal and support review before publishing.
What I remove
- Internal identifiers: hostnames, account and project IDs, internal tool and team names, ticket links.
- Security-sensitive detail: network layout, credential handling, unpatched weaknesses, anything that helps an attacker.
- Unreleased plans, roadmap hints and cost or margin information.
- Internal debate and blame ("we chose X because team Y could not deliver Z"), TODOs and stale sections.
- Commitments the company has not agreed to make. If it is not in a contract or service-level agreement (SLA, a formal promise such as availability), do not imply it.
What I add
- Who this is for and what problem it solves, in the customer's vocabulary, with a short glossary.
- Prerequisites, supported configurations and clear limits (quotas, regions, unsupported cases).
- A responsibility split: what we operate versus what the customer owns.
- Simplified diagrams, worked steps for common tasks, troubleshooting, and where to get support.
- Version and "last reviewed" date, so readers can judge currency.
How I restructure
Internal architecture documents follow history: context, alternatives, decision, rollout. Customers follow tasks: overview, key concepts, how it works (at the level that affects them), what you configure, limits and behaviour on failure, FAQ, contact.
Worked example
Internal: "Requests hit gateway gw-prod-eu-2, which forwards to the billing service, whose Postgres cluster fails over in about a minute (see incident 4471)." Customer version: "Requests are served from the region you select. If a component fails, the service recovers automatically. During recovery, write requests may return errors, so retry with backoff (a wait that grows between attempts). Availability commitments are in your agreement." The hostname, incident reference and the unverified failover time are gone; the actionable retry advice is added.
Trade-offs and pitfalls
Redaction leaks. A find-and-replace pass misses names hidden in diagrams and comments, so build the public version from scratch. Two versions cost maintenance, so name the internal owner and update the public page when the architecture changes. Only be candid about limits you can honour.
You inherit one sprawling wiki page that mixes step-by-step instructions, background rationale and lookup tables. How do you decide how to split it, and what does each resulting page owe its reader?
Sample Answer
Direct answer
I split it by what the reader is trying to do when they arrive, not by the headings the original author chose. A reader in the middle of a task wants steps, a reader looking something up wants exact values, and a reader trying to understand wants reasons. Those three needs conflict on one page, so I separate them and link them. This is the idea behind the Diataxis documentation framework, which names four kinds of page: tutorial, how-to guide, reference and explanation.
How I decide where to cut
- Inventory: paste the page into a spreadsheet, one row per paragraph, table or list.
- Label each row by the question it answers:
- "How do I do X?" is a how-to guide.
- "What is the exact value or option?" is reference.
- "Why is it this way, and what else could we have done?" is explanation.
- "Teach me from zero by doing" is a tutorial (only if a beginner audience exists).
- Cut where the label changes and keep short pointers (one sentence "why", with a link) in place, so how-to readers are not stranded.
- Keep the old URL as a small hub linking to the new pages, because bookmarks and other pages point to it.
What each resulting page owes its reader
| Page | Owes the reader | Must not contain |
|---|---|---|
| How-to | A goal in the title, preconditions, numbered steps, a check that it worked | Long rationale or complete option lists |
| Reference | Complete, accurate, consistently structured, easy to scan | Opinions, procedures, tutorials |
| Explanation | Context, reasons, alternatives rejected, trade-offs | Step-by-step commands |
| Tutorial | A safe learning path with visible early wins | Every option, every edge case |
Worked example (illustrative)
Inherited page "Payments queue" with 9 blocks: (1) 6 numbered steps to replay a dead-letter queue (a holding queue for messages that failed), (2) a table of 14 config settings, (3) a paragraph on why the team chose at-least-once delivery (a message may arrive more than once but is never lost), (4) a table of error codes, (5) steps to add a new consumer, (6) history of a 2023 migration, (7) a table of queue names per environment, (8) a paragraph on retry design, (9) a checklist for adding a new queue.
Labels: how-to = blocks 1, 5, 9 (3 blocks); reference = blocks 2, 4, 7 (3 blocks); explanation = blocks 3, 6, 8 (3 blocks). Result: three pages of three blocks each, plus the old URL as a hub.
Trade-offs and pitfalls
- Over-splitting: a three-line rationale does not deserve its own page. Keep a sentence inside the how-to and link out when the reason is long.
- Splitting by heading instead of reader need, which reproduces the same tangle.
- Duplicated facts across pages: state a value once (in reference) and link to it.
- Do it in one reviewed change, with the owner of the system approving the labels, and ask a real user which page they would open for a given task.
Unlock Full Question Bank
Get access to all Technical Writing and Documentation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.