ArchitectMind
  1. Home
  2. Tutorials
  3. Book 10 · Security, System Design & Solution Architecture
  4. Volume VIII
  5. Identifying Constraints
Book 10 · Volume VIII — Solution Architect Workshops, Interviews & Final Assessment · Topic 1.3

Identifying Constraints

What you cannot change — and how it shapes every choice on the board

14 min readStage 4 · Production & architecture10 interview questions
Chapter
Chapter 1 — Architecture Interview Framework
Prerequisites
Topics 1.1–1.2
You will be able to
Discover and classify constraints quickly, verify whether they are hard or soft, derive the design consequences of each, use constraints to narrow options, surface conflicts, and keep constraints visible on the board throughout the interview
Covers
Identifying constraints
On this page
  1. 1. Concept / Definition
  2. 2. Why It Exists
  3. 3. Core Concepts — Requirement vs Constraint vs Assumption
  4. 4. How It Works Internally — Handling Constraints
  5. 4A. Deep Dive — Regulatory Constraints and Their Consequences
  6. 4B. Deep Dive — Organisational Constraints
  7. 4C. Deep Dive — Technical Constraints
  8. 4D. Deep Dive — Hard vs Soft
  9. 4E. Deep Dive — Conflicting Constraints
  10. 4F. Deep Dive — Solution Architect Constraints
  11. 4G. Deep Dive — Discovering Unstated Constraints
  12. 4H. Deep Dive — Constraints Over the Life of the Interview
  13. 4I. Deep Dive — Constraint-Driven Option Elimination
  14. 5. APIs / Features / Syntax
  15. 6. Practical Examples
  16. 7. Common Problems & Mistakes
  17. 8. Performance & Production Considerations
  18. 9. Architecture & Design Considerations
  19. 10. Interview Questions & Answers

1Concept / Definition

A constraint is a condition the solution must accept as given — it cannot be traded away by design choices. Constraints come from the business (budget, deadline), regulation (PCI DSS, data residency), technology (existing systems, mandated cloud), organisation (team size, skills) and operations (support model, maintenance windows). Unlike requirements, which can sometimes be negotiated, constraints narrow the solution space; identifying them early prevents elegant designs that cannot be built.

Types of constraints
Figure 1 — Types of constraints
Constraint → design consequence
Figure 2 — Constraint → design consequence
VocabularyMeaning
Hard constraintNon-negotiable (law, contract, physics)
Soft constraintStrong preference that could change with justification
Constraint consequenceThe design choice a constraint forces or forbids
Conflicting constraintsTwo constraints that cannot both be fully met
Table 1 — Terms

2Why It Exists

Ignoring constraintsConsequence
Proposing multi-cloud when company is AWS-onlyInterviewer sees poor listening
Storing card numbersFails PCI; unrealistic
20 microservices for a team of 5Unbuildable
Global active-active under data residencyIllegal
Table 2 — Why constraints matter

3Core Concepts — Requirement vs Constraint vs Assumption

TypeDefinitionExampleCan you trade it?
RequirementSomething the system must do or achievep99 < 500 msSometimes, with stakeholder agreement
ConstraintA condition you must acceptData must stay in IndiaNo (hard) / rarely (soft)
AssumptionSomething you believe but haven't confirmed10M DAUYes — revisit if wrong
Table 3 — Three different things — label them differently

4How It Works Internally — Handling Constraints

Handling constraints in an interview
Figure 3 — Handling constraints in an interview
StepPractice
DiscoverAsk directly ("Any cloud, regulatory or team constraints?") and listen for hints
ClassifyBusiness, regulatory, technical, organisational, operational
Verify"Is the Oracle database fixed, or could we introduce another store?"
ApplyState the consequence immediately
RecordWrite constraints in a corner of the board; refer to them when choosing
Table 4 — Five steps, one minute

4ADeep Dive — Regulatory Constraints and Their Consequences

RegimeTypical consequence
PCI DSS (card data)Tokenise via PSP; keep PAN out of your systems; segmented scope
GDPR / DPDP (personal data)Consent, purpose limitation, deletion, data minimisation
Data residencyRegion choice; DR within country; no global replication of PII
Health data rulesEncryption, access audit, consent for sharing
Financial regulationAudit trail retention, segregation of duties, outsourcing approvals
Table 5 — Know the design consequence of common regimes

4BDeep Dive — Organisational Constraints

ConstraintDesign consequence
Team of 5–8 engineersModular monolith; managed services; few moving parts
No Kubernetes skillsServerless or managed PaaS
Strong Java skillsJava/Spring stack rather than a new language
Separate teams per domainService boundaries aligned to teams
24×7 on-call not availableManaged services; high automation; graceful degradation
Table 6 — Conway's law in practice

4CDeep Dive — Technical Constraints

ConstraintDesign consequence
Existing mainframe is system of recordACL; CDC for reads; no direct writes except via mainframe APIs
Company standard: AWSUse AWS-native options; justify any exception
Legacy clients speak SOAPFacade with SOAP↔REST translation
Third-party API rate limit 100 req/sQueue and batch; cache responses
Table 7 — Technical givens shape integration

4DDeep Dive — Hard vs Soft

Constraint as statedVerify questionResult
"We use Oracle.""For new services too, or only existing ones?"Soft for new services
"Data must stay in India.""Regulatory or preference?"Hard (regulation)
"Launch in 3 months.""Is there an event driving the date?"Hard (festival sale)
"No open source.""Policy or past experience?"Soft (approved OSS list exists)
Table 8 — Always verify before designing around it

4EDeep Dive — Conflicting Constraints

ConflictHandling
99.99% availability vs single region onlyState the tension; propose multi-AZ + fast DR; ask which matters more
3-month deadline vs full feature listPropose MVP scope; defer features
Tiny budget vs heavy complianceManaged compliant services; limit scope of regulated data
Table 9 — Surface conflicts; don't silently choose

4FDeep Dive — Solution Architect Constraints

ConstraintWhy it matters
Existing vendor contracts and licencesBuild/buy and exit options
Enterprise architecture standardsApproved technology list, patterns
Procurement lead timesDelivery roadmap
Change freeze windowsRelease and migration planning
Budget cyclesPhasing of investment
Table 10 — Delivery and commercial constraints

4GDeep Dive — Discovering Unstated Constraints

Interviewers do not always volunteer constraints; some are implied by the domain. A candidate who recognises them without being told shows real experience.

Domain cueLikely constraint to confirm
Payments, cards, walletsPCI DSS scope, RBI or central-bank rules, settlement windows
Health, insuranceConsent, privacy law, audit retention, clinical safety
Government, public sectorData residency, accessibility, procurement rules
Banking core, telecom billingExisting system of record, batch windows, regulator approvals
Retail at festival peaksChange freezes, hard launch dates, extreme peaks
Start-up MVPSmall team, tight budget, speed over completeness
Table 11 — Domain cues that imply constraints

Phrase implied constraints as confirmations: "Since this handles cards, I'll assume PCI DSS applies and keep card data out of our systems — correct?" This both demonstrates knowledge and lets the interviewer correct you cheaply.

4HDeep Dive — Constraints Over the Life of the Interview

MomentWhat to do with constraints
Clarification (minutes 0–8)Discover, classify, verify, write in the constraints corner
High-level designUse them to choose styles and eliminate options aloud
Deep divesCheck each component against regulatory and team constraints
Challenges from interviewerRefer back: "That option conflicts with C1, so…"
SummaryRecap how each constraint is respected
New constraint introduced lateRe-evaluate affected decisions explicitly
Table 12 — Constraints are referenced throughout, not only at the start

A late constraint is often a deliberate test: "Now assume the company can only use one cloud provider" or "Legal says customer data cannot leave the EU." Strong candidates pause, name which decisions are affected and adapt only those, instead of redesigning everything or ignoring the change.

4IDeep Dive — Constraint-Driven Option Elimination

A structured way to show constraints at work is a quick elimination table: list the natural options for a key decision, then strike out those that violate a constraint, leaving a short list to choose between on quality attributes.

Decision: primary datastore for ordersViolatesStatus
Self-managed Cassandra clusterC3 no dedicated DB operations staffEliminated
Global multi-region database with automatic replicationC1 data must remain in IndiaEliminated
New vendor's proprietary databaseC6 procurement takes 4 monthsEliminated
Aurora PostgreSQL (existing enterprise agreement)—Candidate
DynamoDB in Mumbai region—Candidate
Table 13 — Elimination leaves two options to compare on drivers

Only after elimination does the candidate compare the remaining options on quality attributes — for example, relational queries and transactions (Aurora) versus predictable scaling with key-value access (DynamoDB). This two-stage reasoning — constraints first, then trade-offs — is quick to explain and very persuasive.

StageQuestionOutput
1 FeasibilityWhich options respect all hard constraints?Short list
2 FitnessWhich short-listed option best meets the drivers?Choice with trade-offs
3 SensitivityWould a soft constraint changing alter the choice?Revisit trigger
Table 14 — Two-stage selection

5APIs / Features / Syntax

TEXT
CONSTRAINTS CORNER (whiteboard) — Health records sharing platform
C1 [REG, hard]  Health data stays in India; consent required for sharing
C2 [TECH, hard] Hospitals' EMRs remain source of truth; FHIR/HL7 interfaces
C3 [ORG, soft]  Team of 12, strong Java; limited ops staff → prefer managed
C4 [BUS, hard]  Pilot live in 6 months (government programme)
C5 [OPS, soft]  No 24×7 on-call initially → automation, graceful degradation
TEXT
CONSTRAINT → CONSEQUENCE (say it out loud)
"Because card data is out of scope for PCI reasons (C2), the client sends card details
directly to the PSP and we only store a token. That keeps our services out of PCI scope
and removes the need for an HSM on our side."
TEXT
VERIFYING PHRASES
"Is that fixed, or a preference we could revisit with a good reason?"
"Is the deadline tied to an external event?"
"Does the standard apply to new systems as well as existing ones?"

6Practical Examples

6.1 Constraint that reshaped a design

In a health-records interview, the candidate learned hospital EMRs must remain the source of truth. Instead of a central clinical database, they designed a consent-aware integration hub — exactly the interviewer's expected answer.

6.2 Ignored constraint

A candidate proposed multi-region active-active across India and Singapore; the interviewer had stated data residency earlier. The rest of the design lost credibility.

6.3 Soft constraint challenged well

Told "we use Oracle", a candidate asked whether it applied to a new high-write location service. It didn't, and a time-series store was accepted for that component with a clear rationale.

6.4 Worked example — constraint table (payment platform)

ConstraintTypeHard/softConsequence
Card data PCI DSSRegulatoryHardPSP tokenisation
RBI data localisationRegulatoryHardIndia regions; DR in India
Existing ledger in PostgresTechnicalSoftReuse; add partitioning
Team of 10OrganisationalHard4–5 services, managed Kafka
Launch before festive saleBusinessHardMVP scope
Table 15 — Classify and derive

6.5 Worked example — using constraints to eliminate options

OptionEliminated by
Self-managed Kafka clusterC3 limited ops staff
Global CDN caching of patient dataC1 residency + consent
Rewrite EMRsC2 EMRs remain source of truth
RemainingManaged event bus + FHIR hub + India region
Table 16 — Constraints shrink the option space

6.6 Worked example — conflict surfaced

Dialogue
Candidate: "We need 99.99% but only one region is allowed. Multi-AZ gets us to roughly 99.95% with good engineering; 99.99% usually needs a second region. Which should give?"
Interviewer: "Availability target can be 99.95% for now."
Table 17 — Tension made explicit, decided by the owner

6.7 Worked example — interview whiteboard

PromptAnswer outline
"How do you handle constraints in a design interview?""Distinguish requirements, constraints and assumptions. Ask about business, regulatory, technical, organisational and operational constraints. Verify hard vs soft ('is that fixed?'). State each constraint's design consequence immediately and use constraints to eliminate options. Surface conflicts and let the interviewer choose. Keep a constraints corner on the board and refer to it. In SA interviews include contracts, standards, procurement and freeze windows."
Table 18 — Structured answer

6.8 Worked example — organisational constraint

GivenDesign
Team of 6, no KubernetesModular monolith on managed containers (ECS/App Runner), managed Postgres, SQS
WhyFewer moving parts; team can operate it
Table 19 — Conway-aware design

6.9 Worked example — technical constraint (legacy)

GivenDesign
Mainframe is policy master; nightly batch onlyACL + CDC stream for reads; writes via mainframe transaction API; cache for hot reads
Table 20 — Integration shaped by the legacy constraint

6.10 Worked example — anti-patterns

Anti-patternExample
Preference treated as constraint"We must use microservices"
Invented constraint"We can't use caching"
Constraint forgottenProposes storing cards
Ideal design anywayIgnores team size
Table 21 — What interviewers watch for

6.11 Worked example — SA delivery constraints

ConstraintConsequence
Procurement: 4 months for new vendorsPrefer existing vendors/cloud marketplace
Year-end freezeCutovers before December
Budget in two phasesPhase 1 MVP; phase 2 scale-out
Table 22 — Delivery constraints shape roadmaps

6.12 Worked example — constraint recap at the end

ConstraintHow design respects it
C1 residencyIndia regions only
C2 EMR source of truthHub, no clinical master
C3 small teamManaged services
C4 6-month pilotMVP scope, buy video
Table 23 — Close the loop in your summary

6.13 Worked example — late constraint in action

Interviewer addsCandidate response
"EU customers' data must stay in the EU.""That affects storage, backups and analytics. I'll partition users by home region, deploy an EU stack for their data, and keep global services free of PII — routing and catalogue stay shared."
"Only managed services — no self-run databases.""Replace self-managed Cassandra with DynamoDB; the access pattern fits single-table design; I lose some query flexibility."
Table 24 — Adapting only what the constraint touches

6.14 Worked example — implied constraints recognised

PromptCandidate's confirmation
"Design a wallet app""I'll assume RBI PPI rules and KYC tiers apply, and card data stays with the PSP."
"Design telemedicine""Consent for sharing records and India data residency are likely — correct?"
"Design a festival sale checkout""There's probably a change freeze before the sale; the design must be production-proven early."
Table 25 — Demonstrating domain experience

6.15 Worked example — two-stage choice spoken aloud

StageWhat the candidate says
Feasibility"Self-run clusters are out because of the small ops team, and global replication is out because of residency. That leaves Aurora Postgres and DynamoDB."
Fitness"Orders need multi-item transactions and ad-hoc support queries, so Aurora fits better; DynamoDB would need careful single-table design."
Sensitivity"If write volume grew beyond a single primary's capacity, I'd revisit — partition by city first, DynamoDB second."
Table 26 — Constraints narrow, drivers decide

6.16 Worked example — constraints recap card

ConstraintRespected byEvidence on board
C1 residencyMumbai primary, Hyderabad DRDeployment sketch
C2 PCIPSP tokenisationPayment flow arrow
C3 small ops teamManaged services onlyComponent labels
C4 deadlineMVP scope, bought componentsScope box
Table 27 — A final check that every constraint is visibly honoured

7Common Problems & Mistakes

MistakeFix
Not askingDirect constraint question
Not verifying"Is that fixed?"
No consequences statedSay the impact
Conflicts hiddenSurface and ask
Table 28 — Mistakes and fixes

In interviews, constraint mistakes are usually listening mistakes. Candidates rush from the prompt to boxes and arrows without asking a single constraint question, then propose something the interviewer has quietly ruled out, such as multi-region active-active under a residency rule. Others hear a constraint but never verify it, so "we use Oracle" becomes a reason to force every component onto Oracle when the interviewer would have accepted a different store for a new service. Many state constraints during clarification and then never mention them again, so the interviewer cannot see how they shaped the design. And when two constraints conflict, weaker candidates silently pick one, which looks like they missed the tension; stronger ones name it and ask which should give.

8Performance & Production Considerations

ConstraintOperational consequence
Limited on-callManaged services, self-healing
Maintenance windowsRolling deploys or scheduled migrations
Third-party rate limitsQueues, backoff, caching
Table 29 — Constraints in operation

Interviewers often probe whether a design can be run by the organisation described, so turn operational constraints into explicit choices. With no 24×7 on-call team, prefer managed databases, queues and container platforms, design for self-healing with health checks, retries and graceful degradation, and keep paging limited to customer-facing SLO breaches. Maintenance windows and change freezes shape deployment strategy: rolling or blue-green deploys for application changes, expand-and-contract schema migrations scheduled in the window, and cutovers planned well before a festival freeze. Third-party rate limits become queues, batching, backoff with jitter and response caching, with a clear user experience when the limit is hit. Saying these consequences aloud shows the interviewer you have operated real systems, not just drawn them.

9Architecture & Design Considerations

GuidelineDetail
Constraints narrow optionsUse them early
Verify hardnessAvoid false limits
Keep visibleRefer back
Table 30 — Design guidance

10Interview Questions & Answers

Q1BasicConcept

What is a constraint?

A constraint is a condition the solution must accept as given, which no design choice can trade away. It is imposed from outside the design: by the business, such as a budget or a launch date; by regulation, such as PCI DSS or data residency; by technology, such as an existing system of record or a mandated cloud; by the organisation, such as team size and skills; or by operations, such as maintenance windows and support model. In an interview, constraints narrow the solution space and should be identified in the first few minutes, because an elegant design that breaks a stated constraint loses credibility, however good the rest of it is.

Q2BasicConcept

How is it different from a requirement?

A requirement describes what the system must do or achieve, such as handling ten thousand orders per second or keeping p99 latency below 500 milliseconds; a constraint limits how it can be built, such as data staying in India or the company using AWS only. Requirements can sometimes be traded against each other or renegotiated with stakeholders, for example accepting 99.95 instead of 99.99 percent availability. Hard constraints cannot be traded at all; they simply remove options. Assumptions are a third category, beliefs such as ten million daily users that you have not confirmed. Keeping the three separate on the whiteboard makes your reasoning visible and lets the interviewer correct you early.

Q3IntermediateConcept

Name constraint types.

The usual types are business, regulatory, technical, organisational and operational. Business constraints include budget, deadlines tied to events such as a festival sale, and contractual obligations. Regulatory constraints cover PCI DSS for card data, privacy law such as DPDP or GDPR, data residency, health-data rules and financial regulation such as audit retention. Technical constraints include existing systems of record, mandated clouds and standards, legacy protocols and third-party rate limits. Organisational ones are team size, skills and structure. Operational constraints are on-call availability, maintenance windows and support models. Asking about each category in turn is a quick checklist that ensures nothing important is missed in the clarification phase.

Q4IntermediateTricky

Why verify hard vs soft?

Because many stated constraints are really preferences, and designing around a preference can rule out the best option for no reason. A hard constraint comes from law, contract or physics and cannot change; a soft one is a strong preference, standard or habit that could change with a good justification. Verify with short, respectful questions: is that fixed or a preference, does the standard apply to new systems as well as existing ones, is the deadline tied to an external event? Told "we use Oracle", one candidate asked whether that applied to a new high-write location service; it did not, and a time-series store was accepted with a clear rationale.

Q5Senior EngineerDesign

What does PCI DSS imply for design?

PCI DSS means card data should stay out of your systems wherever possible, because everything that stores, processes or transmits card numbers falls into PCI scope, with heavy controls and audits. The standard design is tokenisation through the payment service provider: the client sends card details directly to the PSP using its hosted fields or SDK, and your services only ever see a token. That keeps your platform out of most of the scope and removes the need for your own HSM and key management for card data. Where some components must handle card data, isolate them in a segmented cardholder data environment with strict network controls, encryption, logging and access reviews.

Q6Senior EngineerTrade-off

How does team size constrain architecture?

Team size limits how many moving parts the organisation can build, run and support. A team of five to eight engineers cannot sensibly own twenty microservices, each with its own pipeline, dashboards, on-call rotation and upgrade work. Small teams should favour a modular monolith or a handful of services, managed databases, queues and container platforms, and a stack they already know, typically Java and Spring Boot, rather than a new language. A team of six without Kubernetes skills is well served by a modular monolith on ECS or App Runner with managed PostgreSQL and SQS. Larger organisations with separate domain teams can justify more services aligned to those team boundaries.

Q7Technical ArchitectBehavioural

How handle conflicting constraints?

Surface the conflict explicitly, explain the trade-off with numbers, propose options and let the interviewer, acting as the business owner, decide which constraint gives. For example: we need 99.99 percent availability but only one region is allowed; multi-AZ with good engineering gets us to roughly 99.95 percent, while 99.99 usually needs a second region, so which should give? Other common conflicts are a three-month deadline against a full feature list, resolved by an MVP scope, and a tiny budget against heavy compliance, resolved with managed compliant services and less regulated data. Silently picking one constraint looks like you missed the tension; naming it shows senior judgement.

Q8Technical ArchitectConcept

How do constraints help in interviews?

They let you eliminate options quickly and justify every choice you keep. Instead of comparing every possible datastore, you strike out those that violate a constraint: a self-managed Cassandra cluster is out because there are no dedicated database operations staff, a global multi-region database is out because data must stay in India, and a new vendor's product is out because procurement takes four months. Only the survivors, such as Aurora PostgreSQL and DynamoDB, are compared on quality attributes. This two-stage reasoning, feasibility first and fitness second, saves interview time, keeps the design grounded, and gives a ready answer whenever the interviewer asks why you did not choose something else.

Q9Solution ArchitectConcept

What delivery constraints matter in SA interviews?

Solution architect interviews add delivery and enterprise constraints that senior engineer interviews often skip. Existing vendor contracts and licences shape build-versus-buy and exit options. Enterprise architecture standards and approved technology lists define what can be used without exceptions. Procurement lead times, often three to six months for a new vendor, push toward existing vendors or the cloud marketplace. Change freeze windows, such as year-end or festival freezes, drive release and migration plans, and budget cycles determine how investment is phased, for example an MVP in phase one and scale-out in phase two. Mentioning these unprompted shows you think about how a solution actually gets delivered inside an organisation.

Q10Solution ArchitectTricky

What's the classic constraint mistake?

The classic mistake is designing the ideal system while ignoring a constraint the interviewer stated earlier. A candidate proposes multi-region active-active across India and Singapore after being told that data must stay in India, or twenty microservices for a team of five, or storing card numbers in the orders database. Even if the rest of the design is excellent, it signals poor listening, and interviewers deliberately test this. The protection is simple: write each constraint in a corner of the whiteboard as soon as you hear it, refer to it whenever you make a choice, and finish by recapping how the design respects each constraint, including any introduced late.

Newsletter

Get new tutorials every week

New ArchitectMind tutorials and interview questions, once a week. No spam, unsubscribe anytime.

Almost done! Check your inbox and click the confirmation link to complete your subscription.
Keep going in Book 10

Security, System Design & Solution Architecture

Volume I · Topic 1.1

Security Architecture

Security Architecture

Volume I · Topic 1.2

CIA Triad

Security Architecture

Volume I · Topic 1.3

Security Principles

Security Architecture

Volume II · Topic 1.1

What Is System Design?

System Design Fundamentals

Volume II · Topic 1.2

Requirements

System Design Fundamentals

Volume II · Topic 1.3

Constraints

System Design Fundamentals

Volume III · Topic 1.1

Traffic Distribution

Large-Scale & Distributed System Design

Volume III · Topic 1.2

Load Balancing

Large-Scale & Distributed System Design

Volume III · Topic 1.3

Horizontal Scaling

Large-Scale & Distributed System Design

Volume IV · Topic 1.1

Understanding the Business

End-to-End Solution Architecture

Volume IV · Topic 1.2

Stakeholder Identification

End-to-End Solution Architecture

Volume IV · Topic 1.3

Business Capabilities

End-to-End Solution Architecture

Volume V · Topic 1.1

ADR

Architecture Decisions, Trade-offs & Risk

Volume V · Topic 1.2

Decision Context

Architecture Decisions, Trade-offs & Risk

Volume V · Topic 1.3

Alternatives

Architecture Decisions, Trade-offs & Risk

Volume VI · Topic 1.1

Legacy System Discovery

Legacy Modernization & Transformation

Volume VI · Topic 1.2

Dependency Analysis

Legacy Modernization & Transformation

Volume VI · Topic 1.3

Architecture Reverse Engineering

Legacy Modernization & Transformation

Volume VII · Topic 1.1

Architecture & Agile

Solution Architecture Delivery & Governance

Volume VII · Topic 1.2

Architecture & Product Management

Solution Architecture Delivery & Governance

Volume VII · Topic 1.3

Architecture & Development Teams

Solution Architecture Delivery & Governance

Volume VIII · Topic 1.1

Clarifying Requirements

Solution Architect Workshops, Interviews & Final Assessment

Volume VIII · Topic 1.2

Asking the Right Questions

Solution Architect Workshops, Interviews & Final Assessment