20 Barclays interview questions with full model answers — Behavioral, Technical, System design, Coding. Drawn from the same bank ChannelPulse drills from (43 Barclays questions in total).
43 Barclays questions in the bank
4 categories covered
6 roles: Data Science Manager, Design Manager, Engineering Manager, Group Product Manager, Investment Banking Analyst
BehavioralMediumBarclaysEngineering Manager
1. Tell me about a time you influenced senior stakeholders to adopt a technical change.
Model answer
Situation
At a company processing roughly 8 million customer events a day, our checkout service synchronously called a fraud-scoring service. That coupling contributed to timeouts during traffic spikes and made deployments across the two teams risky. I was the engineering manager for checkout; adopting an event-driven design required agreement from senior leaders in Payments, Risk, and Operations, who were rightly concerned about correctness and operational complexity.
Task
I needed to gain support for a technical change that improved resilience without compromising fraud coverage or delaying a committed launch. The key tension was immediate delivery versus a safer long-term architecture.
Action
I started by aligning on the business problem, not the technology: I brought together checkout and Risk leads to review timeout rates, failed checkouts, incident history, and the cost of synchronous dependency failures.
I asked the team to compare options, including optimizing the existing call, adding a circuit breaker, and moving to asynchronous events. We recommended a phased event-driven design, while acknowledging delayed scoring and duplicate delivery as risks.
I translated the proposal into an executive decision brief: expected customer impact, migration cost, ownership boundaries, failure modes, and measurable success criteria. I recommended keeping a synchronous fallback for high-risk transactions during the transition.
I negotiated a limited pilot rather than asking for a broad rewrite. We agreed on a canary for 5% of traffic, idempotent event handling, a replay process, and a rollback switch owned jointly by both teams.
I set up weekly reviews with senior stakeholders and shared both positive metrics and issues. When the first replay test exposed duplicate decisions, I made fixing idempotency a launch gate rather than minimizing the finding.
Result
The pilot reduced checkout timeouts attributable to the Risk dependency by 70% and cut related incidents from four per quarter to one in the following two quarters. Senior stakeholders approved the staged rollout, and the teams reused the event contract for two additional workflows. I learned that influencing senior stakeholders is less about selling a preferred architecture and more about making trade-offs, ownership, and rollback conditions explicit.
What interviewers listen for
Connects technical change to business outcomes and risk.
Seeks cross-functional input and earns commitment without relying on authority.
Uses evidence, staged rollout, and measurable results.
BehavioralMediumBarclaysEngineering Manager
2. How do you mentor junior engineers on complex architectural concepts?
Model answer
Situation — On a team I led, we were splitting a tightly coupled application into services, and a junior engineer was responsible for a change involving consistency across service boundaries. They understood the code but were understandably unsure about concepts like ownership, retries, and eventual consistency. The decision mattered because a mistake could create duplicate work or stale customer data.
Task — I wanted to help them reason independently about the architecture, not just hand them a design to copy. I also needed to keep the project moving and make the design safe enough to review and operate.
Action
I first asked them to explain the user problem, data ownership, and failure cases in their own words. That showed me whether the gap was terminology, system behavior, or confidence.
I used a concrete example from our domain and drew the request flow together, including what happens when a network call times out after the downstream service has committed.
Rather than prescribe a pattern, I compared two options: synchronous coordination and an asynchronous event with idempotent handling. We discussed latency, consistency, operational complexity, and how each option behaves under retries.
I asked them to write a short design note with invariants, failure modes, and open questions. I reviewed it with questions and specific feedback, then had a senior engineer independently review the risky parts.
I gave them ownership of a small implementation and paired on the first test cases, especially duplicate delivery and recovery. I made the learning visible in a team design review so others could contribute and benefit.
Result — They delivered the change with idempotent processing and clear operational metrics, and later led a similar design discussion with less support. The team also reused the failure-mode checklist in subsequent reviews. I learned that mentoring complex topics works best when I teach a repeatable way to reason—constraints, invariants, trade-offs, and failure behavior—rather than asking someone to memorize architectural patterns.
What an Engineering Manager-level answer must show
Coaching tailored to the person, while preserving meaningful ownership.
Technical rigor balanced with delivery risk and psychological safety.
A result in the engineer’s growth and the team’s capability, not only project completion.
What interviewers listen for
Specific examples of questions, feedback, and follow-up.
Evidence the engineer became more independent.
A practical way you verify understanding and manage risk.
BehavioralMediumBarclaysEngineering Manager
3. Describe a conflict you had with another team and how you resolved it.
Model answer
Situation
A product team wanted to launch a new customer workflow, but its implementation depended on an API owned by our platform team. The platform team had a reliability commitment and was in the middle of a migration; the product team felt the API changes kept moving and that their launch was being blocked. As the manager of the product engineering team, I needed to resolve the conflict without dismissing either team’s constraints.
Task
I owned getting both teams to a clear delivery plan: protect the platform’s reliability and migration work while giving Product a dependable path to launch. The immediate challenge was that the teams disagreed about the cause of the delay and had started escalating through separate leadership channels.
Action
I met with each tech lead separately first, listened for the underlying concern, and checked the timeline against tickets, API changes, and incidents rather than assuming either account was complete.
I brought the leads together to agree on shared facts. We found that some delays came from changing requirements, while others came from unclear API ownership and late compatibility feedback.
I reframed the discussion around a shared outcome: a safe launch date, not winning the argument about who caused the delay. I asked each team to identify its non-negotiables and what it could flex.
We agreed on a versioned API contract, a compatibility test owned by the consumer team, and a weekly change review. The platform team committed to a stable interface and a named contact; my team committed to freezing scope and supporting integration tests.
I worked with both managers to split the work into a launch-critical path and follow-up improvements. We documented decision owners, escalation criteria, and a rollback plan so the same disagreement would not recur informally.
Result
We launched one week later than the original target, but avoided an unsafe platform change and delivered the core workflow. Integration defects fell by about 40% in the next release, and the shared contract process became the default for other API consumers. I learned to address conflict early by separating facts from interpretations and giving both sides a real role in designing the solution.
What interviewers listen for
Takes responsibility for resolving tension rather than escalating blame.
Makes trade-offs explicit and protects the broader organization’s goals.
Establishes durable working agreements, not just a one-time compromise.
BehavioralMediumBarclaysSoftware Engineer
4. Tell us about a time you faced an obstacle or confrontation.
Model answer
Situation — I once disagreed with a senior colleague about how to handle failures from a downstream service in a transaction workflow. Their proposal was to retry requests aggressively so that transient errors would be less visible to users. I understood the goal, but the workflow was not fully idempotent, so retries could potentially create duplicate work or make the transaction state harder to reconcile.
Task — I needed to raise the risk clearly without turning a technical disagreement into a personal conflict. We also had a release date approaching, so the decision had to balance resilience, correctness, and delivery time.
Action
I first asked questions to understand the colleague’s assumptions, including which errors were transient and whether the downstream operation guaranteed idempotency. That helped keep the discussion focused on behavior rather than preference.
I gathered evidence from traces and test cases showing that a timeout could occur after the downstream system had completed the operation but before our service received the response.
I described the concrete failure mode: a retry could repeat an operation whose outcome was unknown. I explained why that was a data-integrity and reconciliation risk, not simply a performance concern.
Rather than only objecting, I proposed a safer alternative: a stable idempotency key, bounded retries with backoff for appropriate errors, and an explicit “outcome unknown” state for cases requiring reconciliation.
I wrote a small failure-injection test to demonstrate the behavior and asked the colleague and operations representative to review the proposed handling. We agreed to release the bounded approach first and revisit broader automation once the downstream contract was clarified.
Result — We avoided shipping an unbounded retry path, delivered the release on schedule, and had no duplicate operations from the failure mode during the initial rollout. The discussion also led to a clearer contract between the services and better tests for ambiguous outcomes. I learned to challenge ideas early and respectfully: bring evidence, explain the impact in business terms, and offer a practical alternative. That approach is important at Barclays, where robust controls and constructive collaboration need to coexist with delivery pace.
BehavioralMediumBarclaysSoftware Engineer
5. Tell us about a time you managed a project or demonstrated leadership or innovation.
Model answer
Situation — On a previous team, we needed to replace a manual process for reconciling transaction exceptions. It relied on spreadsheets and repeated checks across several systems, creating delays for operations and making it difficult to see which cases were unresolved. I was an engineer on the team, but the work crossed engineering, operations, and risk, so no single team could deliver a useful solution alone.
Task — I took responsibility for coordinating the technical delivery of a small first release. The challenge was to improve turnaround time while preserving auditability and avoiding a long project that attempted to automate every exception type at once.
Action
I met with operations users and risk partners to map the current workflow, identify common exception types, and agree which decisions must remain under human control.
I turned that into a narrow MVP: ingest the relevant events, show each case’s status and history, and route exceptions to an owner. I wrote down acceptance criteria, including access controls and an auditable record of changes.
I broke the work into independently testable components and agreed interfaces with the teams responsible for upstream data. This exposed a schema mismatch early, before it became a release blocker.
I ran short weekly reviews with engineering and operations, using a working prototype to get feedback rather than relying on written requirements alone. When stakeholders requested additional automation, I explained the control and delivery implications and proposed a later phase.
I coordinated testing with representative exception cases, made the release gradual, and ensured the operations team had a short guide and a clear escalation route.
Result — The first release reduced the median time to resolve the covered exceptions by about 30% and gave users a searchable history instead of separate spreadsheets. We delivered within the planned quarter and avoided automating decisions that required human judgment. I’m proud of the leadership aspect: I didn’t need formal authority to create clarity, surface dependencies, and keep the team focused on a safe, valuable outcome. I also learned that innovation in a regulated environment is often disciplined simplification, not automation for its own sake.
BehavioralMediumBarclaysEngineering Manager
6. Describe a time you managed a high-pressure deadline with limited resources.
Model answer
Situation
At a previous company, I managed a team of seven engineers responsible for a customer-facing workflow that was part of a committed launch. Six weeks before the date, a partner integration changed its contract and our reliability tests revealed that the existing implementation would fail under expected traffic. We had no option to add headcount quickly, and delaying would affect a coordinated customer rollout. I would adapt the scale and details here to match my own experience.
Task
I owned getting a safe, useful release to customers on time, while protecting the team from an unsustainable all-hands crunch. The tension was between delivering the full original scope and reducing scope enough to validate the critical customer journey with acceptable reliability.
Action
I brought product, engineering, support, and the partner together within a day. I made the risks, dependencies, and decision deadline explicit rather than letting each group assume the full scope was still achievable.
I decomposed the launch into must-have and deferrable capabilities. We kept the core workflow and essential monitoring, but moved two low-usage configuration options and a non-blocking reporting feature to a follow-up release. I used customer impact and dependency risk—not which team argued loudest—to make the cut.
I assigned a single technical owner to the integration and paired them with another engineer for review and continuity. I protected time for the rest of the team to finish test automation and operational readiness instead of spreading everyone across every task.
I set short daily check-ins focused on changed risks, blockers, and decisions, and gave executives a concise status update twice a week. When a late partner change threatened the plan, I asked for a versioned contract and agreed a fallback behavior rather than allowing an unbounded scope change.
I insisted on a staged rollout with a feature flag, partner sandbox validation, and rollback criteria. We did not treat the deadline as permission to ship without evidence.
Result
We launched the core workflow on the committed date, with no severity-one incidents in the first month. The staged release reached the target customer group, and we delivered the deferred options in the next iteration after validating demand. The team avoided sustained overtime, and the partner contract and rollout checklist became reusable for later launches. I learned that under pressure, the manager’s job is to make trade-offs visible early, protect focus, and preserve a safe path to delivery—not simply ask people to work harder.
What interviewers listen for
Clear personal ownership, scope, and stakes.
Explicit prioritization and trade-offs under resource constraints.
Communication across teams and protection against burnout.
A measurable result and learning, not just “we shipped.”
CodingEasyBarclaysSoftware Engineer
7. Next Greater Element I (LeetCode)
Model answer
The task
For each value in one array, find the first larger value appearing to its right in a second array that contains it. Return -1 when no such value exists.
Key idea
Scan the second array from left to right with a decreasing stack. When a new value is larger than values on the stack, it is the next greater value for each of them; store those answers in a hash map.
Approach
Initialize an empty stack and a map of answers.
For each value in the second array, pop smaller values from the stack and map each popped value to the current value.
Push the current value onto the stack.
Values still on the stack have no greater value to their right.
Build the result by looking up each value from the first array, using -1 when it has no mapped answer.
from typing import List
class Solution:
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
next_greater = {}
decreasing_stack = []
for value in nums2:
# The current value is the first greater value for each
# smaller value waiting on the stack.
while decreasing_stack and decreasing_stack[-1] < value:
next_greater[decreasing_stack.pop()] = value
decreasing_stack.append(value)
# Any value without a recorded answer has no greater value to its right.
return [next_greater.get(value, -1) for value in nums1]
Complexity:
Time: O(n + m), where n and m are the lengths of the two arrays; each value is pushed and popped at most once.
Space: O(m), for the stack and answer map.
Common follow-ups
What if the second array is circular? Scan it twice, using indices modulo its length, and push only during the first pass.
What if values can repeat? Track indices on the stack and define how to match repeated values from the first array.
Can the answers be found online as values arrive? Yes; resolve stack entries when a larger value arrives, while retaining unresolved entries.
CodingEasyBarclaysSoftware Engineer
8. Two Sum (LeetCode)
Model answer
The task
Given a list of integers and a target, return the indices of two distinct elements whose values add up to the target. The usual version guarantees a valid pair.
Key idea
As we scan the list, store each value’s index in a hash table. For the current value, check whether its needed complement has already appeared; this finds a pair in one pass.
Approach
Create a dictionary mapping previously seen values to their indices.
For each element, compute the complement needed to reach the target.
If that complement is in the dictionary, return its stored index and the current index.
Otherwise, store the current value and index, then continue.
from typing import List
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
# Map each value already visited to its index.
seen = {}
for index, value in enumerate(nums):
complement = target - value
# A match must come from an earlier, distinct element.
if complement in seen:
return [seen[complement], index]
seen[value] = index
# The standard problem guarantees a solution.
raise ValueError("No two elements sum to the target")
Complexity:
Time: O(n), where n is the number of elements; each lookup and insertion is O(1) on average.
Space: O(n), for the dictionary of values seen so far.
Common follow-ups
What if there may be multiple valid pairs? Return the first pair found, or keep searching and collect pairs according to the required output rules.
What if the input is sorted? Use two pointers from opposite ends for O(1) extra space; preserve original indices if those are required.
What if values repeat? The dictionary stores indices, and checking before insertion ensures the current element is not paired with itself.
CodingEasyBarclaysSoftware Engineer
9. Valid Parentheses (LeetCode)
Model answer
The task
Determine whether a string of opening and closing round, square, and curly brackets is correctly nested and matched. Return a boolean.
Key idea
A closing bracket must match the most recent unmatched opening bracket. A stack captures that order: push openings, and check each closing bracket against the stack’s top.
Approach
Return False if the string has odd length.
Map each closing bracket to its matching opening bracket.
Scan the string from left to right.
Push opening brackets onto the stack.
For a closing bracket, return False if the stack is empty or its top does not match; otherwise pop.
Return True only if the stack is empty after the scan.
class Solution:
def isValid(self, s: str) -> bool:
pairs = {")": "(", "]": "[", "}": "{"}
openings = set(pairs.values())
stack = []
for char in s:
if char in openings:
stack.append(char)
else:
# A closing bracket must match the latest unmatched opening.
if not stack or stack[-1] != pairs.get(char):
return False
stack.pop()
# Unmatched opening brackets make the sequence invalid.
return not stack
Complexity:
Time: O(n), where n is the string length; each character is processed once.
Space: O(n) in the worst case, when all characters are opening brackets.
Common follow-ups
How would you support additional bracket types? Add their matching pairs to the map.
Can you stop early? Yes; return False as soon as a closing bracket mismatches or has no opening bracket.
What if the input includes non-bracket characters? Define how to handle them, then either ignore them or reject them during the scan.
CodingEasyBarclaysSoftware Engineer
10. Longest Common Prefix (LeetCode)
Model answer
The task
Given a list of strings, return the longest string that is a prefix of every entry. If there is no shared prefix, return an empty string.
Key idea
Compare characters at the same position across all strings, starting from the first string. Stop at the first mismatch or when any string runs out.
Approach
If the list is empty, return an empty string.
Scan each character of the first string from left to right.
For each position, compare that character with the character at the same position in every other string.
If a string is too short or a character differs, return the matching prefix before that position.
If all positions match, return the first string.
from typing import List
class Solution:
def longestCommonPrefix(self, strs: List[str]) -> str:
if not strs:
return ""
first = strs[0]
for i, char in enumerate(first):
for word in strs[1:]:
if i == len(word) or word[i] != char:
return first[:i]
return first
Complexity:
Time: O(S), where S is the total number of characters inspected.
Space: O(1) auxiliary space, excluding the returned prefix.
Common follow-ups
How would you handle many prefix queries over the same set of strings? Build a trie once, then traverse it to find shared prefixes.
Could sorting help? Yes. Sort the strings and compare only the first and last; their common prefix is shared by all strings.
What if strings arrive as a stream? Keep a running prefix and shorten it as each new string arrives.
CodingEasyBarclaysSoftware Engineer
11. Furthest Point From Origin (LeetCode)
Model answer
The task
Given a string of left moves, right moves, and moves that can be chosen as either direction, find the greatest possible distance from the origin after all moves.
Key idea
Count the left moves, right moves, and flexible moves. Choose every flexible move to reinforce the direction with the larger net displacement.
Approach
Count left and right moves.
Count the flexible moves.
Compute the absolute difference between left and right counts.
Add the flexible moves, since each can increase the distance by one.
class Solution:
def furthestDistanceFromOrigin(self, moves: str) -> int:
left = moves.count("L")
right = moves.count("R")
flexible = moves.count("_")
# Direct all flexible moves toward the larger net displacement.
return abs(left - right) + flexible
Complexity:
Time: O(n), where n is the length of moves.
Space: O(1), using only a fixed number of counters.
Common follow-ups
What if flexible moves can also be skipped? Count only the moves that can contribute to increasing the distance.
What if moves have different distances? Choose each flexible move’s direction to maximize the absolute net displacement.
How would you return a sequence of choices? Assign every flexible move the direction that reinforces the net displacement; either direction works if it is zero.
CodingMediumBarclaysSoftware Engineer
12. Design an ATM Machine (LeetCode)
Model answer
The task
Design an ATM that accepts deposits of fixed-denomination banknotes and handles withdrawal requests. A withdrawal should use the fewest notes possible when possible; otherwise, it must leave the ATM’s contents unchanged.
Key idea
Try denominations from largest to smallest, taking as many notes of each as the remaining amount allows. Track the proposed notes separately and update the ATM’s inventory only if the entire amount can be made.
Approach
Store the denominations in ascending order and keep the available count for each.
For a deposit, add each supplied count to the matching inventory slot.
For a withdrawal, scan denominations from largest to smallest.
Greedily record the notes to use and reduce the remaining amount.
If a remainder remains, return [-1] without changing inventory; otherwise, deduct the selected notes and return their counts in ascending denomination order.
class ATM:
def __init__(self):
self.denominations = [20, 50, 100, 200, 500]
self.available = [0] * len(self.denominations)
def deposit(self, banknotesCount: list[int]) -> None:
for i, count in enumerate(banknotesCount):
self.available[i] += count
def withdraw(self, amount: int) -> list[int]:
# Build a tentative withdrawal, largest notes first.
used = [0] * len(self.denominations)
remaining = amount
for i in range(len(self.denominations) - 1, -1, -1):
denomination = self.denominations[i]
take = min(self.available[i], remaining // denomination)
used[i] = take
remaining -= take * denomination
# Do not modify inventory unless the full amount is available.
if remaining != 0:
return [-1]
for i, count in enumerate(used):
self.available[i] -= count
return used
Complexity:
Time: O(1) per operation, since there are five denominations.
Space: O(1), using fixed-size arrays for inventory and tentative notes.
Common follow-ups
What if the denominations are configurable? Store them as input and process them in descending order.
Does greedy always find a valid withdrawal if one exists? Not for arbitrary denominations; use bounded search or dynamic programming unless the denomination system is known to support greedy.
How would you make concurrent withdrawals safe? Protect each withdrawal’s check-and-update sequence with a lock.
What if the ATM should prefer using smaller notes? Reverse the denomination traversal and define the desired optimization precisely.
System designHardBarclaysEngineering Manager
13. Design a system that handles high-frequency transaction processing.
Model answer
1. Requirements & scale
Functional requirements
Accept, validate, and process account-to-account transactions with an auditable, double-entry ledger.
Prevent duplicate charges; support status lookup, reversals, and downstream notifications.
Enforce balance, authorization, and risk rules before committing.
Non-functional requirements
Correctness and durability take priority over availability for a transaction commit; never acknowledge an uncommitted transaction.
Target p99 authorization latency below 150 ms within a region, with 99.99% service availability and recovery-point objective of zero for committed ledger entries.
Encrypt data in transit and at rest; maintain immutable audit records and controlled access.
Back-of-the-envelope: Assume 20,000 transactions/s average and 100,000/s peak. At two 250-byte ledger entries per transaction, raw ledger writes average about 10 MB/s, or roughly 864 GB/day before indexes and replication. Size for at least 3x peak burst headroom; use partitioning and archival because retained ledger volume grows by multiple terabytes per day after replication and overhead.
2. High-level architecture
flowchart TD
subgraph Client[Client]
A[Payment clients]
end
subgraph Edge[Edge and CDN]
B[WAF and rate limits]
end
subgraph LB[Load Balancer]
C[Regional ingress]
end
subgraph Services[API and Services]
D[Transaction API]
E[Risk and policy]
F[Ledger coordinator]
G[Status and query API]
end
subgraph Cache[Cache]
H[Idempotency cache]
I[Account read cache]
end
subgraph Stores[Datastores]
J[Distributed SQL ledger]
K[Audit object store]
end
subgraph Queue[Message Queue]
L[Replicated event log]
end
subgraph Workers[Workers]
M[Notifications and reconciliation]
end
A -->|HTTPS request| B
B -->|filtered traffic| C
C -->|transaction request| D
D -->|policy check| E
D -->|key lookup| H
D -->|balance snapshot| I
D -->|commit command| F
F -->|atomic ledger and balance update| J
J -->|commit event via outbox| L
L -->|transaction event| M
M -->|audit archive| K
D -->|status request| G
G -->|authoritative read| J
Diagram
3. API design
POST /v1/transactions — submit a transaction; require an Idempotency-Key, currency, source, destination, and amount. Return a stable transaction ID and committed, declined, or pending status.
GET /v1/transactions/{id} — retrieve authoritative status and timestamps.
POST /v1/transactions/{id}/reversals — create a compensating ledger transaction; do not mutate history.
GET /v1/accounts/{id}/balance — return a balance with an explicit as-of version or timestamp.
4. Data model & storage
Use a distributed SQL database with serializable transactions and synchronous quorum replication for the ledger and account balance state. SQL transactions make the invariant—debits equal credits and balances cannot go negative—enforceable.
ledger_entries: transaction_id, entry_number, account_id, amount, currency, created_at; insert exactly two or more balanced entries per transaction. Partition primarily by account and time, while ensuring a transaction’s entries can be committed atomically.
account_balances: account_id, currency, available, version. Update with a conditional version/balance check in the same transaction as ledger writes.
Keep the database authoritative. Use Redis only for short-lived idempotency acceleration or non-authoritative reads, never to decide whether money moved. Archive immutable, checksummed ledger exports to object storage.
5. Deep dive
The critical path is an idempotent, atomic commit. The client supplies a stable idempotency key; the service stores its request hash so that reusing the key with different parameters is rejected. A duplicate request returns the original transaction result rather than applying the debit again.
sequenceDiagram
participant C as Client
participant A as Transaction API
participant R as Risk service
participant D as Ledger database
participant Q as Event log
C->>A: POST transaction with idempotency key
A->>D: Check key and request hash
D-->>A: New request or prior result
A->>R: Authorize and evaluate limits
R-->>A: Decision
A->>D: Serializable transaction: reserve key, validate balances, write entries, update balances, write outbox
D-->>A: Commit acknowledged by quorum
A-->>C: Stable transaction result
D->>Q: Publish outbox event asynchronously
Diagram
The database transaction is the point of truth: validate available funds and limits, write balanced ledger entries, update account state, and persist an outbox event atomically. If the response is lost after commit, retrying with the same key returns the committed result. An asynchronous outbox publisher retries events without risking a committed transaction being lost from downstream systems. Risk checks that require external dependencies need explicit timeouts and fail-closed or bounded fallback policies based on the transaction’s risk tier.
6. Scale, bottlenecks & trade-offs
Partition ledger data by account and time, and distribute accounts across shards. Cross-shard transfers need a distributed transaction or a carefully designed reservation-and-settlement protocol; choose based on latency and correctness requirements. Avoid silently treating eventual consistency as acceptable for spendable balances.
Replicate each shard across three failure domains and acknowledge commits only after the configured quorum is durable. Regional failover must fence the old writer to prevent split-brain. Synchronous cross-region replication improves zero-RPO resilience but increases latency; asynchronous replication needs a documented recovery-point trade-off
System designHardBarclaysEngineering Manager
14. How do you ensure high availability and disaster recovery in distributed systems?
Model answer
1. Requirements & scale
Functional requirements
Serve a customer-facing API across multiple availability zones.
Continue operating through instance, AZ, or regional failure.
Back up data and restore service to a declared recovery point and time.
Detect failures, fail over safely, and reconcile delayed or duplicated work.
Non-functional requirements
Example targets: 99.99% monthly availability, regional-disaster RTO under 30 minutes, and RPO under 5 minutes for transactional data.
Encrypt data in transit and at rest; retain auditable recovery procedures.
Prefer graceful degradation over cascading failure. Make recovery objectives explicit per data class rather than promising zero loss universally.
Back-of-the-envelope estimates
Assume 5 million daily active users, 20 API calls per user per day, and a 10x peak factor. That is 100 million requests/day, about 1,160 average QPS, and roughly 11,600 peak QPS. At 2 KB per request/response payload, peak application traffic is about 23 MB/s before protocol and replication overhead.
Assume 1,000 durable writes/second at 1 KB each: 86.4 GB/day raw, or about 31.5 TB/year. With indexes, logs, and 3x replication, budget roughly 100 TB/year, before compression and retention policies. These estimates drive database sizing, cross-region replication bandwidth, and backup retention; validate them with production telemetry.
2. High-level architecture
flowchart TD
subgraph Client
C[Web and mobile clients]
end
subgraph EdgeCDN[Edge CDN]
E[DNS, CDN, and WAF]
end
subgraph LoadBalancer[Load balancer]
G[Global traffic manager]
L1[Region A ALB]
L2[Region B ALB]
end
subgraph APIServices[API and services]
A1[API fleet A]
A2[API fleet B]
S1[Service workers A]
S2[Service workers B]
end
subgraph Cache[Cache]
K1[Redis A]
K2[Redis B]
end
subgraph Datastores[Datastores]
D1[SQL primary A]
D2[SQL standby B]
O1[Object store A]
O2[Object store B]
end
subgraph MessageQueue[Message queue]
Q1[Queue A]
Q2[Replicated queue B]
end
subgraph Workers[Workers]
W1[Async workers A]
W2[Async workers B]
end
C -->|HTTPS| E
E -->|healthy-region route| G
G -->|normal traffic| L1
G -->|failover traffic| L2
L1 -->|requests| A1
L2 -->|requests| A2
A1 -->|read and cache fill| K1
A2 -->|read and cache fill| K2
A1 -->|transactions| D1
D1 -->|replication| D2
A1 -->|durable events| Q1
Q1 -->|async jobs| W1
Q1 -->|cross-region replication| Q2
Q2 -->|recovery jobs| W2
W1 -->|derived writes| D1
W2 -->|recovery writes| D2
D1 -->|backup replication| O1
O1 -->|cross-region backup| O2
S1 -->|service calls| D1
S2 -->|service calls| D2
Diagram
I would deploy stateless API fleets across at least three AZs per region. The example uses a primary region with a warm standby for transactional writes; global routing sends traffic to the healthy region. Regional failover is a controlled operation, not merely a DNS change.
3. API design
GET /v1/resources/{id} — read a resource; route to a healthy region and serve from cache only when freshness permits.
POST /v1/transactions — create a transaction; require an Idempotency-Key so client retries cannot create duplicate effects.
GET /v1/operations/{id} — inspect asynchronous operation status.
GET /health/live and GET /health/ready — distinguish process liveness from dependency readiness; do not make a regional health check fail because of one transient downstream timeout.
Internal POST /v1/admin/failover — authenticated, audited, and gated by runbook checks rather than exposed to customers.
4. Data model & storage
Use a relational database for transactional state, constraints, and auditable updates. A basic model includes resources(id, tenant_id, version, state, updated_at), transactions(id, idempotency_key, status, created_at), and an outbox table for events committed atomically with business data. Partition large tables by tenant or time only after validating access patterns; avoid a single hot tenant or global counter as a shard key.
Use object storage for immutable backups and snapshots, with versioning, encryption, and cross-region replication. Use Redis only for reconstructible cache data—not as the source of truth. Use a durable queue for asynchronous work, with dead-letter handling and idempotent consumers. Keep backups logically and administratively separate from the production account to reduce blast radius.
5. Deep dive
The core challenge is promoting a standby without split-brain or silent data loss. For the example target, continuously ship database logs to the standby and monitor replication lag. Before promotion, fence the old primary using a lease or infrastructure-level isolation; then promote the standby, update writer routing, and verify writes. If the old region returns, do not allow it to accept writes: rebuild it from the new source and reconcile any acknowledged transactions against the declared RPO.
For each write, the API validates the idempotency key, commits the transaction and outbox event atomically, and returns the committed result. A worker processes events at least once, records the event ID, and applies idempotent effects. This prevents queue redelivery from duplicating business actions. Recovery should be tested with both synthetic transactions and real restore drills.
sequenceDiagram
participant C as Client
participant R as Router
participant A as API
participant DB as Primary database
participant Q as Durable queue
participant W as Worker
C->>R: HTTPS request with idempotency key
R->>A: Route to healthy region
A->>DB: Commit transaction and outbox row
DB-->>A: Commit acknowledged
A-->>C: Success
Diagram
TechnicalEasyBarclaysInvestment Banking AnalystModeling test / PE interview
15. What is a leveraged buyout?
Model answer
The flow
Sources & Uses: Identify the capital required and the sources of funding.
Operating Case: Project the company's future cash flows and operational performance.
Debt Paydown: Model the repayment of debt over the investment period.
Exit at a Multiple: Determine the exit strategy and valuation multiple.
IRR and MOIC: Calculate the internal rate of return (IRR) and multiple on invested capital (MOIC).
Attribute Returns: Analyze the contribution of different factors to the overall returns.
The answer
Sources & Uses: In a leveraged buyout (LBO), a company is acquired using a significant amount of borrowed money, with the assets of the company being used as collateral. For example, if a private equity firm wants to acquire a company for $100 million, they might use $20 million of their own equity and borrow $80 million from lenders.
Operating Case: The next step is to project the company's future cash flows. Assume the acquired company generates $15 million in EBITDA annually, with a growth rate of 5% per year. These projections help assess the company's ability to service debt and provide returns.
Debt Paydown: Over the investment period, typically 5-7 years, the company uses its cash flows to pay down the debt. For instance, if the company pays $10 million annually towards debt, this reduces the debt burden and increases equity value.
Exit at a Multiple: The private equity firm plans to exit the investment by selling the company at a higher valuation. Suppose the firm expects to sell the company at an EBITDA multiple of 8x, resulting in an exit value of $184 million after 5 years.
IRR and MOIC: Calculate the internal rate of return (IRR) and multiple on invested capital (MOIC). If the initial equity investment was $20 million and the exit equity value is $104 million, the MOIC is 5.2x ($104 million / $20 million), and the IRR can be calculated using the formula for IRR, resulting in approximately 38%.
Attribute Returns: Analyze the returns by attributing them to factors such as operational improvements, multiple expansion, and debt paydown. In this case, the majority of the returns come from debt paydown and multiple expansion.
Why this works
Understanding of LBO Structure: The interviewer is testing the candidate's understanding of how an LBO is structured and financed.
Cash Flow Analysis: A strong answer demonstrates the ability to project cash flows and assess debt servicing capability.
Exit Strategy: Highlighting the exit strategy and valuation multiple shows strategic thinking.
Return Metrics: Calculating IRR and MOIC is crucial for evaluating investment attractiveness.
Weak Answer Pitfall: A weak answer might overlook the importance of debt paydown or fail to attribute returns correctly, showing a lack of depth in financial analysis.
TechnicalMediumBarclaysGroup Product Manager
16. How do you balance technical debt?
Model answer
1. Make debt visible and specific
I do not treat all technical debt as equally urgent or assume that engineering should simply fix it between product commitments. I work with engineering to maintain an understandable view of debt: what it is, which systems or customer journeys it affects, and the consequences of leaving it in place. I distinguish deliberate shortcuts from accidental complexity, and quantify impact where possible—for example, incident frequency, latency, cloud cost, deployment lead time, or time spent on manual work.
2. Prioritize by risk and leverage
For each item, I ask:
Customer and business impact: Does it cause errors, slow experiences, or block a strategic capability?
Risk and urgency: Is it increasing security, compliance, reliability, or operational risk? Is there a deadline or rising likelihood of an outage?
Cost of delay: How much future delivery capacity will it consume if we defer it?
Scope and reversibility: Can we address the highest-risk slice without pausing all roadmap work?
I compare the expected cost of continued debt with the opportunity cost of remediation. A small refactor that materially reduces incidents in a critical flow may outrank a broad modernization whose benefits are distant and hard to validate.
3. Balance roadmap and remediation
I agree with engineering on a capacity approach appropriate to the product—for example, reserving a recurring portion of each planning cycle for reliability and debt, while allowing urgent security or availability work to override that allocation. I do not make a fixed percentage a substitute for judgment. For a high-impact item, I make the trade-off explicit: what customer-facing scope moves, what risk declines, and how we will know the work helped.
I favor incremental remediation alongside feature work when it reduces migration risk and produces value sooner. For a major platform change, I ask for milestones, compatibility plans, rollback options, and evidence that each phase reduces risk.
4. Measure and communicate
Track both outcomes and leading indicators: incident rate and severity, service availability, p95 latency, change failure rate, deployment frequency, and engineering effort spent on recurring work. Review the trend with product and engineering leaders and adjust investment as evidence changes.
Pitfalls: hiding debt in estimates, treating every refactor as urgent, using velocity alone as proof of improvement, or promising a rewrite without milestones, ownership, and a rollback plan.
17. What kind of company would have the same EBITDA and Net Income?
Model answer
The flow
Identify the components: Understand EBITDA and Net Income definitions.
Analyze the differences: Identify what typically separates EBITDA from Net Income.
Consider the conditions: Determine the conditions under which these differences are eliminated.
Identify company type: Recognize the type of company that meets these conditions.
Sanity-check: Confirm with real-world examples or logical reasoning.
The answer
Identify the components: EBITDA stands for Earnings Before Interest, Taxes, Depreciation, and Amortization. Net Income is the total profit of a company after all expenses, including interest, taxes, depreciation, and amortization, have been deducted.
Analyze the differences:
Interest: Typically, companies have interest expenses due to debt.
Taxes: Companies usually pay taxes on their earnings.
Depreciation and Amortization: These are non-cash expenses related to the wear and tear of tangible and intangible assets.
Consider the conditions:
No Interest Expense: The company must have no debt, thus no interest expense.
No Taxes: The company operates in a tax-free environment or has tax losses that offset taxable income.
No Depreciation/Amortization: The company does not own depreciable or amortizable assets, or it operates in a sector where such expenses are negligible.
Identify company type: A company that operates in a tax-free environment, has no debt, and does not own significant physical or intangible assets would have the same EBITDA and Net Income. This could be a service-oriented company, such as a consulting firm, operating in a tax haven with no debt and negligible capital expenditures.
Sanity-check: Consider a small consulting firm in a tax-free zone. It rents office space, uses leased equipment, and has no debt. Therefore, it has no interest, depreciation, or tax expenses, resulting in EBITDA equal to Net Income.
Why this works
Testing understanding: The interviewer is assessing the candidate's grasp of financial statements and the components of EBITDA and Net Income.
Logical reasoning: A strong answer logically deduces the conditions under which EBITDA equals Net Income.
Real-world applicability: Candidates should relate theoretical knowledge to practical examples, demonstrating a deeper understanding.
Common pitfalls: Weak answers might overlook one or more components (interest, taxes, depreciation) or fail to provide a coherent example of a company type.
TechnicalMediumBarclaysEngineering Manager
18. Explain your experience with AWS migrations and the challenges of cloud-native architecture.
Model answer
I approach an AWS migration as a business and operating-model change, not just a move of virtual machines. I first clarify the driver—such as resilience, speed of delivery, data-center exit, or cost—because it determines the right migration pattern and success criteria.
Assess and sequence. I inventory services, dependencies, data, compliance needs, and operational ownership. I classify workloads as rehost, replatform, refactor, retain, or retire. I usually start with a low-risk service to validate networking, identity, observability, deployment, and support practices before moving critical workloads.
Build the landing zone. I establish multi-account boundaries, IAM roles and least privilege, centralized logging, encryption, network segmentation, policy guardrails, and infrastructure as code. This creates a repeatable foundation and prevents each team from inventing its own cloud setup.
Choose cloud-native services deliberately. Managed services can reduce undifferentiated operations, but they introduce service limits, new failure modes, and vendor-specific coupling. For each choice—such as ECS versus EKS, RDS versus DynamoDB, or SQS versus Kafka—I consider team capability, workload shape, operability, portability needs, and total cost, not just feature lists.
Migrate data and traffic safely. I use replication or change-data capture where appropriate, verify data consistency, and shift traffic gradually with canaries or weighted routing. I define rollback criteria in advance; a DNS switch alone is not a complete rollback plan if writes have diverged.
Operate and optimize. I establish SLOs, dashboards, tracing, on-call ownership, backup restoration tests, and cost allocation. I track availability, latency, incident rate, deployment frequency, migration progress, and unit cost per request or customer.
flowchart LR
A[Workload inventory] --> B[Landing zone]
B --> C[Pilot migration]
C --> D[Data replication and validation]
D --> E[Canary traffic shift]
E --> F{SLOs and data checks pass?}
F -->|Yes| G[Expand migration]
F -->|No| H[Rollback and remediate]
G --> I[Operate and optimize]
Diagram
Common challenges include unexpected service dependencies, overly broad IAM permissions, data-transfer costs, noisy autoscaling, and teams carrying legacy operating habits into AWS. I manage these through dependency mapping, cost and security reviews, game days, and clear service ownership. I avoid a big-bang migration unless there is a compelling deadline and a tested recovery plan. The leadership measure is not simply workloads moved; it is whether teams can operate the new platform safely and deliver better customer outcomes.
TechnicalMediumBarclaysEngineering Manager
19. Walk me through an architectural decision you made that did not go as planned.
Model answer
I would use a specific example and be candid about my role. One example I could adapt is a decision to extract a shared capability into a standalone service before we had enough evidence that the boundary was stable.
Context and decision: We had duplicated logic across several application teams, and I sponsored a shared service to improve consistency. I expected reuse to reduce maintenance, but I underestimated the coordination cost and the maturity needed in the service interface.
What did not go as planned: The first version introduced an additional network dependency on critical request paths. Teams had to coordinate releases, latency rose, and changes to the shared API created a queue of cross-team work. The design was technically sound in isolation but did not fit the operating model or traffic patterns.
How I diagnosed it: I compared the original goals with service-level data: p95/p99 latency, error rates, deployment lead time, and the number of consumer-specific changes. I interviewed the teams using it and found that the shared service was absorbing domain rules that were not actually shared. I owned the fact that I had optimized for code reuse rather than independent team outcomes.
What I changed: We separated stable, truly common primitives from domain-specific policy, added timeouts and graceful fallback where safe, and moved noncritical work off the synchronous path. I paused new migrations, documented service ownership and compatibility rules, and let teams keep local implementations where the abstraction did not justify the dependency. We rolled out the revised boundary gradually and tracked latency and adoption.
flowchart LR
A[Original extraction] --> B[Measure latency and change friction]
B --> C[Reassess domain boundaries]
C --> D[Split shared primitives from policy]
D --> E[Canary and monitor]
E --> F[Expand only where outcomes improve]
Diagram
Result and learning: In the example I present, I would quantify the actual outcome—such as restored p99 latency, reduced cross-team change time, or fewer incidents—rather than claim success without evidence. The key lesson is to treat architecture as a hypothesis: define the expected operational benefit, test the boundary with a narrow migration, and preserve a rollback path. As an EM, I make the decision process and ownership explicit so the team can learn without blaming individuals.
TechnicalMediumBarclaysEngineering Manager
20. How do you balance rapid delivery with long-term technical debt reduction?
Model answer
I treat delivery and debt reduction as a portfolio decision, not as competing absolutes. My goal is to preserve a reliable delivery rate while reducing the debt that creates material customer, operational, or team risk.
Make debt visible and specific. I ask engineers to describe debt in terms of its impact: slower lead time, incident risk, cloud cost, security exposure, or blocked product work. I distinguish intentional shortcuts with an expiry or follow-up from accidental, unowned debt.
Prioritize by risk and leverage. I weigh customer impact, probability of failure, cost of delay, and remediation effort. A fragile payment path or an unsupported dependency outranks a cosmetic refactor. I also prioritize debt that repeatedly slows several teams, because shared improvements have a larger return.
Reserve capacity, then adapt. I might plan 10–20% of a team’s capacity for reliability and maintainability work, adjusting it based on incidents, roadmap commitments, and measured delivery friction. For urgent launches, I may temporarily defer lower-risk work, but I make the trade-off visible and assign an owner and review date.
Reduce debt incrementally. I prefer a strangler migration, API compatibility layer, or targeted refactor behind tests over a broad rewrite. I pair debt work with product changes when that lowers migration cost, but avoid hiding a risky migration inside a deadline-driven feature.
Measure whether the investment worked. I track lead time, deployment frequency, change failure rate, mean time to recovery, incident volume, build time, and the time spent on recurring workarounds. I set a baseline and review the trend with the team.
For example, if a release process repeatedly causes rollbacks, I would prioritize automated validation over a large code cleanup, even if the cleanup is more appealing technically. I would stage the change, monitor rollback and failure rates, and keep a clear escape path.
flowchart LR
A[Debt observed] --> B[Quantify impact and risk]
B --> C[Rank against roadmap]
C --> D{Urgent customer or safety risk?}
D -->|Yes| E[Address now]
D -->|No| F[Schedule capacity and owner]
E --> G[Measure outcome]
F --> G
Diagram
The pitfalls I watch for are treating all debt as equally urgent, allowing permanent “temporary” fixes, and measuring success by lines refactored instead of improved outcomes.
Practice these out loud, don't memorise them
Reading an answer is not the same as being able to give one under pressure. ChannelPulse plays the interviewer, asks the follow-ups, and scores each answer with feedback and a model answer so you can hear the gap between what you said and what lands.