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.
A client reports inconsistent and translated guides across regions, and misconfigurations followed in production. How do you harmonise the documentation and make it translation-ready?
Sample Answer
Direct answer
Two separate failures are hiding here. The regional guides drifted because there is no single source, and the misconfigurations happened because translation touched things that must never change (config keys, commands, values). I would fix both: make one canonical source, mark which parts are translatable and which are literal, translate through a controlled process, and add a check that catches altered code in any language. I would start with the install and configuration pages, since those caused production harm.
1. One source of truth
- Keep a single canonical language (say English). Regional guides are translations of it, plus small region overlays for facts that truly differ (endpoints, data-residency notes; data residency means rules about which country or region data must be stored in), kept as structured data rather than as copied prose.
- Each translated page records
source_commitin its front matter (the header block at the top of a page). If the source moves past that commit, CI (continuous integration, the automatic checks run on every proposed change) marks the page stale and shows a banner: "This translation is behind the English version." Readers then know when not to trust it.
2. Make the source translation-ready
- Short sentences, one term per concept, a glossary (termbase: an approved list of terms and their required translations) that translators must follow. No idioms or jokes, no sentence fragments glued together in code, no text inside screenshots (use text labels or alt text).
- Say units and formats explicitly, and let locale settings (the regional formatting rules for dates and numbers) render them.
- Never translate literals: code blocks, commands, flags, config keys, values, file paths, UI labels quoted exactly as they appear. Mark them so translation tools skip them.
3. Controlled translation
Use a translation memory (a database of past translated segments that is reused so wording stays consistent), machine translation for a first pass, and a human reviewer for high-risk pages (install, security, configuration). Tier languages (rank them into groups) by user base: fully reviewed for the largest, machine-translated with a visible label for the rest.
4. The check that would have prevented the incident
import re
FENCE = re.compile(r"```[a-z]*\n(.*?)```", re.S)
def code_blocks(markdown):
return FENCE.findall(markdown)
def compare(source, translation):
problems = []
src, tr = code_blocks(source), code_blocks(translation)
if len(src) != len(tr):
problems.append(f"block count differs: {len(src)} vs {len(tr)}")
for i, (a, b) in enumerate(zip(src, tr), start=1):
if a != b:
problems.append(f"code block {i} was altered in translation")
return problems
english = "Set the region:\n```yaml\nregion: eu-west\nretries: 3\n```\nThen restart.\n"
spanish = "Configure la region:\n```yaml\nregion: eu-west\nreintentos: 3\n```\nLuego reinicie.\n"
for problem in compare(english, spanish):
print(problem)
print("checked", len(code_blocks(english)), "block(s)")
It prints code block 1 was altered in translation and checked 1 block(s). How the checker works: FENCE finds text between triple-backtick markers, and re.S lets . match line breaks so a multi-line block is captured whole. zip pairs the Nth English block with the Nth translated block, and enumerate numbers them so the message can say which block changed.
The Spanish page translated the key retries to reintentos. The application would silently ignore an unknown key and fall back to its default, which is exactly how a "followed the guide" misconfiguration reaches production. CI now blocks the merge.
What an overlay looks like
# overlays/eu.yaml (only the facts that differ from the English source)
api_endpoint: https://api.eu.example.com
data_residency_note: Data is stored only in EU data centres.
The page text references these values instead of copying them, so a fix in English reaches every region.
Worked example
A client has US, EU and APAC guides. Week 1: diff each against English, list mismatches, and choose English as canonical. Week 2: add overlays for the three real regional differences and front matter to every page. Week 3: turn on the code-block check and stale banners. Later: add remaining languages by tier.
Trade-offs
- Full human review of every language is expensive. Tiering by risk and user base spends it where errors hurt.
- Machine translation is fast but can alter meaning; label it and never let it touch literals.
- What would change my call: with two regions and a few dozen pages, skip the translation memory and rely on the glossary and the code-block check.
Your team is choosing between a wiki, Markdown in the repository, and a note-taking workspace for its technical documentation. How do you decide?
Sample Answer
Direct answer
I would decide by content type and audience, and I would commit to one canonical home per type (the single place where the official version of that kind of document lives). For an engineering team: Markdown in the repository for anything tied to code (READMEs, runbooks, API docs, decision records), a wiki for broad shared reference that non-engineers also edit, and a note-taking workspace (a flexible page-and-notebook app, for example Notion or a shared OneNote) only for scratch and meeting notes that are allowed to expire. If I must pick a single tool for a mostly-engineer team, it is the repository. If most authors rarely touch Git, it is the wiki.
How I decide: criteria first, tools second
- How tightly the content is tied to code. If the truth changes when the code changes, the doc should be reviewed in the same pull request (a proposed change reviewed before it merges).
- Who writes and who reads. Engineers only, or product, support, sales too?
- Review and history. Do you need approvals and an audit trail (a permanent record of who changed what and when; regulated work, security docs)?
- Search and discoverability across everything the company knows.
- Upkeep and lock-in: who runs the tool, and can you export the content? Lock-in means being stuck with a tool because your pages are hard to move out.
Scoring them (illustrative weights and scores, run in Python)
Score each option from 1 (poor) to 5 (strong) on five criteria, then weight the criteria for the team you actually have:
CRITERIA = ["stays accurate with code", "non-engineers can edit", "review and history", "search", "low upkeep"]
SCORES = {"repo Markdown": [5, 2, 5, 3, 3], "wiki": [2, 5, 2, 4, 4], "notes workspace": [1, 5, 1, 5, 4]}
def totals(weights):
return {name: sum(w * s for w, s in zip(weights, sc)) for name, sc in SCORES.items()}
print("engineer-heavy team, weights 3/2/2/2/1:", totals([3, 2, 2, 2, 1]))
print("mixed audience, weights 1/4/1/3/1:", totals([1, 4, 1, 3, 1]))
Output:
engineer-heavy team, weights 3/2/2/2/1: {'repo Markdown': 38, 'wiki': 32, 'notes workspace': 29}
mixed audience, weights 1/4/1/3/1: {'repo Markdown': 30, 'wiki': 40, 'notes workspace': 41}
Why I scored it this way (my reasoning, challenge it): repo Markdown gets 5 on accuracy and on review and history because the docs change in the same pull request as the code and Git keeps every version; 2 on non-engineer editing because Git is a barrier; 3 on search because search is per repository unless you build a portal; 3 on upkeep because someone maintains the site build. The wiki gets 5 on non-engineer editing (a browser editor), 4 on search and upkeep (hosted, cross-space search), and 2 on accuracy and history because nothing forces an edit when code changes and page history is shallow. The notes workspace gets 5 on editing and search, 4 on upkeep, and 1 on accuracy and on review, since it has almost no approval flow.
The criteria order is: stays accurate with code, non-engineers can edit, review and history, search, low upkeep. The scores are my judgement and you should challenge them; the value of the exercise is that changing the weights (who writes, how tied to code) flips the winner. That tells the team the decision depends on its audience, not on tool fashion.
Recommendation and what would flip it
For the engineer-heavy case the repository wins (38 against 32 and 29). For a mixed audience the table puts the notes workspace at 41 and the wiki at 40. A one-point gap on judgement scores is noise, so I read it as a tie, not a win for the workspace. I break the tie with something the five criteria do not score: permissions, page ownership and a stable structure, where the wiki is stronger and a workspace tends to sprawl. If that factor really matters to you, add it as a sixth criterion and score it (wiki high, workspace low), so the numbers and the pick agree instead of the pick overriding the table. What would flip my call: a compliance need for approvals pushes towards the repository; a large support and product contributor base pushes towards the wiki.
Rules that matter more than the tool
- One canonical place per document type, written down, with links from the other places instead of copies.
- A named owner and a review date on every page that people rely on.
- A plan to archive: pages untouched for a year get an "archived" banner or move out of search.
- Check export options before adopting anything, so a future move is possible.
Pitfalls
- Adopting all three with no rule about what lives where: nobody knows which copy is true.
- Migrating everything at once. Move what people actually use and let the rest expire.
- Choosing by feature list rather than by who will really write the pages six months from now.
What makes a runbook usable by a tired on-call engineer in the middle of an outage? Walk me through the practices you follow when you write one for a data pipeline.
Sample Answer
Direct answer
A runbook is a step-by-step operating guide for one specific situation, usually opened from an alert. A tired on-call engineer (the person currently carrying the pager for the team) has almost no spare attention, so a usable runbook needs no interpretation: it starts from the alert they received, gives one action per step with the exact command, shows what a correct result looks like, and says plainly when to stop and call someone. For a data pipeline (a scheduled chain of jobs that moves and transforms data) I write each entry around a symptom such as "table not fresh by 06:00", never around the architecture.
Practices I follow for a pipeline runbook
- One entry per alert, linked from the alert itself. The page that fires should contain the URL of its entry, so nobody searches a wiki at 3 a.m.
- Symptom first, then a short decision path. Step 1 answers "is it still running, failed, or never started?" and each answer points to a numbered step. No background essays inside the steps.
- Exact commands and exact locations. Say where the command runs (a jump host, meaning a locked-down server you log into first to reach production, or a laptop with a named cluster context, the setting that says which cluster a command talks to) and paste it ready to copy, with placeholders in angle brackets.
- State the expected result after each step, so the reader knows whether to continue.
- Say whether an action is safe to repeat. Re-running a load is only calm if the job is idempotent (running it twice leaves the same data as running it once). Write "safe to repeat: yes, the load merges on order_id" or "NOT safe: creates duplicates, ask the owner first".
- Name the blast radius (how much else is affected if this breaks or your fix goes wrong): which dashboards, models or teams read this table, and who to notify.
- Escalation is a step, not an afterthought: after 30 minutes without progress, page the owning team, with the channel and rotation name (the rotation is the schedule that decides who is on call).
- Known failure table: last three real incidents as "log line seen, cause, fix", because pipelines fail in repetitive ways.
Worked example (illustrative excerpt)
ALERT: orders_daily table not updated by 06:00 UTC
Owner: data-platform-oncall Last verified: 2025-06-02 by a.rivera
Impact: finance dashboard and churn model read this table.
1. Is the run still going? (run from the jump host)
airflow dags list-runs -d orders_daily --state running
Rows returned -> wait 30 min, then go to step 4.
No rows -> go to step 2.
2. Open the DAG's runs in the orchestrator UI.
No run at all for today (it never started) -> check the DAG is not paused and the
scheduler is healthy, then go to step 4
A red (failed) run: open the failed task's log and match the last line:
"Connection refused ... source-db" -> source outage, go to step 4
"duplicate key" -> STOP, do not re-run, escalate
3. Clear (re-run) the failed task load_orders. Safe to repeat: yes (MERGE on order_id).
Expected: task turns green in about one normal run time.
4. Escalate to data-platform-owners if not green after 30 minutes.
Reading the excerpt: Airflow is a scheduler that runs a chain of jobs in order, and a DAG (directed acyclic graph) is one such chain of tasks with a fixed order and no loops. airflow dags list-runs -d orders_daily --state running lists the runs of the orders_daily DAG that are in progress right now. The orchestrator UI is Airflow's web page showing each task's status and logs. To "clear" a failed task means to tell Airflow to run it again. MERGE on order_id is a SQL statement that updates rows that already exist and inserts new ones, matched by order_id, which is why repeating it does not create duplicates.
Fields I validate before publishing (and re-validate on a schedule)
- A named owner that is a team or rotation, not a person who may leave.
- A last-verified date and who verified it, with a review interval (for example 90 days) after which the page is flagged stale.
- Tested commands: someone other than the author ran every command against staging or a copy and the output matched what the step promises.
- Links resolve, and the alert's runbook link points to this exact page.
Pitfalls
- Paragraph prose instead of numbered steps.
- "Check the logs" without saying which logs and what to look for.
- Commands that only work with context the author carries in their head.
- A runbook that has never been used under pressure. Run a drill and fix every place the reader hesitated.
How would you make technical documentation and runbooks easier to use for non-native speakers, junior engineers and people with accessibility needs? Give one example for each.
Sample Answer
Direct answer
I would design the document for the hardest reader first, since the fixes overlap: plain sentences, the reason behind each step, the expected result of each step, and information carried by text and structure rather than by colour, screenshots or idiom. Below is one concrete change for each group, all applied to the same runbook (a step-by-step guide for handling a known operational situation).
The starting text
Bounce the box if the queue is stuck (see red graph).
It uses slang, assumes knowledge, and relies on colour.
1. Non-native speakers: plain, literal, consistent language
- Avoid idioms and phrasal verbs ("bounce", "spin up", "kick off"), use one verb per action and one word per thing, and keep sentences short with no ambiguous "it".
- Use the exact label shown in the interface, in bold, so the reader can match it without translating.
- Example: replace "bounce the box" with "restart the worker service". The word "restart" is in dictionaries and translation tools and matches the command.
2. Junior engineers: context, the why, and the expected result
- Say where to run each command (which environment), why, what success looks like, and what to do if it does not.
- Example step: "Restart the worker to clear a stuck queue. This is safe: in-flight jobs are retried. Run
kubectl rollout restart deployment/queue-worker -n prod. Expected output:deployment.apps/queue-worker restarted. If you seeNotFound, check you are in the production cluster context and ask in the on-call channel."
What a junior needs to know to read that step: kubectl is the command-line tool for Kubernetes (a system that runs applications across many machines). A deployment is the named group of running copies of one application. -n prod picks the namespace (a named partition of the cluster) called prod. The cluster context is the setting that decides which cluster kubectl talks to, so checking it stops you restarting the wrong one. In-flight jobs are jobs being processed at that moment, and the on-call channel is the team chat room watched by the engineer currently responsible for incidents.
3. Accessibility needs: structure, and no information by colour or image alone
- Use real heading levels, descriptive link text (not "click here"), table header rows, and alt text (a short text description of an image) for every diagram. A screen reader (software that reads the page aloud) can only read what exists as text.
- Example: "the graph turns red" becomes "The Queue Depth chart is in alert when the line is above 10,000 messages for 10 minutes; its label then reads ALERT." The threshold is illustrative. It works for a person who cannot distinguish red, or uses a screen reader.
The revised runbook step
- Open the Queue Depth dashboard.
- If the line is above 10,000 messages for 10 minutes (label reads ALERT), restart the worker service:
kubectl rollout restart deployment/queue-worker -n prod. - Expected output:
deployment.apps/queue-worker restarted. Check that the depth falls within 5 minutes. - If not, escalate to the on-call lead (the person responsible for the incident decision that week).
How I would keep it that way
- A prose linter such as Vale (an open-source tool that checks writing against rules you define) can flag idioms and undefined acronyms in CI (continuous integration, the automatic checks that run on every proposed change).
- Have a junior colleague run the runbook in a test environment. Their questions are the bug list.
Trade-offs and pitfalls
- Over-explaining can insult experts. Keep the why short and let experienced readers skim, using a bold action line first and the context underneath.
- Machine translation can mangle code and labels, so wrap commands in code blocks that are never translated.
- Avoid a separate "accessible version" that will drift. Fix the one document.
Tell me about a technical proposal or RFC you wrote for reliability work. How did you structure it, what convinced reviewers, and what would you change now?
Sample Answer
Direct answer
The proposal (an RFC, "request for comments": a written design put out for peer review before building) that I would describe was an illustrative composite: it fixed repeated overload of a shared job queue. I structured it around evidence from real incidents, three options compared on cost and risk, a phased reversible rollout, and success measures agreed up front. It convinced reviewers because it showed the failure reproduced, offered the cheapest fix first, and could be switched off. Today I would establish the baseline earlier and involve the most affected team sooner.
Structured elaboration (situation, task, action)
Situation. Several teams sent jobs to one shared queue. Roughly every two months, one tenant's (one team or customer sharing the platform) failing jobs retried in a tight loop, filled the queue, and delayed everyone else's work. Each time the on-call engineer (the person responsible for responding to alerts out of hours) drained the queue by hand.
Task. I owned the reliability of that queue and had to move the team from firefighting to a fix that other teams would accept, since some of them had to change their retry code.
Action. I wrote the RFC with these sections:
- Problem and evidence: three postmortems (written incident reviews) laid on one timeline, showing the same trigger each time. This made it a pattern, not an anecdote.
- Goals and non-goals: goal, one tenant can no longer delay others. Non-goal, rewriting the queue technology.
- Options: (a) per-tenant rate limits (a cap on how many jobs one tenant may submit per minute), (b) retry backoff with jitter (random delay so retries do not all fire together) plus a dead-letter queue (a holding area for jobs that keep failing), (c) migrate to a different queue product. I recommended a plus b, and rejected c as costing months for a problem we could fix in weeks.
- Rollout: a flag, shadow mode first (log what would be limited without limiting), then one tenant, then all.
- Success measures, defined before rollout: count of overload pages per quarter, and the age of the oldest waiting job. Written with a baseline and a target, for example (illustrative numbers): "baseline: 3 overload pages in the last two quarters, taken from the pager history; target: 0 over the next two; oldest waiting job under 10 minutes." Without the baseline, nobody can say later whether it worked.
- Risks and reviewers' asks: what each dependent team had to change.
Worked example: what convinced reviewers, and the result
- We reproduced it. I replayed recorded incident traffic in staging and showed the queue saturating (filling to capacity so nothing new could get through), then showed it holding with the limits on.
- Cheapest reversible option first. Shadow mode meant nobody had to trust the design; they could see its decisions before it acted.
- I pre-reviewed with the noisiest team. Their objection (a hard limit could drop legitimate bursts) became a design change: a burst allowance (letting a tenant briefly exceed its cap for a short spike, then refilling slowly).
- Result (qualitative): the overload pages stopped recurring in the following quarters, and the on-call runbook (the step-by-step guide an engineer follows when an alert fires) lost its manual-drain step (emptying the queue by hand). I would not quote a precise percentage I cannot reconstruct.
Trade-offs, pitfalls and what I would change now
- Change 1: capture the baseline before writing, not during rollout, so the "before" number is not a reconstruction.
- Change 2: bring the affected team in at the outline stage, not the draft stage. Their burst objection cost a rewrite that an earlier conversation would have avoided.
- Change 3: the first draft ran to eight pages; reviewers replied to the parts they read. A two-page body with an appendix got better comments.
- Change 4: add a date to review the outcome (say, 90 days) so the proposal is judged against its own success measures.
- A pitfall in telling this story: naming virtues ("I collaborated") instead of the specific action. Interviewers remember the timeline overlay and the shadow mode, not the adjectives.
Unlock Full Question Bank
Get access to all 15 Technical Writing and Documentation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.