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.
You are recommending a third-party authentication provider, or an analytics SDK, in a payment flow. What security and compliance content must the ADR contain before it can be accepted, what evidence do you request from the vendor, and who verifies each item?
Sample Answer
Direct answer
An ADR (architecture decision record: a short document capturing one decision) that adds a third-party authentication provider or analytics SDK (software development kit: vendor code that runs inside your app) to a payment flow cannot be accepted until it shows what data the vendor touches, how that changes your compliance scope, what evidence the vendor supplied, what residual risk remains, and who signed each item off. The rule of thumb: every claim in the ADR points to evidence and a named verifier, not to "the vendor says they are secure".
Required content, evidence and verifier
Core for any payment flow: rows 1 and 2 below (what data the vendor sees and whether it changes your card-data scope). Situational: privacy law and the DPA when personal data of EU residents is involved; SOC 2 or ISO 27001 (either is commonly accepted as posture evidence, but check that the report scope covers the service you will use; ISO 27001:2022 is the current edition). In this answer row 2 is the gate: without a valid AOC and a scope decision, the ADR is not accepted, whatever the other rows say.
The compliance frameworks that usually apply to a payment flow are PCI DSS (Payment Card Industry Data Security Standard, currently v4.0.1), and data-protection law such as GDPR (the EU General Data Protection Regulation) where personal data is involved.
| # | ADR content | Evidence to request | Who verifies |
|---|---|---|---|
| 1 | Data-flow diagram: exactly what data the vendor receives (separate cardholder data, which is the card number, cardholder name, expiry date and service code, from other personal or identifying data such as emails, device IDs and session tokens; only the first group puts the vendor in PCI card-data scope, but the second still matters for privacy law and the DPA) | Vendor's data specification; your own network capture in a test environment | Solution architect plus security architect |
| 2 | Scope impact: does the vendor see cardholder data, or touch the payment page? | Vendor's PCI Attestation of Compliance (AOC: their assessor's signed statement) and responsibility matrix (who is responsible for each PCI requirement, you or the vendor) | Compliance or QSA (Qualified Security Assessor) contact |
| 3 | Vendor security posture | SOC 2 Type II report (independent audit of controls over a period) or ISO 27001 certificate (an international information-security management standard), latest penetration-test summary (a report of an authorised simulated attack), vulnerability disclosure process | Security architect, procurement |
| 4 | Privacy: sub-processors, data location, retention, deletion | Data processing agreement (DPA: the contract on how the vendor handles personal data for you), sub-processor list (other companies the vendor passes your data to) | Privacy or legal counsel |
| 5 | Operational: SLA (service-level agreement, the vendor's promised uptime and support terms), breach-notification time, outage behaviour, exit plan | Contract terms, incident history, export and deletion procedure | Engineering manager, SRE, procurement |
For a script or SDK on the payment page, PCI DSS v4.0.1 has requirements to keep an inventory of scripts with a justification, to ensure their integrity, and to detect unauthorised changes to payment-page scripts (requirements 6.4.3 and 11.6.1). The ADR should say how: pinned versions (a fixed script version that cannot change silently), subresource integrity (the browser checks a script against a published hash and refuses it if altered) or a content-security policy (a header listing which sources may load scripts), and a monitoring check.
What the ADR itself looks like (illustrative excerpt)
# ADR-33: Adopt ExampleAuth (hosted login) for customer sign-in
Status: Proposed | Date: 2026-09-28 | Deciders: security architect, payments lead
## Context
We need social and passwordless login. The login page is separate from the
payment page.
## Data the vendor receives
Email address, device ID, session token. No card fields, ever.
## Scope and evidence
- PCI: vendor never sees cardholder data. Their AOC and responsibility matrix
reviewed by Compliance (this is the gate row; passed).
- Security posture: SOC 2 Type II report read by the security architect;
penetration-test summary requested and attached.
- Privacy: DPA signed; sub-processor list attached and reviewed by counsel.
## Residual risk
If the provider is down, customers cannot log in. Control: password-reset
fallback and a status banner. Accepted by the head of engineering until
2027-03-28, then re-reviewed.
## Consequences
(+) Less credential storage for us. (-) Login availability now depends on a
third party. (-) Vendor script versions must be pinned and re-reviewed.
Threat model and residual risk
The table says what evidence to collect; this step turns it into a risk decision. Add a short threat model of the vendor as an attacker's path: compromised vendor script skimming card data, provider outage locking users out of login, vendor breach leaking identifiers. For each, write the control and the residual risk (what remains after the control). To quantify, use annualised loss expectancy:
ALE = SLE x ARO
SLE is single loss expectancy (cost of one incident) and ARO is annual rate of occurrence. With assumed inputs (agreed with finance, not measured), SLE = $400,000 and ARO = 0.05 (one every 20 years), the ALE is 0.05 x 400,000 = $20,000 per year. If a control costing $8,000 a year cuts ARO to 0.01, the ALE becomes $4,000, a saving of $16,000 for $8,000. Treat these as reasoning aids: the inputs are guesses, so record them and who supplied them.
Acceptance criteria
- No vendor code with access to raw card data unless in scope and assessed.
- Analytics SDK: prefer server-side event calls over a browser SDK on the payment page, and never send card fields or full emails.
- Authentication provider: fallback if it is down, session-token handling reviewed, and exit plan tested.
- An approver for accepted residual risk, with expiry date for review.
Pitfalls
- Accepting a vendor's compliance badge without checking its scope covers your use case.
- Reviewing only at procurement; SDK updates change behaviour later, so pin versions and re-review.
- No owner for each item: everyone assumed someone else checked.
How do you show network and trust boundaries on architecture diagrams for a multi-tenant platform: tenant isolation, ingress and egress control, where secrets live, and how encryption in transit is applied end to end?
Sample Answer
Direct answer
Draw the platform as trust zones (areas with different levels of trust, each with its own controls) and label every arrow that crosses a boundary with what protects it: protocol, encryption, how the caller is authenticated, and where the tenant's identity comes from. Show tenant isolation as a property of each data store, ingress and egress as controlled doors, secrets as living in one management zone, and mark each place TLS (transport layer security, the encryption of data moving over a network) ends, because plaintext exists there. One diagram per concern (network, identity, data) beats one crowded picture.
Terms: a tenant is one customer organisation using the shared platform (Acme and Globex are two tenants); multi-tenant means their data and traffic share the same system but must never mix. An API gateway is the front-door service that authenticates and routes every API call. A private subnet is a network segment with no public internet address. Sidecar proxies are small helper proxies running beside each service that handle encryption and identity for its network calls. Workload identity means a running service proves who it is with short-lived credentials the platform issues to it, not a stored password. An egress proxy allowlist is a gate for outbound traffic that lets only named destinations through; default deny means anything not explicitly allowed is blocked. Inference is running a trained model to get a prediction, and the model server is the service that does it.
Diagram: zones and numbered flows
flowchart LR
U[Tenant user browser] -->|F1 TLS| E
subgraph Z1[Edge zone, public]
E[WAF and load balancer]
end
E -->|F2 TLS re-encrypted| G
subgraph Z2[App zone, private subnet]
G[API gateway verifies token, sets tenant_id]
S[Tenant services with sidecar proxies]
M[Model server for ML scoring]
end
G -->|F3 mTLS, tenant_id from verified token| S
S -->|F4 mTLS| M
subgraph Z3[Data zone, no internet route]
D[(Shared database, row-level security by tenant_id)]
B[(Object storage, one prefix per tenant)]
end
S -->|F5 TLS, tenant-scoped credentials| D
S -->|F5 TLS| B
subgraph Z4[Management zone]
K[Secrets manager and key service]
end
S -.->|F6 workload identity, TLS| K
S -->|F7 TLS via allowlist| X[Egress proxy to external APIs]
WAF is a web application firewall. mTLS is mutual TLS: both sides present certificates, so each proves who it is.
Flow table (the legend a reviewer reads)
| Flow | From to | Encryption and identity | Tenant context |
|---|---|---|---|
| F1 | Browser to edge | TLS; user authenticates with a token | Tenant chosen at login |
| F2 | Edge to gateway | TLS re-established so traffic is not plaintext inside the network | Passed through |
| F3 | Gateway to services | mTLS, service identity via certificates | Taken from the verified token, never from a client-supplied header |
| F4 | Services to model server | mTLS; inference endpoint not reachable from outside | Tenant id in the request for logging and model selection |
| F5 | Services to data | TLS; credentials scoped to the tenant | Enforced by the store |
| F6 | Services to secrets | Short-lived workload identity, TLS | n/a |
| F7 | Services to internet | TLS through an allowlisted proxy | Per-tenant egress rules where required |
Traced request (tenant Acme cannot read tenant Globex)
Illustrative values: Alice works for tenant acme. Invoice 42 belongs to tenant globex.
- F1, F2: Alice's browser sends
GET /invoices/42with her login token over TLS. - Gateway: verifies the token's signature and reads
tenant_id=acmefrom inside it. A headerX-Tenant: globexthat Alice adds is ignored. - F3, F5: the invoice service opens a database session tagged
acme(SET app.tenant_id = 'acme'), connecting as a role that does not own the table (owners bypass policies). - The database applies a row-level security policy to every query:
ALTER TABLE invoices ENABLE ROW LEVEL SECURITY;
CREATE POLICY tenant_isolation ON invoices
USING (tenant_id = current_setting('app.tenant_id'));
Invoice 42 has tenant_id = 'globex', which does not equal acme, so the query returns no rows and the service answers 404, even if the service code forgot its own WHERE tenant_id = .... Object storage works the same way: the credentials only allow the prefix tenants/acme/.
Tenant isolation
Label each store with its model: pooled (shared, separated by a tenant column with row-level security, meaning the database filters rows by tenant regardless of the query), bridge (separate schemas), or silo (dedicated database or account). Pooled is cheaper but a bug or missing filter can leak across tenants, so the diagram notes the control that stops it. Regulated or large tenants often get silos, and the diagram marks which.
Ingress, egress and secrets
- Ingress: one public door (edge zone). Everything behind it has no public address. Show the rate limit and authentication step at the gateway.
- Egress: default deny, with all outbound traffic through a proxy that allows named destinations. Show it explicitly, since unmapped egress is how data leaves unnoticed.
- Secrets: stored in the secrets manager and key service, fetched at runtime with workload identity, never baked into images or config files. Per-tenant encryption keys (each tenant's data is encrypted under its own key, so one key compromise or one tenant's deletion request affects only that tenant) sit in the key service (envelope encryption: a data key protected by a master key).
ML-serving variant
Give the model server its own segment with no internet route. Apply TLS on the inference call (F4), and use network rules so only the gateway-facing services can reach it. Model artifacts are pulled read-only from storage. If tenants have their own models, show the model-to-tenant mapping and the tenant check on the inference call.
What reviewers look for: an unlabelled arrow is a finding; encryption stops somewhere, so show where; tenant identity must come from something the platform verified.
Pitfalls: one giant diagram; drawing the intended design instead of the deployed one; forgetting backups, logs and analytics, which also hold tenant data.
A client will hand the solution you delivered to several external teams for years. What documentation, runbooks and knowledge-transfer plan would you create so it stays maintainable, and how would a new engineer use it in their first week?
Sample Answer
Direct answer
I would ship a small, layered documentation set that is owned, versioned and tested by someone other than the original authors: a one-page orientation, an architecture pack, runbooks (step-by-step operating instructions for a specific situation), and a knowledge-transfer plan that ends with the client's engineers performing the work while we watch. The test of success is that a new engineer, with no access to the original team, can run, change and fix the system using only the pack. I would prove that before handover, not assume it.
The documentation set (what and for whom)
| Layer | Contents | Reader |
|---|---|---|
| Orientation (1 page) | What the system does, who owns it, where the docs live, how to get access | Everyone, day one |
| Architecture pack | Context and container diagrams (C4 is a diagram convention with four zoom levels: context, container, component, code), ADRs (architecture decision records: short dated notes saying what was decided, why, and what was rejected), known limitations, data flows, security model | Engineers, architects |
| Operations | Runbooks for deploy, rollback, scaling, certificate and secret rotation, restore from backup, top alerts | On-call engineers |
| Change guide | How to build, test and release; conventions; how to add a typical feature | Developers |
| Contacts and contracts | Vendor and third-party dependencies, support paths, licence and renewal dates, escalation | Managers, leads |
Keep these in the same repository as the code (docs-as-code: plain text reviewed in pull requests), so a change to the system and a change to its docs go through one review. Each page gets a named owner role (not a person) and a "last verified" date.
Knowledge-transfer plan
- Weeks before handover: the client's engineers shadow us on a real deployment and a real incident drill.
- Reverse shadowing: they lead, we watch and only correct.
- Handover gate: a client engineer who was not involved performs a clean deploy, a rollback and one runbook drill using only the docs. Every place they get stuck is a docs bug we fix before sign-off.
- After handover: a defined warranty period with a named contact, and a docs-review date in the client's calendar.
A new engineer's first week (worked example)
- Day 1: access checklist (accounts, VPN, secrets vault), read the one-page orientation, run the local environment from the README.
- Day 2: read the context and container diagrams and the five most recent ADRs; explain the data flow back to a buddy.
- Day 3: deploy a trivial change to a non-production environment.
- Day 4: run a runbook in a rehearsal (for example restore a database backup into a scratch environment) with the buddy observing.
- Day 5: fix one small, pre-selected "starter" issue end to end, and note every doc gap found. Those notes become their first documentation pull request.
Trade-offs and pitfalls
- Docs rot fastest where nobody is measured on them. Tie them to the definition of done (a change that alters behaviour updates the docs) and review them on a schedule.
- Exhaustive documentation nobody reads is worse than a short pack that is exercised. Prefer runbooks that are executed in drills over long prose.
- Several teams over years means turnover: write for someone who has never met us, and record the why (ADRs), because the what is discoverable from the code.
- If the client will not staff an owner, I would flag that in writing as a handover risk; no documentation compensates for an unowned system.
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.
During a sales cycle a client insists on a proprietary protocol they already use. As the architect, how would you record the requirement, evaluate alternatives, capture the client's business reasoning and communicate the trade-offs?
Sample Answer
Direct answer
Treat "we must use our protocol" as a stated solution, not yet a requirement. Record the underlying need and the constraint with its source, evaluate alternatives in a short decision record (an ADR, architecture decision record: a dated note capturing one decision, its options and reasons), write down the client's reasoning in their words (separated from what you have verified), and get the trade-off accepted in writing. My default recommendation: support the protocol through an adapter at the edge that translates to our standard API, with a review trigger. A proprietary protocol is one whose specification is owned and controlled by a single vendor.
1. Record the requirement (illustrative excerpt)
REQ-014 Existing client systems must connect using ProtocolX (proprietary binary protocol over TCP)
Source: client technology lead, discovery call 1
Client's stated reason: about 300 field devices and one partner's software already speak it;
replacing them means re-certification (unverified claim)
Underlying need: keep current devices working without replacement
Type: client constraint (not yet validated)
Evidence requested: protocol specification, device list, the certification rule
Owner: solutions architect
2. Questions to turn the ask into a need
- Why this protocol: devices, a partner, a certification rule, or habit?
- Can they share the specification? Is it authenticated and encrypted?
- Who else depends on it? Is there any plan to retire it?
3. Alternatives and criteria
| Option | Time | Security risk | Long-term cost | Lock-in |
|---|---|---|---|---|
| A. Native support inside the core platform | Slow | Highest: unreviewed parser in the core | High: every team carries it | High |
| B. Adapter at the edge translating to our standard API (an anti-corruption layer, a translation layer that keeps a foreign model out of the core) | Medium | Contained: parser isolated, rate-limited | Medium: one component | Low |
| C. Client migrates to the standard, with a support window | Client-dependent | Lowest | Lowest | None |
| D. Decline | Immediate | None | None | None |
Option D is right when the protocol has no specification we can review, the client will not fund support, or the security risk cannot be contained. Then say no early and offer C.
Terms: lock-in is being tied to one component or vendor so leaving is costly. Re-certification is repeating a formal approval process after a change. The edge is the outer boundary where outside traffic first enters our systems.
4. Capture the client's reasoning
Put it in the decision record's context section, quoted and attributed, with a column "claimed" versus "verified". If the certification claim is false, the case for B weakens and C gains ground, and the record shows why.
A filled-in record for the choice (illustrative):
ADR-007: Support ProtocolX through an edge adapter
Status: Proposed Date: 2026-09-10 Deciders: solutions architect, security architect
Context: Client needs about 300 existing devices to connect. Certification
claim: unverified. Specification: requested, not yet received.
Options: A native, B adapter, C client migrates, D decline (see table)
Decision: B, subject to receiving the specification.
Consequences: one extra component to run; parser isolated from the core.
Revisit when: a second client needs ProtocolX, or the client can migrate.
Claimed vs verified: certification rule (claimed by client), device count (claimed).
5. Communicate the trade-off
- A one-page options memo for the client's business owner in their terms: time, cost, risk, and what they must supply (the specification, test devices). Illustrative opening: "We recommend Option B. It keeps your 300 devices working with no replacement. It adds about one component to run and needs your protocol specification within 30 days. If the specification is late, go-live moves by the same amount."
- A security appendix (for the client's technical team): fuzz-test the parser (feed it large volumes of malformed or random input to find crashes), terminate the protocol at the gateway (end the foreign protocol at the edge so only our standard API travels inward), wrap the traffic in an encrypted tunnel (an encrypted channel between two endpoints), and rate-limit (cap how many requests a sender may make per minute).
- Ask for a decision and a signature on the chosen option, including who pays for ongoing support.
Recommendation and what flips it
Choose B, with a review trigger: revisit if a second client needs the protocol (then native support may pay back) or if the client can migrate within an agreed window (then C, with B as the bridge). Flip to A only if the protocol is an industry norm across many prospects.
Pitfalls
- Arguing the protocol is bad. It is their asset; you are pricing the consequence.
- Agreeing in the sales meeting. An unrecorded yes becomes a support commitment nobody priced.
- Skipping the security review because the client is a strategic account.
Unlock Full Question Bank
Get access to all 10 Architecture Documentation and Communication interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.