Revolut interview questions & answers

20 real Revolut interview questions with full model answers — System design, Coding, Technical, Product & growth. Drawn from the same verified bank ChannelPulse drills from (85 Revolut questions in total).

BehavioralEasyRevolut

1. Tell me about a time when you had to work with a team to solve a technical problem under a tight deadline.

Model answer

Situation

In my role as a software engineer at a fintech company, our team encountered a critical situation when a key feature in our mobile app malfunctioned just days before a major release. This feature was essential for a new financial product launch that had been heavily marketed, and any delay could have resulted in significant reputational damage and financial loss.

Task

I was responsible for leading the technical team to diagnose and resolve the issue under a tight deadline. The challenge was to ensure a seamless fix without compromising the quality of the application, all within a 48-hour window.

Action

  • I immediately organized a team meeting to assess the situation and prioritize tasks. We broke down the problem into smaller components, assigning each to team members based on their expertise.
  • To maintain focus and efficiency, I set up a war room environment where the team could collaborate closely and communicate in real-time, minimizing delays in decision-making.
  • I personally took on the task of reviewing the codebase to identify potential sources of the bug. By leveraging automated testing tools, I was able to quickly pinpoint the problematic areas.
  • Throughout the process, I maintained open lines of communication with stakeholders, providing regular updates on our progress and any potential risks. This transparency helped manage expectations and allowed us to focus on the most critical aspects of the fix.
  • To ensure we met the deadline, I coordinated with the QA team to run parallel testing on the fixes, allowing us to catch any new issues early and iterate quickly.

Result

We successfully resolved the issue well within the 48-hour deadline. The fix was deployed without any further complications, and the product launch proceeded as planned. Our swift and coordinated response not only preserved our company's reputation but also strengthened our client relationships. This experience reinforced the importance of teamwork, clear communication, and a structured approach to problem-solving under pressure.

BehavioralMediumRevolutProduct ManagerHiring manager

2. Have you managed a team before?

Model answer

Situation

Yes—if accurate for your experience, I’d describe a concrete example rather than answering only “yes.” For instance: “I led a cross-functional team of [number] across product, design, engineering, and [other functions] to deliver [product or outcome]. We were working against [business deadline or customer need], and the team had competing priorities and [constraint, such as a dependency or limited capacity].” I’d clarify whether I had direct reports, project leadership, or both; those are different kinds of management.

Task

“My responsibility was to align the team around a measurable outcome, make the scope and ownership clear, and deliver without compromising [quality, customer trust, or another important constraint]. The challenge was not just coordinating tasks; it was helping people make good decisions when priorities conflicted.”

Action

  • “I translated the goal into a shared plan, defined success measures, and made the key dependencies and decision owners visible.”
  • “I met with people individually to understand capacity, concerns, and development needs. I adapted my management style rather than assuming everyone needed the same level of direction.”
  • “When [specific disagreement] came up, I brought the discussion back to customer impact, evidence, and the agreed guardrails. We chose [trade-off] and documented what we would defer.”
  • “I created a regular operating rhythm—short progress reviews, clear escalation paths, and written decisions—while protecting the team from unnecessary scope changes.”
  • “When [setback] threatened the plan, I took responsibility for [your action], reset expectations with stakeholders, and supported the team in resolving it.”

Result

“We delivered [outcome] in [timeframe], with [quantified customer or business metric] moving from [baseline] to [result]. The team also [secondary impact, such as reduced cycle time or clearer ownership]. I learned that effective management is not taking every decision myself; it is creating clarity, giving people room to own their work, and stepping in decisively when the team needs alignment.”

If you have not formally managed people, say so directly: explain the team or initiative you led, how you influenced peers, and what management responsibilities you have had—without implying direct-report experience you did not have.

What interviewers listen for

  • Honest distinction between people management and cross-functional leadership.
  • Specific coaching, prioritization, conflict resolution, and accountability.
  • Team and business outcomes, not just delivery of a project.
BehavioralMediumRevolut

3. Describe a situation where you had to make a trade-off between system performance and data consistency.

The full question

Describe a situation where you had to make a trade-off between system performance and data consistency. How did you approach the decision?

Model answer

Situation

In my role as a software developer at a fintech company, we were tasked with enhancing the performance of our transaction processing system. This system was crucial for handling thousands of transactions per second, and any downtime or inconsistency could lead to significant financial losses and customer dissatisfaction. However, we were also experiencing issues with data consistency due to the distributed nature of our database, which occasionally led to discrepancies in transaction records.

Task

My primary responsibility was to find a solution that would balance the need for high system performance with the requirement for strong data consistency. The key constraint was that we needed to implement this solution without causing significant downtime or impacting the user experience.

Action

  • I began by conducting a thorough analysis of the current system architecture to identify the root causes of the data inconsistency issues. This involved reviewing logs, monitoring transaction flows, and consulting with database administrators.
  • After identifying that the inconsistencies were primarily due to eventual consistency in our NoSQL database, I proposed implementing a stronger consistency model for critical transaction data. This would involve using a hybrid approach where critical data would be stored in a relational database with ACID properties, while less critical data could remain in the NoSQL database for performance reasons.
  • To validate this approach, I developed a proof of concept that simulated the transaction processing under the new model. This allowed us to measure the impact on both performance and consistency.
  • I presented my findings and the proof of concept results to the team, highlighting the trade-offs between performance and consistency. I emphasized that while there might be a slight reduction in throughput, the increase in data reliability was crucial for maintaining customer trust and compliance with financial regulations.
  • After gaining consensus, I led the implementation of the new architecture, ensuring that the transition was smooth and that all team members were aligned on the changes.

Result

The implementation of the hybrid database model resulted in a significant improvement in data consistency without a noticeable impact on system performance. The synchronization errors were eliminated, and the system's reliability increased, leading to higher customer satisfaction and fewer support tickets related to transaction discrepancies. This experience taught me the importance of balancing technical trade-offs and reinforced the value of a data-driven approach to decision-making.

BehavioralMediumRevolut

4. Explain the importance of DevOps culture at Revolut.

Model answer

Situation At Revolut, where I worked as a software engineer, the company was undergoing a significant shift towards adopting a DevOps culture. This transition was crucial as it aimed to enhance collaboration between development and operations teams, improve deployment frequency, and reduce lead time for changes. The stakes were high because efficient and reliable software delivery is critical to maintaining Revolut's competitive edge in the fast-paced fintech industry.

Task My specific goal was to facilitate this cultural shift within my team by promoting DevOps practices and ensuring a smooth transition. The key challenge was overcoming resistance from team members who were accustomed to traditional development and operations silos.

Action

  • I began by organizing a series of workshops and training sessions to educate the team on the benefits of DevOps, such as faster time-to-market and improved system reliability. I highlighted how these practices could directly impact our product's success and customer satisfaction.
  • To address the resistance, I shared success stories from other teams within the company that had already adopted DevOps practices. This helped in illustrating tangible benefits and reducing skepticism.
  • I introduced tools and processes that facilitated collaboration, such as continuous integration/continuous deployment (CI/CD) pipelines and infrastructure as code (IaC). I ensured that these tools were user-friendly and provided hands-on support to team members during the initial setup.
  • I also fostered a culture of open communication and feedback, encouraging team members to voice concerns and suggest improvements. This approach helped in building trust and making everyone feel invested in the transition.
  • To maintain motivation, I set up a system of small, achievable milestones with visible rewards. Celebrating these small wins helped in maintaining momentum and enthusiasm for the change.

Result As a result of these efforts, our team successfully transitioned to a DevOps culture, leading to a 30% increase in deployment frequency and a 20% reduction in lead time for changes. This improvement not only enhanced our team's efficiency but also contributed to a more reliable and scalable product. Reflecting on this experience, I learned the importance of clear communication, education, and incremental change in driving cultural shifts within an organization.

CodingEasyRevolutSoftware Engineer

5. Binary Tree Paths (LeetCode)

Model answer

The task

Return every path from the root of a binary tree to a leaf, formatted as a string with node values separated by arrows.

Key idea

Use depth-first search while keeping the current path in a list. When reaching a leaf, join the path values and save the resulting string.

Approach

  1. Start a DFS at the root with an empty path.
  2. Add the current node’s value to the path.
  3. If the node is a leaf, save the joined path.
  4. Otherwise, recursively visit each existing child.
  5. Remove the current value before returning, so sibling paths remain independent.
from typing import List, Optional

# Assumes TreeNode has val, left, and right attributes.
class Solution:
    def binaryTreePaths(self, root: Optional["TreeNode"]) -> List[str]:
        paths: List[str] = []
        current: List[str] = []

        def dfs(node: Optional["TreeNode"]) -> None:
            if node is None:
                return

            current.append(str(node.val))

            if node.left is None and node.right is None:
                paths.append("->".join(current))
            else:
                dfs(node.left)
                dfs(node.right)

            current.pop()

        dfs(root)
        return paths

Complexity:

  • Time: O(n + L), where n is the number of nodes and L is the total length of all returned path strings.
  • Space: O(h + L), for the recursion and current path of height h, plus the returned strings.

Common follow-ups

  • How would you avoid recursion for a very deep tree? Use an explicit stack of nodes and their paths.
  • What should an empty tree return? An empty list.
  • How would you return paths as lists of values instead of strings? Copy the current path at each leaf.
CodingEasyRevolutSoftware Engineer

6. 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

  1. If the list is empty, return an empty string.
  2. Scan each character of the first string from left to right.
  3. For each position, compare that character with the character at the same position in every other string.
  4. If a string is too short or a character differs, return the matching prefix before that position.
  5. 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.
CodingEasyRevolutSoftware Engineer

7. Missing Number (LeetCode)

Model answer

The task

Given an array of distinct integers drawn from the range 0 through n, return the one number in that range that is absent.

Key idea

The complete range has a known sum: n * (n + 1) // 2. Subtracting the array’s sum leaves the missing value, without needing to sort or store extra data.

Approach

  1. Let n be the number of values in the array.
  2. Calculate the expected sum of all integers from 0 through n.
  3. Calculate the sum of the values actually present.
  4. Return the difference. This also handles a missing value at either end of the range.
from typing import List

class Solution:
    def missingNumber(self, nums: List[int]) -> int:
        n = len(nums)

        # The array contains n of the n + 1 values from 0 through n.
        expected_sum = n * (n + 1) // 2
        actual_sum = sum(nums)

        return expected_sum - actual_sum

Complexity:

  • Time: O(n), to sum the array.
  • Space: O(1), using only a fixed number of variables.

Common follow-ups

  • What if the values are sorted? Use binary search to find where the values stop matching their indices, for O(log n) time.
  • Can you avoid a sum that might overflow in a fixed-width integer language? XOR the values with all indices from 0 through n; equal values cancel, leaving the missing number.
  • What if duplicates are allowed or more than one number is missing? The sum difference alone is insufficient; use a frequency structure or adapt the task to the number of missing values.
  • What if the input must remain unchanged? This solution does not modify the array.
CodingEasyRevolut

8. Given an array of integers, return indices of the two numbers such that they add up to a specific target.

Model answer

function twoSum(nums, target) {
    // Create a map to store the difference and its index
    const numMap = new Map();

    // Iterate through the array
    for (let i = 0; i < nums.length; i++) {
        // Calculate the difference needed to reach the target
        const complement = target - nums[i];

        // Check if the complement exists in the map
        if (numMap.has(complement)) {
            // If found, return the indices of the two numbers
            return [numMap.get(complement), i];
        }

        // Otherwise, add the current number and its index to the map
        numMap.set(nums[i], i);
    }

    // Return an empty array if no solution is found
    return [];
}

// Example usage:
// const result = twoSum([2, 7, 11, 15], 9);
// console.log(result); // Output: [0, 1]
  • Approach:
  • Use a hash map to store each number's complement (target - current number) and its index.
  • Iterate through the array, checking if the current number's complement exists in the map.
  • If it exists, return the indices of the current number and its complement.
  • If not, store the current number and its index in the map.
  • Complexity:
  • Time: O(n), where n is the number of elements in the array. We traverse the list containing n elements only once.
  • Space: O(n), as we store up to n elements in the hash map.
Product & growthEasyRevolutProduct Manager

9. What is your favorite financial app, and how would you improve it?

Model answer

Favorite financial app: My favorite financial app is Mint because of its comprehensive financial tracking and budgeting capabilities.

Improvement suggestion: One area of improvement is providing more personalized financial advice.

Clarify & scope: The goal is to offer tailored financial advice to help users make better financial decisions.

User segments & pain points: Focus on users who feel overwhelmed by financial decisions and need guidance.

Goals & success metrics: The North Star metric is increased user retention. Guardrails include maintaining user trust and data privacy.

Solutions:

  1. AI-Driven Recommendations: Use AI to analyze spending patterns and suggest ways to save or invest.
  2. Financial Health Score: Introduce a financial health score with tips to improve it.
  3. Personalized Alerts: Send alerts for unusual spending or savings opportunities.

Recommendation: Implement AI-driven recommendations as it directly helps users with actionable insights.

Prioritization & trade-offs: Prioritize AI-driven recommendations due to its potential high impact on user satisfaction and retention.

MVP, measurement & rollout: Launch an MVP with basic AI recommendations. Measure success through user engagement and feedback, then iterate to enhance accuracy and personalization.

Product & growthMediumRevolutProduct Manager

10. Describe a consumer-facing product you built.

Model answer

Context & user

I’d answer with one product I genuinely worked on, then make my personal contribution clear. A concise opening might be: “I worked on [product], a [one-line description] for [primary user]. The problem was that [specific user pain], which led to [business or user consequence].” I’d give enough context to establish the product’s audience, stage, and scale without spending the whole answer on company history.

Problem & goal

I’d explain how we knew the problem mattered: customer research, behavioral data, support themes, or a measurable funnel gap. Then I’d state the goal I owned—for example, improving first successful use, repeat usage, or task completion—and how we defined success. I’d distinguish the user outcome from the business outcome rather than presenting a feature launch as the goal.

My role and decisions

I’d be specific about what I personally did: “I owned [scope] and partnered with [teams].” I’d describe the key decision and the alternatives we considered. For example, we could build a broad feature set, but I recommended a narrower MVP because [evidence, time constraint, or risk]. I’d explain how I aligned design, engineering, data, operations, and any relevant legal or risk partners; what trade-off I made; and what I deliberately postponed.

I’d also share one example of adapting the plan. “When [research or launch data] showed [unexpected finding], I [specific response] rather than continuing with the original roadmap.” That demonstrates judgment and learning, not just execution.

Results & learning

I’d close with a quantified result, using the metric, baseline, time period, and scale where possible: “Over [period], [metric] moved from [baseline] to [result] across [cohort or user base].” I’d mention a meaningful guardrail, such as retention, reliability, support burden, or cost, so the result doesn’t sound one-dimensional. If the outcome was mixed, I’d say so and explain what I learned.

What interviewers listen for

  • A real user problem and clear product objective.
  • Your decisions and contribution, not only what “we” shipped.
  • Cross-functional leadership, trade-offs, measurable impact, and learning.

I’d replace every bracket with accurate details and avoid claiming results I can’t substantiate.

Product & growthMediumRevolutProduct Manager

11. How would you improve onboarding?

Model answer

Clarify & scope

I’d first clarify what “onboarding” means: account creation, first successful use, or reaching a meaningful repeat-use habit. I’d optimize for helping a specific new-user segment reach value quickly—not simply reducing the number of screens. I’d also ask which product and business goal matter most, since onboarding a payments app differs from onboarding a collaboration tool.

User segments & pain points

I’d segment by intent and experience: first-time users, users switching from a competitor, and returning or invited users. I’d initially focus on first-time users with high intent but limited product familiarity. Their friction may come from unclear value, lengthy setup, trust concerns, or an early step that requires information they don’t have.

I’d map the current journey and pair funnel data with user interviews and session research. For example, a large drop at identity verification might reflect unclear instructions, a technical failure, or users not understanding why verification is needed—each requires a different intervention.

Goals & success metrics

My North Star would be the percentage of eligible new users who complete a meaningful first action within seven days. I’d track step-level conversion, time to first value, and completion by acquisition channel and segment. Guardrails would include fraud and compliance outcomes, support contacts, error rates, and early retention. I wouldn’t count a shorter flow as success if it increases low-quality or unsafe activations.

Solutions

I’d consider three options: clarify the value and expectations before setup; remove or defer fields that aren’t needed for first value; and improve guidance or recovery at the step with the greatest avoidable abandonment. I’d prioritize the largest evidence-backed friction point, while retaining required legal, security, and safety checks.

Recommendation: Start with a focused experiment on the highest-drop-off step—for example, explain why a required verification step is needed, show what users should have ready, and make retry or support options clear. Keep the underlying requirement unchanged.

Prioritization & trade-offs

I’d rank ideas by expected impact, confidence, effort, and risk. I’d favor a small, reversible change with a measurable hypothesis over a full redesign. I’d involve design, engineering, analytics, support, and compliance early so the experience remains usable and compliant.

MVP, measurement & rollout

Instrument the funnel first, then test with a randomized, eligible cohort. Check primary conversion and time to value alongside guardrails; review results by segment so an average lift doesn’t hide harm to a particular group. Roll out gradually if results are positive, monitor support and risk signals, and keep a holdout where practical. If the change doesn’t improve meaningful activation, I’d diagnose the step-level data and user feedback before expanding it.

Product & growthMediumRevolutProduct Manager

12. How would you improve Revolut's budgeting feature to enhance user engagement?

Model answer

Clarify & scope: The goal is to enhance user engagement with Revolut's budgeting feature. Assume the current feature allows users to set budgets and track spending, but engagement is low.

User segments & pain points: Focus on young professionals who want to manage their finances better but find current tools too generic or cumbersome.

Goals & success metrics: The North Star metric is increased daily active users (DAU) of the budgeting feature. Guardrails include maintaining user satisfaction and ensuring data privacy.

Solutions:

  1. Personalized Insights: Offer personalized spending insights and recommendations.
  2. Gamification: Introduce gamified elements like badges or challenges for meeting budgeting goals.
  3. Collaborative Budgeting: Allow users to share budgets with friends or family for joint financial goals.

Recommendation: Implement personalized insights as it directly addresses the user's need for tailored financial advice.

graph TD;
  A[User sets budget] --> B[Personalized insights generated];
  B --> C[User receives notifications];
  C --> D[User adjusts spending]
Diagram

Prioritization & trade-offs: Using RICE, personalized insights score highest due to high impact and moderate effort.

MVP, measurement & rollout: Launch an MVP with basic personalized insights. Measure success through DAU and user feedback, then iterate based on user data.

System designEasyRevolut

13. Design a simple transaction processing system for a banking application.

Model answer

1. Requirements & scale

Functional Requirements:

  • Process financial transactions between accounts.
  • Ensure transactions are atomic, consistent, isolated, and durable (ACID properties).
  • Support querying of transaction history.
  • Handle concurrent transaction requests.

Non-Functional Requirements:

  • High availability and fault tolerance.
  • Low latency transaction processing.
  • Secure transactions with encryption.
  • Scalability to handle increasing transaction volumes.

Estimates:

  • Assume 10 million users with an average of 10 transactions per day.
  • Transactions per second (QPS): \( \frac{10 \text{ million users} \times 10 \text{ transactions}}{24 \times 60 \times 60} \approx 1,157 \) QPS.
  • Storage: Assume each transaction record is 1 KB. For 100 million transactions, storage required is approximately 100 GB.
  • Bandwidth: For 1,157 QPS with 1 KB per transaction, bandwidth is approximately 1.1 MB/s.

2. High-level architecture

flowchart TD
    subgraph Client
        A[Mobile App]
        B[Web App]
    end

    subgraph Edge/CDN
        C[CDN]
    end

    subgraph Load Balancer
        D[Load Balancer]
    end

    subgraph API / Services
        E[Transaction Service]
        F[Authentication Service]
    end

    subgraph Cache
        G[Redis Cache]
    end

    subgraph Datastores
        H["SQL DB (PostgreSQL)"]
        I["NoSQL DB (Cassandra)"]
    end

    subgraph Message Queue
        J[Kafka]
    end

    subgraph Workers
        K[Transaction Processor]
    end

    A --> C
    B --> C
    C --> D
    D --> E
    D --> F
    E --> G
    G --> E
    E --> H
    E --> I
    E --> J
    J --> K
    K --> H
    K --> I
Diagram

3. API design

  • POST /transactions: Initiate a new transaction between accounts.
  • GET /transactions/{transactionId}: Retrieve details of a specific transaction.
  • GET /accounts/{accountId}/transactions: Retrieve transaction history for an account.

4. Data model & storage

Datastores:

  • SQL DB (PostgreSQL): For storing transaction records and ensuring ACID compliance.
  • NoSQL DB (Cassandra): For fast retrieval of transaction history and scalability.

Key Tables:

  • Transactions Table (SQL):
  • transaction_id (Primary Key)
  • from_account_id
  • to_account_id
  • amount
  • status
  • timestamp
  • Accounts Table (SQL):
  • account_id (Primary Key)
  • balance
  • user_id

Partition Key:

  • Use transaction_id for partitioning in the SQL database to distribute load evenly.

5. Deep dive

The core of this system is ensuring atomicity and consistency of transactions. We can use the Two-Phase Commit (2PC) protocol to coordinate transactions across distributed databases, but given its limitations, the Saga pattern is a more resilient choice for handling distributed transactions.

sequenceDiagram
    participant A as Client
    participant B as Transaction Service
    participant C as SQL DB
    participant D as NoSQL DB
    participant E as Kafka
    participant F as Transaction Processor

    A->>B: POST /transactions
    B->>C: Begin Transaction
    B->>C: Update Accounts
    C-->>B: Acknowledge
    B->>E: Publish to Kafka
    E-->>F: Consume Message
    F->>D: Update Transaction History
    D-->>F: Acknowledge
    F->>C: Commit Transaction
    C-->>B: Commit Acknowledged
    B->>A: Transaction Success
Diagram

6. Scale, bottlenecks & trade-offs

Replication and Sharding:

  • SQL DB: Use master-slave replication for high availability. Shard based on transaction_id to distribute load.
  • NoSQL DB: Use consistent hashing for partitioning to ensure even data distribution.

Caching:

  • Use Redis to cache frequently accessed transaction data to reduce load on databases and improve latency.

Single Points of Failure:

  • Ensure redundancy in the load balancer and use multiple instances of services to avoid single points of failure.

Trade-offs:

  • Consistency vs Availability: Prioritize consistency for financial transactions, accepting potential trade-offs in availability.
  • Push vs Pull: Use push-based updates (via Kafka) to ensure real-time transaction processing.
  • SQL vs NoSQL: Use SQL for transactions requiring ACID properties and NoSQL for scalable read-heavy operations.

This design provides a robust framework for processing transactions in a banking application, ensuring both consistency and scalability while addressing potential bottlenecks and failure points.

System designMediumRevolut

14. Design a system to handle currency exchange rates in a multi-currency banking application.

Model answer

1. Requirements & scale

Functional Requirements:

  • Fetch real-time exchange rates for multiple currencies.
  • Support conversion between any two currencies.
  • Update exchange rates at regular intervals.
  • Provide historical exchange rate data for analysis.

Non-Functional Requirements:

  • High availability and low latency for fetching and updating rates.
  • Scalability to handle increasing numbers of currencies and users.
  • Consistency in exchange rates across the system.

Estimates:

  • Assume 1000 requests per second (QPS) for fetching exchange rates.
  • Exchange rate updates every minute for 100 currency pairs.
  • Storage for historical data: If each rate update is 1 KB, then 100 pairs 60 updates/hour 24 hours * 30 days = ~432 MB/month.
  • Bandwidth: For 1000 QPS, assuming each response is 1 KB, ~1 MB/s.

2. High-level architecture

flowchart TD
    subgraph Client
        A[Mobile App]
        B[Web App]
    end

    subgraph Edge/CDN
        C[CDN]
    end

    subgraph Load Balancer
        D[Load Balancer]
    end

    subgraph API / Services
        E[Exchange Rate API]
    end

    subgraph Cache
        F[Redis Cache]
    end

    subgraph Datastores
        G[SQL Database]
        H["NoSQL DB (Historical)"]
    end

    subgraph Workers
        I[Rate Updater]
    end

    A --> C
    B --> C
    C --> D
    D --> E
    E --> F
    F --> G
    E --> H
    I --> G
    I --> H
    I --> F
Diagram

3. API design

  • GET /exchange-rate?from={currency1}&to={currency2}: Fetch the current exchange rate between two currencies.
  • GET /historical-rates?from={currency1}&to={currency2}&date={date}: Fetch historical exchange rates for a specific date.
  • POST /update-rates: Trigger an update of exchange rates (used internally).

4. Data model & storage

Datastores:

  • SQL Database: For storing current exchange rates. Chosen for ACID properties to ensure consistency.
  • NoSQL Database: For storing historical exchange rates. Chosen for scalability and flexibility in handling large volumes of time-series data.

Key Tables:

  • ExchangeRates:
  • currency_pair (Primary Key)
  • rate
  • last_updated
  • HistoricalRates:
  • currency_pair (Partition Key)
  • date (Sort Key)
  • rate

5. Deep dive

The core challenge is ensuring that exchange rates are updated consistently and efficiently. The system uses a rate updater worker that fetches new rates from external providers and updates the SQL database and cache.

sequenceDiagram
    participant I as Rate Updater
    participant E as Exchange Rate API
    participant F as Redis Cache
    participant G as SQL Database
    participant H as NoSQL DB

    I->>E: Fetch new rates
    E->>I: Return new rates
    I->>G: Update current rates
    I->>F: Update cache
    I->>H: Store historical rates
Diagram

6. Scale, bottlenecks & trade-offs

Scalability:

  • Caching: Redis is used to cache exchange rates to reduce database load and improve response times.
  • Sharding: Historical data is partitioned by currency pair and date to distribute load across multiple nodes.

Bottlenecks:

  • Single Point of Failure: The rate updater could become a bottleneck if it fails. Implement redundancy and failover mechanisms.
  • Consistency vs Availability: Prioritize consistency for exchange rates to ensure users see the same rates across the system.

Trade-offs:

  • CAP Theorem: The system prioritizes consistency and partition tolerance over availability. In case of network partition, stale rates might be served until resolved.
  • Push vs Pull: Rates are pulled from external providers and pushed to clients via APIs. This ensures clients always get the latest rates without polling.
  • SQL vs NoSQL: SQL is used for current rates due to the need for strong consistency, while NoSQL handles the large volume of historical data efficiently.
System designMediumRevolut

15. How would you design a system to handle high-frequency transactions in a banking application?

Model answer

1. Requirements & scale

Functional Requirements:

  • Process high-frequency transactions with low latency.
  • Ensure transactional integrity and consistency.
  • Support concurrent transactions from multiple users.
  • Provide real-time balance updates and notifications.

Non-Functional Requirements:

  • High availability and fault tolerance.
  • Scalability to handle peak loads.
  • Strong security measures to protect sensitive data.
  • Compliance with financial regulations.

Estimates:

  • Assume 10 million users with an average of 10 transactions per user per day.
  • Peak load: 1,000 transactions per second (QPS).
  • Average transaction size: 1 KB.
  • Daily storage requirement: 100 million transactions * 1 KB = 100 GB.
  • Bandwidth: 1,000 QPS * 1 KB = 1 MB/s.

2. High-level architecture

flowchart TD
    subgraph Client
        A[Mobile App]
        B[Web App]
    end

    subgraph Edge/CDN
        C[CDN]
    end

    subgraph Load Balancer
        D[Load Balancer]
    end

    subgraph API / Services
        E[Transaction Service]
        F[Notification Service]
    end

    subgraph Cache
        G[Redis Cache]
    end

    subgraph Datastores
        H["SQL Database (PostgreSQL)"]
        I["NoSQL Database (Cassandra)"]
    end

    subgraph Message Queue
        J[Kafka]
    end

    subgraph Workers
        K[Transaction Processor]
    end

    A --> C
    B --> C
    C --> D
    D --> E
    E --> G
    G --> E
    E --> H
    E --> I
    E --> J
    J --> K
    K --> H
    K --> I
    E --> F
Diagram

3. API design

  • POST /transactions: Initiate a transaction.
  • GET /transactions/{id}: Retrieve transaction details.
  • GET /accounts/{id}/balance: Get current account balance.
  • POST /notifications: Send transaction notifications.

4. Data model & storage

Datastores:

  • SQL Database (PostgreSQL): For transactional integrity and ACID compliance.
  • NoSQL Database (Cassandra): For high availability and horizontal scalability.

Key Tables:

  • Transactions Table (SQL):
  • transaction_id (Primary Key)
  • account_id
  • amount
  • timestamp
  • status
  • Accounts Table (SQL):
  • account_id (Primary Key)
  • balance
  • user_id
  • Transaction History (NoSQL):
  • Partition Key: account_id
  • Clustering Key: timestamp

5. Deep dive

The core challenge is ensuring transactional integrity while maintaining high throughput. We use a combination of optimistic concurrency control and distributed transactions.

sequenceDiagram
    participant Client
    participant API
    participant Cache
    participant SQL
    participant NoSQL
    participant Queue
    participant Worker

    Client->>API: POST /transactions
    API->>Cache: Check balance
    Cache-->>API: Return balance
    API->>SQL: Begin transaction
    SQL-->>API: Lock account row
    API->>SQL: Update balance
    API->>NoSQL: Log transaction
    API->>Queue: Publish transaction event
    SQL-->>API: Commit transaction
    API-->>Client: Transaction success
    Worker->>SQL: Process event
    Worker->>NoSQL: Update transaction history
Diagram

6. Scale, bottlenecks & trade-offs

Replication & Sharding:

  • SQL Database: Use master-slave replication for read scalability and data redundancy. Shard based on account_id to distribute load.
  • NoSQL Database: Use consistent hashing to distribute data across nodes, ensuring high availability and fault tolerance.

Caching:

  • Use Redis to cache account balances for quick access and reduce load on the SQL database.

Single Points of Failure:

  • Ensure redundancy at every layer (e.g., multiple load balancers, replicated databases) to prevent single points of failure.

Trade-offs:

  • Consistency vs. Availability: Prioritize consistency for financial transactions, accepting potential delays in availability during network partitions.
  • Push vs. Pull Notifications: Use push notifications for real-time updates, but ensure pull mechanisms are available for reliability.
  • SQL vs. NoSQL: Use SQL for transactions requiring ACID properties and NoSQL for scalable, distributed storage of transaction history.

This design balances the need for high-frequency transaction processing with the requirements for consistency, scalability, and fault tolerance, leveraging both SQL and NoSQL technologies to meet the system's demands.

System designMediumRevolut

16. Design a system that can process and validate transactions for a banking application.

The full question

Design a system that can process and validate transactions for a banking application. Consider factors such as concurrency, data integrity, and performance.

Model answer

1. Requirements & scale

Functional Requirements:

  • Process and validate financial transactions.
  • Ensure data integrity and consistency.
  • Support concurrent transaction processing.
  • Provide secure and encrypted communication.
  • Offer real-time transaction status updates.

Non-Functional Requirements:

  • High availability and reliability.
  • Low latency to ensure quick transaction processing.
  • Scalability to handle increased transaction volume.
  • Strong security measures, including authentication and encryption.

Estimates:

  • Assume 10 million users with an average of 1 transaction per user per day.
  • Peak load: 100 transactions per second (QPS).
  • Each transaction record: ~1 KB.
  • Daily storage requirement: 10 million KB or ~10 GB.
  • Bandwidth: 100 KB/s during peak times.

2. High-level architecture

flowchart TD
    subgraph Client
        A[Mobile App]
        B[Web App]
    end

    subgraph Edge/CDN
        C[CDN]
    end

    subgraph Load Balancer
        D[Load Balancer]
    end

    subgraph API / Services
        E[Transaction Service]
        F[Auth Service]
    end

    subgraph Cache
        G[Redis Cache]
    end

    subgraph Datastores
        H["SQL DB (PostgreSQL)"]
        I["NoSQL DB (Cassandra)"]
    end

    subgraph Message Queue
        J[Kafka]
    end

    subgraph Workers
        K[Transaction Validator]
    end

    A -->|HTTPS Request| C
    B -->|HTTPS Request| C
    C -->|Forward Request| D
    D -->|Route Request| E
    E -->|Authenticate| F
    F -->|User Data| E
    E -->|Read/Write| G
    E -->|Read/Write| H
    E -->|Publish Event| J
    J -->|Consume Event| K
    K -->|Validate & Update| I
Diagram

3. API design

  • POST /transactions: Initiate a new transaction.
  • GET /transactions/{id}: Retrieve the status of a transaction.
  • POST /auth/login: Authenticate a user.
  • GET /balance: Retrieve the current balance of a user.

4. Data model & storage

Datastores:

  • SQL DB (PostgreSQL): Used for storing transaction records due to ACID compliance and complex queries.
  • NoSQL DB (Cassandra): Used for storing user balances and transaction logs to handle high write throughput and scalability.

Key Tables:

  • Transactions Table (SQL):
  • transaction_id (Primary Key)
  • user_id
  • amount
  • status
  • timestamp
  • User Balances (NoSQL):
  • Partition Key: user_id
  • Columns: balance, last_updated

5. Deep dive

The core of processing and validating transactions involves ensuring data integrity and concurrency control. We employ optimistic concurrency control to handle concurrent transactions efficiently.

sequenceDiagram
    participant User
    participant API
    participant Auth
    participant Cache
    participant DB
    participant Queue
    participant Validator

    User->>API: POST /transactions
    API->>Auth: Validate User
    Auth-->>API: User Validated
    API->>Cache: Check Transaction Cache
    Cache-->>API: Cache Miss
    API->>DB: Write Transaction Record
    DB-->>API: Record Written
    API->>Queue: Publish Transaction Event
    Queue-->>Validator: Consume Event
    Validator->>DB: Validate Transaction
    DB-->>Validator: Validation Success
    Validator->>DB: Update User Balance
    DB-->>Validator: Balance Updated
    Validator-->>API: Transaction Validated
    API-->>User: Transaction Success
Diagram

6. Scale, bottlenecks & trade-offs

Scalability:

  • Horizontal scaling of the API and database layers to handle increased load.
  • Use of a distributed message queue (Kafka) to decouple transaction processing and validation.

Bottlenecks:

  • Database write operations can become a bottleneck; use of NoSQL for high write throughput helps mitigate this.
  • Cache misses can increase latency; ensure hot data is cached effectively.

Trade-offs:

  • Consistency vs. Availability: Opt for eventual consistency in the NoSQL database to ensure high availability.
  • Security vs. Performance: Strong encryption and authentication can add latency but are necessary for security.
  • Optimistic vs. Pessimistic Concurrency: Optimistic concurrency is chosen for better performance under high contention scenarios, accepting the risk of occasional retries.

By carefully considering these factors, the system can efficiently process and validate transactions while ensuring data integrity and performance.

TechnicalEasyRevolut

17. What is the difference between optimistic and pessimistic locking in database transactions?

Model answer

Optimistic vs. Pessimistic Locking in Database Transactions

  1. Optimistic Locking
  • Concept: Assumes that multiple transactions can frequently complete without interfering with each other. It checks for conflicts only at the time of committing the transaction.
  • Mechanism: Each transaction reads a version number or timestamp of the data. Before committing, it checks if the version number has changed. If it has, the transaction is rolled back.
  • Use Cases: Suitable for scenarios with low contention, where conflicts are rare. It is often used in web applications where users mostly read data and less frequently update it.
  • Pros:
  • Reduces the need for locking resources, leading to better performance in low-contention environments.
  • Allows for higher concurrency as transactions do not block each other.
  • Cons:
  • May lead to higher rollback rates if conflicts occur frequently.
  • Requires additional logic to handle retries and conflict resolution.
  1. Pessimistic Locking
  • Concept: Assumes that conflicts between transactions are likely. It locks the data when a transaction starts, preventing other transactions from accessing it until the lock is released.
  • Mechanism: When a transaction reads or writes data, it acquires a lock. Other transactions attempting to access the locked data are blocked until the lock is released.
  • Use Cases: Ideal for high-contention environments where data is frequently updated, such as financial systems or inventory management.
  • Pros:
  • Prevents conflicts by ensuring that only one transaction can access the data at a time.
  • Simplifies transaction management as conflicts are avoided upfront.
  • Cons:
  • Can lead to decreased system throughput due to blocking.
  • May cause deadlocks if not managed carefully.

Complexity

  • Optimistic Locking:
  • Time Complexity: O(1) for version check, but potential retries increase complexity.
  • Space Complexity: O(1) for storing version numbers.
  • Pessimistic Locking:
  • Time Complexity: O(1) for acquiring and releasing locks, but blocking can increase wait times.
  • Space Complexity: O(1) for lock management.
TechnicalMediumRevolutEngineering Manager

18. What technical community or movement are you passionate about, and how would you contribute to it?

Model answer

  1. Choose a community with a genuine connection. I would name a specific technical community I actually participate in—for example, an open-source project, a local engineering group, or an accessibility-focused technology community—and explain what I value about its work. I would avoid presenting a fashionable topic as a passion without a concrete example.
  2. Describe my contribution in terms of service. I might talk about maintaining a library, improving documentation, mentoring new contributors, reviewing proposals, or sharing practical lessons from operating systems in production. A strong example is specific: what problem contributors faced, what I personally did, who I collaborated with, and what changed as a result.
  3. Connect contribution to Engineering Manager strengths. I would show that I can make technical participation inclusive and sustainable: create good first issues, establish respectful review norms, clarify ownership, and recognize contributors. I would also explain the trade-off between my team's commitments and community work, setting clear boundaries rather than making promises that depend on unpaid or invisible labor.
  4. Make impact measurable without overstating it. Depending on the work, useful measures could include contributor retention, time to first contribution, documentation task completion, release reliability, adoption, or response time to issues. I would combine numbers with qualitative evidence, such as a new maintainer becoming confident enough to lead a release.
  5. Explain how I would contribute in this role. I would first listen and learn the community's existing norms, identify a real need, and offer a small, consistent contribution. As a manager, I would make participation accessible to my team where appropriate—through mentoring, conference or documentation time, and recognition—without treating open-source contributions as a substitute for compensated work or business-critical maintenance.

Example outline to adapt: “I care about the [community] because [specific reason]. I contributed by [concrete action], working with [people or groups] to address [problem]. We saw [specific result], and I learned [lesson]. Going forward, I would start by understanding the community's priorities, then contribute consistently in a way that is useful and sustainable.”

What interviewers listen for: Authentic motivation, evidence of follow-through, collaborative behavior, respect for diverse contributors, and a realistic plan for balancing community work with organizational responsibilities.

TechnicalMediumRevolut

19. How does Revolut handle API versioning?

Model answer

How Revolut Handles API Versioning

Revolut, like many modern financial technology platforms, needs to manage its APIs efficiently to ensure backward compatibility and seamless integration with various clients. API versioning is a critical aspect of this management, allowing Revolut to introduce changes without disrupting existing services. Here's how Revolut might handle API versioning:

  1. URL Path Versioning: - Revolut likely uses URL path versioning, where the version number is included in the API endpoint path. For example, /api/v1/accounts for version 1 and /api/v2/accounts for version 2. This approach makes it clear which version of the API is being accessed and allows clients to specify the version they need.
  2. Backward Compatibility: - Maintaining backward compatibility is crucial. Revolut ensures that newer versions of the API do not break existing client integrations. This is achieved by keeping older versions available and stable while introducing new features or changes in subsequent versions.
  3. Deprecation Policy: - Revolut likely has a clear deprecation policy. When a new version is released, the older version is marked as deprecated, and clients are notified. They are given a grace period to migrate to the newer version before the old version is retired.
  4. Documentation and Communication: - Comprehensive documentation is provided for each API version. Revolut ensures that clients are well-informed about changes, new features, and migration paths. Effective communication channels are established to assist clients during transitions.
  5. Testing and Validation: - Before releasing a new API version, extensive testing is conducted to ensure that it meets the required standards and does not introduce regressions. Automated tests and validation processes are in place to verify the functionality of both new and existing versions.
  6. Use of Feature Flags: - Feature flags might be used to introduce new features gradually. This allows Revolut to test new functionalities with a subset of users before rolling them out to all clients, reducing the risk of widespread issues.
  7. Event Sourcing for State Management: - As referenced, Revolut might employ event sourcing to manage state changes across different API versions. This approach allows the system to maintain a complete audit trail and rebuild the current state by replaying events, which can be particularly useful when transitioning between API versions.

By implementing these strategies, Revolut can effectively manage API versioning, ensuring a balance between innovation and stability, and providing a seamless experience for its clients.

TechnicalMediumRevolut

20. What database technologies does Revolut use, and why?

Model answer

Database Technologies Used by Revolut

Revolut, a financial technology company, employs a combination of database technologies to meet its diverse needs for scalability, performance, and reliability. Here is an overview of the key database technologies used by Revolut and the reasons behind their choices:

  1. PostgreSQL: - Usage: Revolut uses PostgreSQL as its primary relational database management system (RDBMS). - Reasons: - ACID Compliance: PostgreSQL provides strong ACID (Atomicity, Consistency, Isolation, Durability) guarantees, which are crucial for financial transactions where data integrity and consistency are paramount. - Rich Feature Set: It supports advanced features like full-text search, JSONB for semi-structured data, and robust indexing capabilities, making it versatile for various use cases. - Scalability: PostgreSQL can handle large volumes of data and complex queries efficiently, which is essential for a growing fintech company like Revolut.
  2. NoSQL Databases: - Usage: Revolut also leverages NoSQL databases for specific use cases that require high throughput and flexible data models. - Reasons: - Scalability and Performance: NoSQL databases are designed to scale horizontally, providing high performance for read and write operations, which is beneficial for handling large-scale data and real-time analytics. - Flexibility: The schema-less nature of NoSQL databases allows for rapid iteration and adaptation to changing data requirements, which is advantageous in a fast-paced environment.
  3. In-Memory Databases: - Usage: For caching and fast data retrieval, Revolut uses in-memory databases like Redis. - Reasons: - Low Latency: In-memory databases provide extremely fast data access times, which is critical for improving the performance of user-facing applications. - Efficient Caching: They are used to cache frequently accessed data, reducing the load on primary databases and enhancing overall system efficiency.

Conclusion

Revolut's choice of database technologies reflects its need to balance consistency, scalability, and performance. By using PostgreSQL for its core transactional data, NoSQL databases for scalability and flexibility, and in-memory databases for caching, Revolut ensures it can handle the demands of a modern fintech platform while maintaining data integrity and performance.

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.

Get ChannelPulse Browse all questions