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
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.
Figure 1 — Types of constraints
Figure 2 — Constraint → design consequence
Vocabulary
Meaning
Hard constraint
Non-negotiable (law, contract, physics)
Soft constraint
Strong preference that could change with justification
Constraint consequence
The design choice a constraint forces or forbids
Conflicting constraints
Two constraints that cannot both be fully met
Table 1 — Terms
2Why It Exists
Ignoring constraints
Consequence
Proposing multi-cloud when company is AWS-only
Interviewer sees poor listening
Storing card numbers
Fails PCI; unrealistic
20 microservices for a team of 5
Unbuildable
Global active-active under data residency
Illegal
Table 2 — Why constraints matter
3Core Concepts — Requirement vs Constraint vs Assumption
Type
Definition
Example
Can you trade it?
Requirement
Something the system must do or achieve
p99 < 500 ms
Sometimes, with stakeholder agreement
Constraint
A condition you must accept
Data must stay in India
No (hard) / rarely (soft)
Assumption
Something you believe but haven't confirmed
10M DAU
Yes — revisit if wrong
Table 3 — Three different things — label them differently
4How It Works Internally — Handling Constraints
Figure 3 — Handling constraints in an interview
Step
Practice
Discover
Ask directly ("Any cloud, regulatory or team constraints?") and listen for hints
Interviewers do not always volunteer constraints; some are implied by the domain. A candidate who recognises them without being told shows real experience.
Domain cue
Likely constraint to confirm
Payments, cards, wallets
PCI DSS scope, RBI or central-bank rules, settlement windows
Existing system of record, batch windows, regulator approvals
Retail at festival peaks
Change freezes, hard launch dates, extreme peaks
Start-up MVP
Small 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
Moment
What to do with constraints
Clarification (minutes 0–8)
Discover, classify, verify, write in the constraints corner
High-level design
Use them to choose styles and eliminate options aloud
Deep dives
Check each component against regulatory and team constraints
Challenges from interviewer
Refer back: "That option conflicts with C1, so…"
Summary
Recap how each constraint is respected
New constraint introduced late
Re-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.
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 orders
Violates
Status
Self-managed Cassandra cluster
C3 no dedicated DB operations staff
Eliminated
Global multi-region database with automatic replication
C1 data must remain in India
Eliminated
New vendor's proprietary database
C6 procurement takes 4 months
Eliminated
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.
Stage
Question
Output
1 Feasibility
Which options respect all hard constraints?
Short list
2 Fitness
Which short-listed option best meets the drivers?
Choice with trade-offs
3 Sensitivity
Would a soft constraint changing alter the choice?
Revisit trigger
Table 14 — Two-stage selection
5APIs / Features / Syntax
TEXT
CONSTRAINTS CORNER (whiteboard) — Health records sharing platformC1 [REG, hard] Health data stays in India; consent required for sharingC2 [TECH, hard] Hospitals' EMRs remain source of truth; FHIR/HL7 interfacesC3 [ORG, soft] Team of 12, strong Java; limited ops staff → prefer managedC4 [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 detailsdirectly to the PSP and we only store a token. That keeps our services out of PCI scopeand 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)
Constraint
Type
Hard/soft
Consequence
Card data PCI DSS
Regulatory
Hard
PSP tokenisation
RBI data localisation
Regulatory
Hard
India regions; DR in India
Existing ledger in Postgres
Technical
Soft
Reuse; add partitioning
Team of 10
Organisational
Hard
4–5 services, managed Kafka
Launch before festive sale
Business
Hard
MVP scope
Table 15 — Classify and derive
6.5 Worked example — using constraints to eliminate options
Option
Eliminated by
Self-managed Kafka cluster
C3 limited ops staff
Global CDN caching of patient data
C1 residency + consent
Rewrite EMRs
C2 EMRs remain source of truth
Remaining
Managed 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
Prompt
Answer 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
Given
Design
Team of 6, no Kubernetes
Modular monolith on managed containers (ECS/App Runner), managed Postgres, SQS
Why
Fewer moving parts; team can operate it
Table 19 — Conway-aware design
6.9 Worked example — technical constraint (legacy)
Given
Design
Mainframe is policy master; nightly batch only
ACL + 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-pattern
Example
Preference treated as constraint
"We must use microservices"
Invented constraint
"We can't use caching"
Constraint forgotten
Proposes storing cards
Ideal design anyway
Ignores team size
Table 21 — What interviewers watch for
6.11 Worked example — SA delivery constraints
Constraint
Consequence
Procurement: 4 months for new vendors
Prefer existing vendors/cloud marketplace
Year-end freeze
Cutovers before December
Budget in two phases
Phase 1 MVP; phase 2 scale-out
Table 22 — Delivery constraints shape roadmaps
6.12 Worked example — constraint recap at the end
Constraint
How design respects it
C1 residency
India regions only
C2 EMR source of truth
Hub, no clinical master
C3 small team
Managed services
C4 6-month pilot
MVP scope, buy video
Table 23 — Close the loop in your summary
6.13 Worked example — late constraint in action
Interviewer adds
Candidate 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
Prompt
Candidate'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
Stage
What 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
Constraint
Respected by
Evidence on board
C1 residency
Mumbai primary, Hyderabad DR
Deployment sketch
C2 PCI
PSP tokenisation
Payment flow arrow
C3 small ops team
Managed services only
Component labels
C4 deadline
MVP scope, bought components
Scope box
Table 27 — A final check that every constraint is visibly honoured
7Common Problems & Mistakes
Mistake
Fix
Not asking
Direct constraint question
Not verifying
"Is that fixed?"
No consequences stated
Say the impact
Conflicts hidden
Surface 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
Constraint
Operational consequence
Limited on-call
Managed services, self-healing
Maintenance windows
Rolling deploys or scheduled migrations
Third-party rate limits
Queues, 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
Guideline
Detail
Constraints narrow options
Use them early
Verify hardness
Avoid false limits
Keep visible
Refer 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.
Your subscription could not be saved. Please try again.
Almost done! Check your inbox and click the confirmation link to complete your subscription.