Architecture Documentation and Communication Questions
Making an architecture legible to others: architecture decision records (templates, alternatives and consequences, lifecycle, supersession, tagging and discoverability), diagramming and visualization (C4, sequence, deployment, data-flow and trust-boundary diagrams, notation conventions), and communicating designs to technical and non-technical stakeholders. Covers capturing rationale, documenting what a system does under failure, load and consistency trade-offs, recording observability, SLO and security content, running design reviews, keeping docs and diagrams current, and presenting a system clearly under time pressure. The communication skill that separates a good design from an understood one.
What is an Architecture Decision Record, and what makes a good one? Walk me through what it contains and when your team would write one.
Sample Answer
Direct answer
An Architecture Decision Record (ADR) is a short document that captures ONE significant architecture decision: the situation that forced it, what was chosen, what else was considered, and what the team accepted as a consequence. A good ADR is written at the time of the decision, is honest about the downsides, and is never silently rewritten later, so a future engineer can learn why the system looks the way it does, not just how.
What it contains
- Title and number: a short statement of the decision, such as "ADR-0007: Use gRPC for internal service calls". (gRPC is Google's remote procedure call framework; REST is the common style of calling services over plain HTTP with JSON.)
- Status: Proposed, Accepted, Rejected, Deprecated, or "Superseded by ADR-00NN".
- Context: the forces at play (requirements, constraints, team skills, deadlines) in a few sentences a newcomer can follow.
- Decision: one clear sentence in active voice ("We will...").
- Alternatives considered: the real options and why each lost.
- Consequences: what gets easier, what gets harder, and what new risks we now carry. Both good and bad.
- Date and deciders, so people know who to ask.
Worked example (REST vs gRPC)
ADR-0007: Use gRPC for calls between Orders and Pricing
Status: Accepted (2025-03-12)
Context: Orders calls Pricing on every checkout. Both are internal, both
are owned by us, and we want a typed contract (request and reply shapes declared in a schema, so a mismatch is a build error rather than a production surprise).
Decision: We will define the contract in protobuf (a compact, typed message format declared in a schema file) and call Pricing over gRPC.
Alternatives: REST+JSON (familiar, easy to debug with curl, a command-line tool for sending web requests, but the
contract is only documentation); message queue (decoupled, but checkout
needs the price synchronously).
Consequences: (+) generated clients, compile-time contract checks.
(-) browsers cannot call it directly, so the public edge stays REST;
(-) the team must learn protobuf tooling and gRPC debugging.
When your team writes one
Write an ADR when a decision is hard to reverse, affects more than one team, had real alternatives, or would make a new hire ask "why on earth did we do it this way?". Cross-team adoption works best when the ADR arrives as a pull request (a proposed change others review) in a shared or per-repo folder, so the discussion happens on the record and other teams can link to it or reuse it rather than re-deciding.
Storing, versioning and surfacing them so rationale survives years
- Keep them in version control next to the code (for example
docs/adr/0007-use-grpc-for-internal-calls.md), one file per decision, numbered and never deleted. Git history (the stored record of every change and who made it) then gives you versioning and authorship for free. - Treat accepted ADRs as append-only (you add new records but never rewrite old ones): to change your mind, write a new ADR and mark the old one "Superseded by ADR-0015", with a link in both directions.
- Maintain an index page (or publish the folder to the docs site) listing number, title, status and date, so people can search rather than browse.
- Link ADRs from the places engineers actually look: the service README, the pull request that implemented it, and the service catalog entry (the internal directory listing each service with its owner and docs). Auditors get a dated, reviewed, immutable (cannot be altered afterwards) trail.
Trade-offs and pitfalls
- Too long: nobody reads a five-page ADR. Aim for one page.
- Too many: writing ADRs for trivial choices creates fatigue and buries the important ones.
- Decision without alternatives or consequences reads as a press release, not a record.
- Editing history: rewriting an old ADR destroys the very evidence it exists to preserve.
During pre-sales you have 48 hours to produce a tailored architecture diagram and short design narrative for a prospect. How do you work: what do you ask the client, what assumptions do you write down, and how do you separate pre-sales estimates from production commitments?
Sample Answer
Direct answer
Spend the first hours on questions, not drawing. Produce a small, honest package: a context and container diagram, a two to three page narrative, an assumption log, an indicative estimate as a range, and a list of open questions. Stamp all of it as pre-sales and non-binding, and keep commitments for the signed contract after design work. A container diagram shows the deployable pieces (web app, API, database) and how they talk. The open questions list is the written set of things you could not confirm, each with an owner. A design narrative is the short prose that explains what the diagrams show and why. Pre-sales is the work done before a contract exists.
How the 48 hours run
| When | Work |
|---|---|
| Hours 0-4 | Discovery call with the questions below; send a written recap |
| Hours 4-20 | Draft the context diagram and the container diagram (C4 is a notation with four zoom levels; here levels 1 and 2), the assumption log and a first estimate |
| Hours 20-36 | Send the open questions; refine as answers arrive; write the narrative |
| Hours 36-48 | Peer review by another architect, add the stamp and validity, deliver |
What to ask the client
- Outcome: what changes for the business if this works, and what is the success measure?
- Users and volumes: who, how many at peak, growth expectations.
- Existing systems to integrate with and the interfaces they offer.
- Data: types, sensitivity, where it must live.
- Availability and recovery expectations, in their words.
- Constraints: preferred cloud, compliance rules, deadlines, budget band, and who decides.
The assumption log (illustrative rows)
| ID | Assumption | Source | Confidence | If wrong |
|---|---|---|---|---|
| A-03 | Peak 2,000 concurrent users (people active at the same moment) | Client email | Medium | Re-size the compute tier (the servers that run the application), re-estimate |
| A-07 | Customer data must stay in the EU | Discovery call | High | Changes hosting design |
| A-09 | Existing identity provider (the system that logs users in, such as a corporate single sign-on service) can be reused | Not yet confirmed | Low | Adds an identity workstream |
| A-11 | Availability target of 99.9% is a design target, not a service-level agreement (SLA, a contractual promise) | Our position | High | n/a |
Each assumption is a testable sentence with an owner to confirm it and a stated consequence. The confidence column is a plain label (High, Medium, Low) for how sure you are; anything Low is the first thing to chase.
Sample open-questions list (illustrative)
- Q1: Can the existing identity provider issue tokens to our API? Owner: client IT lead. Needed by: hour 30.
- Q2: Is the 2,000 peak users a measured figure or a guess? Owner: client product owner.
- Q3: Which regulator's rules apply to the customer data? Owner: client compliance.
Sample narrative opening (illustrative)
"We propose a web application and API hosted in the EU, integrating with your existing order system. This concept rests on 11 assumptions listed in Appendix A; three are unconfirmed and could change the estimate. Nothing here is a commitment."
Separating estimate from commitment
- Give ranges with a three-point estimate. A person-week is one person working for one week. Example: optimistic 10, most likely 14, pessimistic 24 person-weeks gives (10 + 4 x 14 + 24) / 6 = 90 / 6 = 15 weighted. The most-likely value gets weight 4 because it is the outcome you believe in most, and the two extremes get weight 1 each, so the weights total 1 + 4 + 1 = 6, which is why you divide by 6. The result (15) is a planning midpoint that sits above the most-likely 14 because the pessimistic tail is longer. Quote the range, not the midpoint: "roughly 10 to 24 person-weeks, low confidence", with the weighted 15 as the internal planning figure only.
- Put a stamp on every page: "Pre-sales concept. Indicative only. Valid for 30 days. Not a design of record."
- A visible "what this does not include" list.
- SLAs, fixed prices and delivery dates appear only in the signed statement of work (the contract document that lists deliverables, price and dates), after discovery and a security review (a formal check of the design by the security team, treated as a gate before any commitment).
- Validity means the period the offer stays open (here 30 days); after it, the estimate must be redone. A peer review means a second architect reads the package for gaps before it goes out.
Pitfalls
- A polished diagram that looks final. Polish signals commitment, so label it.
- Unwritten assumptions. Every silent assumption becomes a dispute later.
- Answering an estimate request with one number.
How do you document a software architecture so others can understand it? Walk me through your approach, from who the readers are to what you produce.
Sample Answer
Direct answer
I start from the readers, not the diagrams: list who will read the documentation and what question each needs answered, then produce the smallest set of views that answers those questions, with one plain-language overview on top and the precise detail underneath. Architecture documentation fails when it is written for the author.
Step 1: Who are the readers and what do they need?
| Reader | Their question |
|---|---|
| New engineer | How is it organised and where do I start? |
| On-call SRE (site reliability engineer) | What breaks, what depends on what, where is the runbook (the step-by-step guide for handling an alert)? |
| Security reviewer | Where is data stored and where are the trust boundaries (the lines where data passes between zones trusted differently, such as the internet and your servers)? |
| Business or client stakeholder | What does it do for us, what does it cost, what are the risks? |
Step 2: What I produce
- One-page overview: purpose, scope, an executive summary in plain language, the key quality goals (the qualities the system must have, for example availability, cost), constraints, assumptions and risks. This is the client-facing entry point.
- Context and container diagrams (C4 is a diagram convention with four zoom levels; level 1, context, shows the system and its neighbours, level 2, container, shows its separately running parts), with legend and labelled arrows.
- Two or three key flows as sequence diagrams (pictures of who sends what message to whom, in time order, for one scenario; for example "place an order", "recover from a failed payment"), because flows explain behaviour that boxes cannot.
- Data view: what is stored where, who owns it, what is sensitive.
- Deployment view: what runs where.
- Decision records (ADRs, architecture decision records: one-page notes on a single decision) for the important choices: the "why".
- Operations links: runbooks, dashboards, on-call contacts, and a short glossary.
If the organisation wants a ready structure, arc42 is a free 12-section template for exactly this purpose; I would borrow the sections I need rather than fill all twelve.
Serving both engineers and business readers
Layer the document: summary on top (no jargon, decisions and risks stated as consequences), diagrams in the middle, precise detail (protocols, schemas, capacity) in linked appendices. Each diagram gets a one-sentence caption saying what to notice.
Worked example: patient appointment-booking platform for a clinic group
- Overview (half a page): "Lets patients book, move and cancel appointments online. Highest risks: double-booking and exposure of health data. Assumes a single region for now."
- Context diagram: Patient, Reception Staff, the clinic's existing Scheduling System, SMS provider.
- Container diagram: web app, Booking API, Calendar Sync Worker, database, queue.
- Flow: "Patient books slot", including the case where two people pick the same slot.
- ADR: why the Booking API owns slot allocation instead of the legacy system.
The flow, sketched as the sequence diagram would show it:
Patient -> Web app: choose 10:00 slot
Web app -> Booking API: reserve(10:00)
Booking API -> Database: insert reservation only if slot is free
Database -> Booking API: ok | conflict
Booking API -> Web app: confirmed | "slot taken, pick another"
Booking API -> SMS provider: send confirmation (only after ok)
And the plain-language layer for a clinic manager: "Patients can book online. The system never books two people into the same slot; if two try at once, the second is told immediately. Health data is stored encrypted in one region." (Illustrative wording.)
Trade-offs and pitfalls
- One giant document nobody reads: split by reader and link.
- Diagrams without narrative: pictures alone cannot carry rationale or assumptions.
- Documenting everything at equal depth. Go deep where risk and change are concentrated.
- Not stating assumptions: they are the first thing a client or reviewer challenges.
How should known limitations and trade-offs be documented in solution architecture documents so they do not become surprise objections later? Where do you place them and how do you word them?
Sample Answer
Direct answer
Put known limitations in a dedicated, visible section near the decision they qualify (and summarized in the executive summary), not in an appendix, and word each one as a fact with its cause, its impact, the conditions under which it bites, and what we are doing or accepting. A limitation a stakeholder discovers on their own reads as concealment. One they were shown, with a rationale, reads as engineering.
Where to place them
- Executive summary: the two or three limitations a sponsor could reasonably object to (cost, delivery date, scope, availability).
- Next to the decision: each design section ends with "Trade-offs and limitations" so a reader who checks only the data-store section sees the consistency trade-off there.
- A consolidated register: one table listing all of them with owner and status, so a reviewer can scan everything at once.
- The ADR (architecture decision record, a short dated note of what was decided and why): the "Consequences" and "Alternatives rejected" parts hold the trade-off reasoning for each major choice.
How to word one
A weak line: "The system has limited scalability." A strong line follows a fixed pattern: constraint, measurable impact, trigger, mitigation, revisit point.
| Field | Example |
|---|---|
| Limitation | Orders are written to a single primary database in one region |
| Impact | If that region is lost, ordering is unavailable until failover completes; we target recovery within 60 minutes (RTO, recovery time objective) and accept losing up to 5 minutes of orders (RPO, recovery point objective) |
| Applies when | Region-wide outage, not single-instance failure |
| Why accepted (illustrative) | Multi-region writes would add roughly a quarter to delivery and a large running-cost increase, and the business rated regional loss as rare |
| Mitigation | Continuous replication or log shipping to a standby in a second region (this is what makes the 5 minute RPO achievable; nightly backups alone would allow up to about 24 hours of loss), plus a nightly restore test of the backups |
| Revisit | When order volume passes the level in the capacity plan, or at the annual review |
Those RTO and RPO figures are illustrative, chosen for the example; in a real document they come from the business.
Wording rules
- State facts and numbers, not adjectives ("limited", "may be slow").
- Say who accepted it and when ("Accepted by the product owner, 12 May, ticket linked"), so it is a decision and not an admission.
- Separate a limitation (what the design cannot do), a risk (might happen) and an assumption (we rely on it being true). Mixing them makes the section unreadable.
- Avoid apologetic or defensive tone; equally avoid burying the sentence in a passive clause.
Pitfalls
- Listing limitations only in the closing section, which gets read last or never.
- Recording a limitation with no owner or revisit trigger; it becomes permanent by neglect.
- Softening a genuine constraint until a stakeholder can read it as "handled". If a sponsor would be upset to learn it in production, it belongs in the summary.
An executive asks, 'Why can't we just run our services as containers behind a load balancer and call it a day?' Give me a structured one-page answer that connects architecture to cost, risk and time.
Sample Answer
Direct answer
"You can, and for a small start it is often right. Containers behind a load balancer solve one thing: running stateless code (code that keeps no important data of its own, so any copy can serve any request) and spreading requests across copies. The rest of the bill, which decides cost, risk and time, is everything that does not fit in that sentence: where data lives, how we release safely, what happens when a machine or a zone fails, and who is paged." The one-page answer maps each of those gaps to money, exposure and schedule.
The one page
| Question the executive is really asking | What "containers plus load balancer" gives | What is still missing | Effect |
|---|---|---|---|
| How fast can we ship? (time-to-market) | Repeatable packaging | Automated build, test and safe rollout | Without it, each release is manual and slow; with it, weekly or daily releases are possible. |
| What does it cost to run? (operating cost) | Pay for machines | Right-sizing, autoscaling, and the people who operate it | Idle capacity is paid for; a team must own upgrades and patching. |
| How often is it down? (availability) | Spread across instances | Redundant data tier, multi-zone placement, health checks | The weakest single component sets the ceiling. |
| What if someone attacks or a component breaks? (risk) | Isolation between processes | Secrets, network rules, backups, monitoring | Silent failure and breach exposure. |
Worked example: why the weakest part sets availability (illustrative, assumes independent failures)
Availability is the share of time a part is working. "Independent" means one failing does not make the other more likely to fail (for instance they are not on the same power feed). For reference, 99.9% availability allows 0.001 x 8,760 hours in a year, about 8.8 hours of downtime.
- Two app instances, each up 99.5% of the time (down 0.5% = 0.005). The app tier fails only when both are down at once, and with independent failures that happens 0.005 x 0.005 = 0.000025 of the time. So app tier availability is 1 - (0.005 x 0.005) = 1 - 0.000025 = 0.999975, or 99.9975%.
- One database, up 99.9%. Everything must be up together, so multiply: 0.999975 x 0.999 = 0.998975, about 99.90%. That is 0.001025 x 8,760 = about 9 hours of downtime a year.
- Add a standby database (a second copy in another availability zone, meaning a separate data centre within the region, that takes over if the first fails). The data tier fails only if both copies are down: 1 - (0.001 x 0.001) = 0.999999. Overall: 0.999975 x 0.999999 = about 0.999974, roughly 14 minutes a year (0.000026 x 8,760 hours = 0.23 hours).
- Real systems are worse: failover (the switch to the standby) takes time and failures are not fully independent. Treat these as ceilings, not promises.
Cost in plain numbers (illustrative): if capacity is sized for a peak that is 2.5 times the average, about 60% of it sits idle off-peak, so we pay for 100 to use 40 unless autoscaling (adding and removing instances automatically with load) or right-sizing (choosing instance sizes that match real usage) trims it. A standby database roughly doubles that one component's running cost, which is the price of removing the 9 hour ceiling.
Recommendation
Start with containers behind a load balancer plus the three cheap additions: a managed database with a standby, automated deployments with rollback, and basic alerts. Delay heavier machinery until a measured need, such as an availability target we are missing.
Heavier machinery, rarely needed at the start: multi-region means running the whole system in more than one geographic region to survive a regional outage, and a service mesh is an extra network layer that manages service-to-service traffic, security and retries. Both add cost and operating burden, so we adopt them only on a measured need.
Trade-offs and pitfalls
- Do not oversell complexity. "It's complicated" is not an answer.
- Do not undersell it either: "just containers" ignores the database and the on-call people.
Unlock Full Question Bank
Get access to all 17 Architecture Documentation and Communication interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.