Reddit interview questions & answers

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

BehavioralEasyRedditData ScientistOnsite

1. You are a Data Scientist/Analytics partner supporting multiple engineering teams.

The full question

You are a Data Scientist/Analytics partner supporting multiple engineering teams. Two (or more) teams simultaneously ask you to prioritize their analytics/experimentation requests, and the requests conflict in timeline and scope.

Question

  1. How do you decide which request to prioritize?
  2. What information do you gather (from PM/Eng/Stakeholders) before committing?
  3. How do you communicate tradeoffs, timelines, and a final decision back to the teams?
  4. What do you do if a senior leader pressures you to override your prioritization?

Model answer

Situation As a Data Scientist/Analytics partner at Reddit, I was supporting multiple engineering teams, each with their own analytics and experimentation needs. One day, two teams simultaneously requested my assistance on projects that conflicted in both timeline and scope. One team was focused on a high-impact feature launch, while the other needed insights for a critical bug fix. Both projects were crucial and time-sensitive, which made prioritization challenging.

Task My task was to decide which request to prioritize without compromising the quality of my work or the relationships with the teams. I needed to gather sufficient information to make an informed decision and communicate my choice effectively to all stakeholders involved.

Action

  • I began by gathering detailed information from both teams. I met with the Product Managers and Engineering leads to understand the impact, urgency, and potential outcomes of each request. I asked questions about the expected business impact and how each project aligned with the company's strategic goals.
  • I evaluated the requests based on several criteria: the potential impact on user experience, alignment with company objectives, and the feasibility of completing the work within the given timelines. I also considered any dependencies and the availability of resources.
  • To ensure a fair decision-making process, I consulted with my manager and other stakeholders to gain additional perspectives and validate my assessment. This helped me weigh the trade-offs more accurately.
  • I communicated my decision to both teams, explaining the rationale behind my prioritization. I outlined the trade-offs and timelines, ensuring transparency and understanding. I emphasized the importance of the prioritized project and reassured the other team that their request would be addressed as soon as possible.
  • When a senior leader expressed a preference for prioritizing one of the projects, I presented my analysis and reasoning, highlighting the strategic alignment and potential impact. I remained open to feedback and adjusted my plan if necessary, but I stood by my decision when it was in the best interest of the company.

Result By prioritizing the feature launch, we were able to meet the deadline and achieve a significant increase in user engagement, which aligned with our strategic goals. The bug fix was addressed shortly after, minimizing any negative impact. This experience taught me the importance of thorough evaluation and transparent communication in prioritization decisions. It reinforced my ability to balance competing demands and maintain strong relationships with cross-functional teams.

BehavioralEasyRedditData ScientistOnsite

2. As a Data Scientist working with Product Managers and Engineers: How do you structure collaboration (requirements, timelines, ownership)?

The full question

As a Data Scientist working with Product Managers and Engineers:

  1. How do you structure collaboration (requirements, timelines, ownership)?
  2. How do you decide which requests to push back on vs which to proactively drive?
  3. Describe a concrete example where you influenced product direction or prevented a bad decision.

(Answer as if you’re supporting an Ads product team.)

Model answer

Situation

In my role as a Data Scientist supporting the Ads product team at a tech company, I worked closely with Product Managers and Engineers to optimize ad targeting algorithms. The stakes were high as our goal was to significantly increase ad engagement and revenue. We were under pressure to deliver results quickly due to aggressive quarterly targets.

Task

I was tasked with structuring collaboration effectively, ensuring clear requirements, timelines, and ownership. Additionally, I needed to discern which requests to push back on and which to proactively drive, all while influencing product direction to avoid costly missteps.

Action

  • I initiated a series of cross-functional workshops to align on project goals and establish clear communication channels. This helped in defining precise requirements and setting realistic timelines, ensuring everyone was on the same page.
  • To manage requests, I developed a prioritization framework based on impact, feasibility, and alignment with strategic goals. This allowed us to focus on high-impact projects and push back on less critical requests.
  • For example, when a Product Manager requested a complex feature that required significant resources but offered minimal incremental value, I used data-driven insights to demonstrate why it was not a priority. I presented alternative solutions that were more aligned with our objectives.
  • I proactively drove initiatives that had clear data-backed benefits. One such initiative was enhancing our machine learning model to improve ad targeting accuracy. I collaborated with engineers to implement this, resulting in a 15% increase in ad engagement.
  • I influenced product direction by advocating for an A/B testing framework to validate changes before full-scale implementation. This prevented potential revenue loss from untested features and ensured data-driven decision-making.

Result

Our structured collaboration approach led to a 20% increase in project delivery efficiency. By focusing on high-impact initiatives, we achieved a 10% increase in ad revenue within the quarter. The prioritization framework I introduced became a standard practice, enhancing our team's decision-making process. This experience reinforced the importance of data-driven prioritization and effective cross-functional collaboration.

BehavioralEasyReddit

3. Tell me about a time when you had to collaborate with a team to solve a challenging problem.

The full question

Tell me about a time when you had to collaborate with a team to solve a challenging problem. What was your role, and what was the outcome?

Model answer

Situation In my previous role as a software engineer at a tech company, our team faced a significant challenge when tasked with integrating a third-party data visualization library into our custom backend solution. This integration was crucial for a new analytics platform we were developing, which needed to provide real-time insights to our clients. Given the complexity of the task and the tight deadline, it was essential for our team to collaborate effectively to deliver a high-quality solution.

Task As the lead developer on the project, my goal was to ensure a seamless integration of the library while maintaining the performance and reliability of our backend system. The key constraint was balancing the technical requirements with the user experience, all within a limited timeframe.

Action

  • I initiated a series of brainstorming sessions with key stakeholders, including front-end and back-end developers, UX designers, and data scientists, to explore various integration approaches.
  • We identified potential roadblocks early on, such as compatibility issues and performance bottlenecks, and discussed possible solutions.
  • I facilitated open communication among team members, encouraging everyone to share their insights and concerns, which helped in identifying the most feasible integration strategy.
  • We decided to prototype two different approaches, allowing us to empirically test their performance and user experience impact.
  • After thorough testing and analysis, we opted for the approach that best met our technical and user experience goals.
  • Throughout the process, I maintained regular updates with the team and stakeholders, ensuring alignment and addressing any emerging issues promptly.

Result Our collaborative efforts led to the successful delivery of the real-time data analytics platform within the given timeline. The client was delighted with the platform’s user-friendly interface and advanced visualizations, which significantly enhanced their decision-making process. This experience reinforced the importance of communication and teamwork in overcoming complex challenges. I learned that leveraging diverse perspectives and fostering a collaborative environment can lead to innovative solutions and strengthen team dynamics.

BehavioralEasyRedditTechnical Program Manager

4. What does a good day at work look like for you, and what does a bad day look like?

Model answer

Situation — A strong day for me is one where a cross-functional team turns an ambiguous, important goal into progress that customers or partner teams can feel. For example, imagine a multi-team launch with an API dependency, a reliability risk, and a fixed external date. A bad day is not simply a day with setbacks; it is one where a preventable surprise, unclear ownership, or reluctance to surface risk leaves people unable to make a timely decision.

Task — My responsibility is to create the conditions for useful progress: make the outcome and constraints clear, help teams resolve dependencies, and keep leadership informed without adding process for its own sake.

Action

  • I start by checking the top outcome, the critical path, and the decisions or risks that could change the plan. I confirm that owners and next steps are clear.
  • I work directly with the people closest to a blocker. For example, if an API contract is late, I bring the service and client owners together to agree on a minimal compatible contract, a test plan, and a decision date.
  • I make trade-offs visible. If quality or readiness is at risk, I describe options—reduce scope, change sequencing, add support, or move the date—and their customer impact rather than quietly relying on overtime.
  • I communicate in a way suited to the audience: detailed actions for the working team, concise status and decisions needed for executives, and clear expectations for dependent teams.
  • When the day goes badly, I acknowledge what I missed, restore a shared view of the facts, assign owners to corrective actions, and update the plan. I avoid blame and look for a process or signal that would prevent a repeat.

Result — In an adapted interview example, I’d tie the outcome to evidence: the dependency was resolved before integration testing, the team launched against agreed readiness criteria, and we avoided a late scope surprise. I would give the actual metrics from my experience—such as milestone predictability, defect escape rate, or customer impact—rather than invent numbers. I’ve learned that a good day is not one with no problems; it is one where the right people see the real problem early and can make a sound decision together.

CodingEasyRedditSoftware Engineer

5. Logger Rate Limiter (LeetCode)

Model answer

The task

Build a logger that decides whether to print each message. A message is allowed if it has not been printed in the previous 10 seconds.

Key idea

Store the timestamp of the last time each message was accepted. Allow a message when it has never been printed or at least 10 seconds have elapsed since its last accepted print.

Approach

  1. Create a hash map from message text to its last accepted timestamp.
  2. For each request, look up the message’s previous timestamp.
  3. If there is no previous timestamp, or the elapsed time is at least 10 seconds, record the current timestamp and return True.
  4. Otherwise, return False without changing the stored timestamp.
class Logger:
    def __init__(self):
        # Message text -> timestamp of its last accepted print.
        self.last_printed = {}

    def shouldPrintMessage(self, timestamp: int, message: str) -> bool:
        previous = self.last_printed.get(message)

        if previous is None or timestamp - previous >= 10:
            self.last_printed[message] = timestamp
            return True

        return False

Complexity:

  • Time: O(1) average per request for hash-map operations.
  • Space: O(m), where m is the number of distinct messages stored.

Common follow-ups

  • What if requests arrive out of timestamp order? Store timestamp history per message and check whether any accepted print falls within the relevant interval.
  • How can memory use be reduced for a chronological stream? Evict entries older than the rate-limit window, using a queue or time-ordered structure.
  • How would this work across multiple servers? Use shared, atomic state in a distributed store, with a consistent rate-limit operation.
CodingEasyReddit

6. Given an array of integers, return the 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 over 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 is already 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);
    }

    // If no solution is found, return an empty array
    return [];
}

// Example usage:
// const indices = twoSum([2, 7, 11, 15], 9);
// console.log(indices); // Output: [0, 1]
  • Approach:
  • Use a hash map to track the numbers we have seen and their indices.
  • For each number, calculate the complement needed to reach the target.
  • Check if this complement is already in the map.
  • If found, return the current index and the index of the 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 array once.
  • Space: O(n), for storing elements in the hash map.
CodingEasyReddit

7. Reverse a given string.

Model answer

function reverseString(str) {
    // Convert the string into an array of characters
    let charArray = str.split('');
    
    // Initialize two pointers
    let left = 0;
    let right = charArray.length - 1;
    
    // Swap characters until the pointers meet in the middle
    while (left < right) {
        // Swap characters at left and right pointers
        let temp = charArray[left];
        charArray[left] = charArray[right];
        charArray[right] = temp;
        
        // Move the pointers towards the center
        left++;
        right--;
    }
    
    // Join the array back into a string and return
    return charArray.join('');
}

// Example usage
console.log(reverseString("hello")); // Output: "olleh"
  • Approach:
  • Convert the string into an array to easily manipulate characters.
  • Use two pointers: one starting at the beginning (left) and the other at the end (right).
  • Swap the characters at these pointers and move them towards the center.
  • Continue swapping until the pointers meet or cross.
  • Finally, join the array back into a string.
  • Complexity:
  • Time: O(n), where n is the length of the string, as each character is visited once.
  • Space: O(n), due to the array used to hold characters of the string.
CodingEasyReddit

8. Given an array of integers, write a function to find the sum of all even numbers in the array.

Model answer

function sumOfEvenNumbers(arr) {
    let sum = 0; // Initialize sum to 0

    for (let i = 0; i < arr.length; i++) {
        if (arr[i] % 2 === 0) { // Check if the number is even
            sum += arr[i]; // Add even number to sum
        }
    }

    return sum; // Return the sum of even numbers
}

// Example usage:
const numbers = [1, 2, 3, 4, 5, 6];
console.log(sumOfEvenNumbers(numbers)); // Output: 12
  • Approach:
  • Initialize a variable sum to store the cumulative sum of even numbers.
  • Iterate through each element in the array.
  • Check if the current element is even using the modulus operator (%).
  • If even, add the element to sum.
  • Return the final sum after the loop completes.
  • Complexity:
  • Time Complexity: O(n), where n is the number of elements in the array. We iterate through the array once.
  • Space Complexity: O(1), as we use a constant amount of extra space for the sum variable.
Product & growthEasyRedditProduct Manager

9. What is your favorite Reddit feature and why?

The full question

What is your favorite Reddit feature and why? How would you improve it?

Model answer

Favorite Feature: My favorite Reddit feature is the "upvote/downvote" system because it empowers the community to surface quality content and maintain community standards.

Improvement: While effective, it sometimes leads to "karma farming" and echo chambers.

Clarify & Scope: The goal is to enhance the voting system to promote diverse perspectives. Assume the current system is widely used but has limitations in content diversity.

User Segments & Pain Points: Focus on users who value diverse content. Pain points include echo chambers and content homogeneity.

Goals & Success Metrics: The North Star metric is the diversity of content surfaced. Guardrail metrics include user satisfaction and engagement diversity.

Solutions:

  1. Introduce a "diversity boost" for underrepresented content.
  2. Implement a "contextual voting" system that considers user expertise.

Recommendation: Implement the "diversity boost" as it directly addresses content homogeneity.

Prioritization & Trade-offs: The diversity boost is impactful for content variety but requires careful balancing to avoid gaming the system.

MVP, Measurement & Rollout: Test the diversity boost in a few subreddits, measure changes in content variety and user satisfaction, and iterate based on feedback.

Product & growthEasyRedditProduct Manager

10. Which metric would you prioritize to measure the success of Reddit's 'Ask Me Anything' (AMA) sessions?

Model answer

Clarify: The objective is to evaluate the success of AMA sessions on Reddit. Assume AMAs are hosted by notable individuals and aim to drive engagement.

Define Metric(s): Focus on engagement metrics such as the number of questions submitted, comments, and upvotes during AMAs.

Break Down: Consider the user journey in an AMA:

funnel
Visit AMA Page --> Submit Questions --> Engage with Content --> Post-AMA Interaction
Diagram

Ranked Hypotheses:

  1. High engagement indicates successful AMAs.
  2. The diversity of participation reflects broader interest.
  3. Quality of questions and answers impacts user satisfaction.

How to Investigate: Analyze engagement data, user feedback, and compare with past AMA sessions. Look for patterns in participation and satisfaction.

Decision & Guardrails: Prioritize the number of questions and comments as primary indicators of engagement success, ensuring high-quality interactions.

Product & growthMediumRedditTechnical Program Manager

11. How would you design a product or program to improve the quality of the home feed over time?

Model answer

Clarify & scope

I’d first define “quality” with the team: relevance, freshness, diversity, trust, and user control may matter more than raw engagement. I’d assume the home feed is a personalized ranked list of content and that we can measure both immediate interactions and longer-term satisfaction. I’d also ask whether the goal is to improve an existing feed or launch a new one; I’ll scope an existing feed and focus on an iterative improvement program.

User segments & pain points

I’d segment new users, established users, and users with narrow or changing interests. I’d start with established users who report repetitive or irrelevant recommendations: they provide behavioral signals, but may be underserved when the system overweights past clicks. I’d validate this through surveys, feed audits, and behavioral data rather than assume engagement equals satisfaction.

Goals & success metrics

My North Star would be weekly satisfied feed sessions, measured through a lightweight satisfaction signal and calibrated against behavioral outcomes. Supporting metrics include relevant-content feedback, saves or meaningful actions, freshness, and topic diversity. Guardrails include hides/reports, negative feedback, session abandonment, latency, creator exposure concentration, and safety-policy violations. I’d review results by user segment so an aggregate lift does not conceal harm to a smaller group.

Solutions

I’d compare three options: improve ranking features and feedback signals; add explicit user controls such as “show me less” and topic preferences; and introduce freshness and diversity constraints to reduce repetitive results. The control option creates useful, interpretable feedback, while ranking changes can scale those signals across the feed.

Recommendation: Build a feedback loop combining explicit controls with ranking improvements. Treat user feedback as a strong signal, not an absolute command; protect against accidental taps, manipulation, and feedback that overfits a short-term mood.

flowchart LR
  A[Collect behavior and feedback] --> B[Update user and content signals]
  B --> C[Rank with quality constraints]
  C --> D[Show feed]
  D --> E[Measure satisfaction and guardrails]
  E --> A
Diagram

Prioritization & trade-offs

I’d use impact, confidence, effort, and risk to prioritize an MVP: instrument feedback and establish a trustworthy baseline first, then test a limited ranking change. The core trade-off is relevance versus diversity; optimize for useful variety, not maximum novelty or maximum clicks. Another is personalization versus privacy, which calls for data minimization and clear controls.

MVP, measurement & rollout

I’d first validate event quality and define an experiment plan with product, engineering, data science, content, and policy partners. Run an A/B test with a holdout, guardrails, and a staged rollout; check short-term and sustained effects across segments. Ship only if satisfaction improves without unacceptable safety, latency, diversity, or retention regressions. As TPM, I’d own dependency sequencing, metric definitions, launch criteria, and a decision review that turns results into the next iteration.

Product & growthMediumRedditProduct Manager

12. How would you improve Reddit's onboarding experience for new users?

Model answer

Clarify & Scope: The goal is to enhance the onboarding experience for new Reddit users to increase user retention and engagement. Assume the current onboarding process involves account creation, joining subreddits, and a brief tutorial.

User Segments & Pain Points: Focus on new users unfamiliar with Reddit's community-driven platform. Pain points include overwhelming subreddit choices and unclear navigation.

Goals & Success Metrics: The North Star metric is the 7-day retention rate. Guardrail metrics include user satisfaction scores and time spent on the platform during the first week.

Solutions:

  1. Personalized subreddit recommendations based on interests selected during onboarding.
  2. Interactive tutorials that guide users through key features like posting, commenting, and voting.
  3. A "starter kit" of popular posts to engage users immediately.

Recommendation: Implement personalized subreddit recommendations as they directly address the overwhelming choice issue.

user-flow
User -->|Select Interests| Personalized Recommendations --> Interactive Tutorial --> Starter Kit
Diagram

Prioritization & Trade-offs: Using RICE, personalized recommendations score high on impact but medium on effort, making them a priority.

MVP, Measurement & Rollout: Develop a basic version of the recommendation engine and test it with a small user cohort. Measure retention and engagement metrics before a full rollout.

System designEasyReddit

13. Design a simple voting system for Reddit posts.

Model answer

1. Requirements & scale

Functional Requirements:

  • Users can upvote or downvote posts.
  • Each post displays the total score (upvotes - downvotes).
  • Users can change their vote (e.g., from upvote to downvote).
  • Users can see their voting history.

Non-Functional Requirements:

  • Low latency for vote operations.
  • High availability and fault tolerance.
  • Scalability to handle millions of users and votes.

Estimates:

  • Assume 1 million active users, each making an average of 10 votes per day.
  • Total votes per day = 10 million.
  • Votes per second (QPS) = 10 million / 86,400 ≈ 116 QPS.
  • Storage: Each vote record (user_id, post_id, vote_type) ≈ 50 bytes.
  • Total storage for votes per day = 10 million * 50 bytes = 500 MB.

2. High-level architecture

flowchart TD
    subgraph Client
        A[User]
    end

    subgraph Edge/CDN
        B[CDN]
    end

    subgraph Load Balancer
        C[Load Balancer]
    end

    subgraph API / Services
        D[Vote Service]
    end

    subgraph Cache
        E[Redis]
    end

    subgraph Datastores
        F[SQL Database]
    end

    subgraph Message Queue
        G[Kafka]
    end

    subgraph Workers
        H[Vote Processor]
    end

    A -->|Vote Request| B
    B --> C
    C --> D
    D -->|Read/Write| E
    E -->|Cache Miss| F
    D -->|Publish Vote Event| G
    G --> H
    H -->|Update| F
Diagram

3. API design

  • POST /vote: Submit a vote for a post.
  • Request body: { "user_id": "123", "post_id": "456", "vote_type": "upvote" }
  • Response: { "status": "success" }
  • GET /post/:post_id/score: Retrieve the current score of a post.
  • Response: { "post_id": "456", "score": 42 }
  • GET /user/:user_id/votes: Retrieve voting history for a user.
  • Response: { "user_id": "123", "votes": [{"post_id": "456", "vote_type": "upvote"}] }

4. Data model & storage

Datastore Choice:

  • SQL Database: Suitable for transactional operations and maintaining consistency.
  • Redis: Used for caching post scores to reduce read latency.

Key Tables:

  • Votes Table:
  • Columns: user_id, post_id, vote_type
  • Primary Key: (user_id, post_id) to ensure one vote per user per post.
  • Posts Table:
  • Columns: post_id, score
  • Primary Key: post_id

5. Deep dive

The core of the voting system is efficiently handling vote operations and updating post scores. Here's a sequence diagram for the voting process:

sequenceDiagram
    participant User
    participant VoteService
    participant Redis
    participant SQLDB
    participant Kafka
    participant VoteProcessor

    User->>VoteService: Submit Vote
    VoteService->>Redis: Check Post Score Cache
    alt Cache Hit
        Redis-->>VoteService: Return Score
    else Cache Miss
        VoteService->>SQLDB: Retrieve Post Score
        SQLDB-->>VoteService: Return Score
        VoteService->>Redis: Update Cache
    end
    VoteService->>SQLDB: Record Vote
    SQLDB-->>VoteService: Acknowledge
    VoteService->>Kafka: Publish Vote Event
    Kafka-->>VoteProcessor: Deliver Event
    VoteProcessor->>SQLDB: Update Post Score
Diagram

6. Scale, bottlenecks & trade-offs

Scalability:

  • Replication: SQL database replication for read scalability and high availability.
  • Sharding: Shard the Votes table by user_id to distribute load.

Caching:

  • Use Redis to cache post scores to reduce database reads and improve response times.

Bottlenecks:

  • Database Write Load: High write load on the Votes table can be mitigated by using a message queue (Kafka) to process votes asynchronously.
  • Cache Invalidation: Ensure cache consistency by updating Redis after processing vote events.

Trade-offs:

  • Consistency vs. Availability (CAP Theorem): Prioritize consistency for vote operations to ensure accurate post scores.
  • Sync vs. Async Processing: Use asynchronous processing for updating scores to reduce latency for user-facing operations.

This design ensures a scalable, efficient voting system capable of handling Reddit's large user base and high voting activity while maintaining low latency and high availability.

System designMediumRedditBackend EngineerTechnical Screen

14. Design a small scoring component for one tennis game between two players.

The full question

Design a small scoring component for one tennis game between two players. It must record which player won each point, report a human-readable score, and identify when the game has ended and who won.

Under standard scoring, the first points are displayed as Love, 15, 30, and 40. Once both players have at least three points, equal scores are Deuce, a one-point lead is Advantage, and a two-point lead wins the game. Extend the design so another scoring policy, such as no-ad scoring at Deuce, can be selected without putting rule-specific conditionals throughout the game object.

Candidate hint: Keep the facts that happened separate from the policy that interprets those facts.

Model answer

1. Requirements & scale

Functional Requirements:

  • Record which player won each point.
  • Report the current score in a human-readable format.
  • Identify when the game has ended and who won.
  • Support multiple scoring policies (e.g., standard, no-ad scoring).

Non-Functional Requirements:

  • The system should be extensible to accommodate new scoring policies.
  • Ensure high reliability and accuracy in score reporting.
  • Maintain separation between game events and scoring policies.

Estimates:

Given that this is a component for a single tennis game, the scale is minimal. No significant storage or bandwidth concerns are anticipated. The system primarily requires efficient in-memory operations.

2. High-level architecture

flowchart TD
    subgraph Client
        A[Player Input]
    end
    
    subgraph API / Services
        B[Game Service]
        C[Scoring Policy]
    end
    
    subgraph Datastores
        D["Event Store"]
    end
    
    A -->|Point Won| B
    B -->|Store Event| D
    B -->|Fetch Events| C
    C -->|Calculate Score| B
    B -->|Report Score| A
Diagram

3. API design

  • POST /game/{gameId}/point: Record a point won by a player.
  • GET /game/{gameId}/score: Retrieve the current score of the game.
  • GET /game/{gameId}/status: Check if the game has ended and who won.

4. Data model & storage

Datastore Choice:

  • Event Store: Use an event sourcing approach to store each point as an event. This allows the system to reconstruct the game state by replaying events, supporting different scoring policies without altering the underlying data.

Key Tables/Structures:

  • Events Table:
  • gameId: Unique identifier for the game.
  • playerId: Identifier for the player who won the point.
  • timestamp: Time when the point was recorded.

5. Deep dive

The core of this design is the separation of game events from scoring policies using event sourcing. Each point won is stored as an event, and the current score is derived by applying a scoring policy to these events.

sequenceDiagram
    participant Player
    participant GameService
    participant EventStore
    participant ScoringPolicy

    Player->>GameService: Record Point (playerId)
    GameService->>EventStore: Store Event (gameId, playerId)
    Player->>GameService: Request Score
    GameService->>EventStore: Fetch Events (gameId)
    EventStore-->>GameService: List of Events
    GameService->>ScoringPolicy: Calculate Score (events)
    ScoringPolicy-->>GameService: Current Score
    GameService-->>Player: Return Score
Diagram

6. Scale, bottlenecks & trade-offs

Scalability:

  • The system is designed to handle a single game, so scalability concerns are minimal. However, the architecture supports scaling by handling multiple games concurrently if needed.

Bottlenecks:

  • The main bottleneck could be the event store if it becomes large, but given the small scale of a single game, this is unlikely to be an issue.

Trade-offs:

  • Event Sourcing: Provides a complete audit trail and flexibility to apply different scoring policies. However, it requires replaying events to compute the current state, which can be inefficient if the event list grows large. This can be mitigated by creating periodic snapshots.
  • CAP Theorem: As this is not a distributed system, CAP considerations are minimal. However, if extended to a distributed system, one might prioritize consistency and availability.
  • Policy Extensibility: By decoupling the scoring policy from the game events, the system adheres to the DRY principle, allowing easy addition of new policies without modifying existing code. This promotes maintainability and flexibility.
System designMediumRedditSoftware EngineerOnsite

15. You’re building an ML platform component that serves a model to predict the likelihood that a user will comment on a given post.

The full question

You’re building an ML platform component that serves a model to predict the likelihood that a user will comment on a given post.

The interviewer says you can treat the model as a black box (you don’t need to pick a specific architecture); focus on ML infrastructure: feature pipelines, feature store, training/serving, inference, and production concerns.

Goals

Design an end-to-end system that supports:

  • Offline training data generation and model training
  • Online inference (real-time scoring) for product surfaces (e.g., feed ranking, notification candidate scoring)
  • A feature store strategy (offline + online)
  • Monitoring, logging, and iteration

Requirements & constraints (you may make reasonable assumptions)

  • High QPS online scoring (potentially tens of thousands/sec)
  • P95 latency budget for scoring: e.g., 50–150 ms end-to-end (state your assumption)
  • Freshness: some features need near-real-time updates (seconds to minutes)
  • Avoid training/serving feature skew
  • Handle cold start (new users/posts)
  • Support A/B testing and safe rollout

Deliverables

Explain:

  1. Data sources and event logging
  2. Feature engineering and feature store design
  3. Training pipeline and dataset versioning
  4. Online inference architecture (batch vs real-time, caching, fallbacks)
  5. Monitoring (data + model), retraining triggers, and reliability considerations

Model answer

1. Requirements & scale

Functional Requirements:

  • Generate offline training data and perform model training.
  • Provide online inference for real-time scoring of user engagement likelihood.
  • Implement a feature store for both offline and online features.
  • Ensure monitoring, logging, and iteration for model performance.
  • Support A/B testing and safe rollout of model updates.

Non-Functional Requirements:

  • High QPS online scoring, potentially tens of thousands per second.
  • P95 latency for scoring should be between 50–150 ms.
  • Feature freshness with updates in seconds to minutes.
  • Handle cold starts for new users/posts.

Estimates:

  • QPS: Assume 10,000 QPS for inference.
  • Latency: Target P95 latency of 100 ms.
  • Storage: Assume 1 TB for feature store data, considering historical and real-time data.
  • Bandwidth: Assume 1 GB/s for data ingestion and feature updates.

2. High-level architecture

flowchart TD
    subgraph Client
        A[User Device]
    end
    subgraph Edge/CDN
        B[CDN]
    end
    subgraph Load Balancer
        C[Load Balancer]
    end
    subgraph API / Services
        D[Inference Service]
        E[Feature Service]
    end
    subgraph Cache
        F[Feature Cache]
    end
    subgraph Datastores
        G[Feature Store]
        H[Model Store]
    end
    subgraph Message Queue
        I[Event Queue]
    end
    subgraph Workers
        J[Feature Pipeline]
        K[Training Pipeline]
    end

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

3. API design

  • POST /inference: Accepts user and post identifiers, returns the likelihood score.
  • GET /features/{user_id}/{post_id}: Retrieves features for a specific user and post.
  • POST /features/update: Updates feature store with new data.
  • POST /train: Triggers model training with the latest dataset.

4. Data model & storage

Datastores:

  • Feature Store: Use a NoSQL database like DynamoDB for low-latency access and scalability. Partition by user_id to ensure even distribution.
  • Model Store: Blob storage (e.g., S3) for storing model artifacts, enabling versioning and rollback.

Key Tables:

  • Features Table: user_id, post_id, feature_vector, timestamp.
  • Model Metadata Table: model_id, version, created_at, metrics.

5. Deep dive

The core of this system is the feature pipeline and inference service. The feature pipeline processes raw data into feature vectors, stored in the feature store. The inference service retrieves these features for real-time scoring.

sequenceDiagram
    participant U as User Device
    participant D as Inference Service
    participant F as Feature Cache
    participant G as Feature Store
    participant H as Model Store

    U->>D: Request likelihood score
    D->>F: Check feature cache
    alt Cache hit
        F-->>D: Return features
    else Cache miss
        D->>G: Retrieve features
        G-->>D: Return features
    end
    D->>H: Load model
    H-->>D: Return model
    D-->>U: Return likelihood score
Diagram

6. Scale, bottlenecks & trade-offs

Scaling Strategies:

  • Replication: Use read replicas for the feature store to handle high read QPS.
  • Sharding: Partition feature data by user_id to distribute load evenly.
  • Caching: Implement a feature cache to reduce latency and load on the feature store.

Bottlenecks:

  • Feature Store Latency: Mitigated by caching and efficient indexing.
  • Model Loading: Use a model cache to keep frequently used models in memory.

Trade-offs:

  • Consistency vs. Availability: Opt for eventual consistency in the feature store to ensure high availability.
  • Push vs. Pull for Features: Use a push model for real-time feature updates to minimize latency.
  • Sync vs. Async: Asynchronous feature updates and model training to decouple components and improve throughput.

This design balances the need for real-time inference with the complexity of maintaining fresh and accurate feature data, ensuring a scalable and robust ML infrastructure.

System designMediumReddit

16. Design a feed algorithm for displaying posts on the Reddit homepage.

Model answer

1. Requirements & scale

Functional Requirements:

  • Display a personalized feed of posts on the Reddit homepage.
  • Support sorting by different criteria: hot, new, top, and controversial.
  • Allow users to interact with posts (upvote, downvote, comment).

Non-Functional Requirements:

  • Low latency: The feed should load quickly.
  • Scalability: Handle millions of users and posts.
  • Freshness: Display recent and relevant posts.
  • High availability and reliability.

Estimates:

  • Assume 100 million daily active users, with each user making an average of 10 requests per day.
  • This results in approximately 1 billion requests per day or about 11,574 requests per second (QPS).
  • Assume each post is approximately 1 KB in size, and each user views 20 posts per request: 20 KB per request.
  • Bandwidth: 11,574 QPS * 20 KB = 231.48 MB/s.
  • Storage: Assume 1 billion posts with an average size of 1 KB, totaling 1 TB of storage.

2. High-level architecture

flowchart TD
    subgraph Client
        A[User Device]
    end

    subgraph Edge/CDN
        B[CDN]
    end

    subgraph Load Balancer
        C[Load Balancer]
    end

    subgraph API / Services
        D[Feed Service]
        E[User Service]
        F[Post Service]
    end

    subgraph Cache
        G[Redis Cache]
    end

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

    subgraph Message Queue
        J[Kafka]
    end

    subgraph Workers
        K[Ranking Worker]
    end

    A -->|Request Feed| B
    B --> C
    C -->|API Call| D
    D -->|Fetch User Data| E
    D -->|Fetch Posts| F
    F -->|Query| G
    G -->|Cache Miss| H
    H -->|Store| I
    D -->|Send to Queue| J
    J --> K
    K -->|Update Rankings| G
Diagram

3. API design

  • GET /feed: Retrieve the personalized feed for a user.
  • POST /vote: Submit an upvote or downvote for a post.
  • GET /post/{id}: Retrieve details of a specific post.
  • GET /comments/{postId}: Retrieve comments for a specific post.

4. Data model & storage

Datastores:

  • SQL DB (Postgres): Used for storing user data and relationships.
  • NoSQL DB (Cassandra): Used for storing posts and interactions due to its high write throughput and scalability.

Key Tables:

  • Users Table (SQL): user_id, username, email, preferences.
  • Posts Table (NoSQL): post_id, user_id, content, timestamp, score.
  • Votes Table (NoSQL): vote_id, user_id, post_id, vote_type.

Partition Key:

  • For the Posts Table, use post_id as the partition key to distribute posts evenly across the cluster.

5. Deep dive

The core of the feed algorithm is the ranking and sorting of posts based on user preferences and engagement metrics. The algorithm uses a combination of factors such as recency, upvotes, downvotes, and user interactions to rank posts.

sequenceDiagram
    participant User
    participant FeedService
    participant Cache
    participant DB
    participant RankingWorker

    User->>FeedService: Request Feed
    FeedService->>Cache: Check for Cached Feed
    Cache-->>FeedService: Cache Miss
    FeedService->>DB: Query for Posts
    DB-->>FeedService: Return Posts
    FeedService->>RankingWorker: Send Posts for Ranking
    RankingWorker-->>FeedService: Return Ranked Posts
    FeedService->>Cache: Cache Ranked Feed
    FeedService-->>User: Return Ranked Feed
Diagram

6. Scale, bottlenecks & trade-offs

Replication and Sharding:

  • Use database replication for high availability and disaster recovery.
  • Shard the NoSQL database by post_id to distribute load evenly.

Caching:

  • Use Redis to cache frequently accessed feeds to reduce database load and improve response times.

Bottlenecks:

  • The ranking process can be a bottleneck; use distributed workers to parallelize the task.
  • Cache invalidation strategies must be efficient to ensure feed freshness.

Trade-offs:

  • Consistency vs. Availability (CAP): Prioritize availability and partition tolerance, accepting eventual consistency for post rankings.
  • Push vs. Pull: Use a pull model for fetching feeds to allow users to refresh and get the latest posts.
  • SQL vs. NoSQL: Use SQL for structured user data and NoSQL for scalable post storage and retrieval.

By designing with these considerations, the system can efficiently deliver a personalized and scalable feed for Reddit's homepage.

TechnicalEasyReddit

17. What is the difference between a list and a set in Python?

Model answer

Difference between a List and a Set in Python

  1. Data Structure Type: - List: An ordered collection of items that can contain duplicate elements. Lists maintain the order of insertion, allowing access to elements by their index. - Set: An unordered collection of unique items. Sets do not maintain any order, and elements cannot be accessed by index.
  2. Mutability: - Both lists and sets are mutable, meaning their contents can be changed after creation. However, the types of operations you can perform differ due to their structural differences.
  3. Duplicates: - List: Allows duplicate elements. You can have multiple occurrences of the same value. - Set: Automatically removes duplicates. Each element must be unique.
  4. Performance: - List: Searching for an item in a list has a time complexity of O(n) because it may require scanning through the entire list. - Set: Searching for an item in a set has a time complexity of O(1) on average because sets are implemented using hash tables.
  5. Use Cases: - List: Useful when you need to maintain a sequence of items and order matters, or when you need to allow duplicates. - Set: Ideal for membership testing and removing duplicates from a collection. Useful when order does not matter and uniqueness is required.
  6. Operations: - List: Supports operations like slicing, concatenation, and repetition. - Set: Supports mathematical set operations like union, intersection, difference, and symmetric difference.

Example Code:

# Example of a List
my_list = [1, 2, 2, 3, 4]
print("List:", my_list)  # Output: List: [1, 2, 2, 3, 4]

# Example of a Set
my_set = {1, 2, 2, 3, 4}
print("Set:", my_set)  # Output: Set: {1, 2, 3, 4}
  • Complexity:
  • List: Access by index O(1), search O(n), insertion O(n) in the worst case.
  • Set: Average time complexity for add, remove, and check operations is O(1).
TechnicalMediumRedditEngineering Manager

18. What experience do you have with machine-learning feature stores and ranking integrations?

Model answer

I’d answer this by connecting feature-store and ranking work to an operating model, rather than treating the feature store as just a database. I’d tailor the examples to my actual projects and be precise about what I personally owned.

  1. Feature contracts and ownership: I’ve worked with teams to define features with clear names, types, owners, entity keys, freshness expectations, and deletion policies. For example, a user-level engagement feature needs an agreed identity key and a freshness target; otherwise training and serving can silently compute different values.
  2. Offline and online consistency: I look for a reliable path from event ingestion to point-in-time-correct training data and a low-latency online lookup. I’d explain how we prevent leakage, handle late events, version transformations, and validate that online values match the offline definition. The important trade-off is freshness and serving cost versus reproducibility and correctness.
  3. Ranking integration: I’ve partnered with ranking or product teams to integrate features into candidate scoring, while keeping retrieval, eligibility, and ranking responsibilities clear. I’d discuss feature batching, request-time budgets, missing-value behavior, model and feature versioning, and fallbacks when the store or ranker is slow. Features should improve a measured outcome—not just make the model more complex.
  4. Production ownership: I’d describe the dashboards and operating practices I established: feature freshness and availability, lookup latency at p50/p95/p99, missing-value rates, training-serving skew, model quality, and downstream business metrics such as conversion or relevance. I’d also cover rollout through shadow traffic, offline evaluation, A/B tests, and a rollback path.
  5. Engineering-manager impact: I’d explain how I aligned ML, data, platform, and product teams on service-level objectives and ownership boundaries. A strong example would include the original pain, the design choice and rejected alternative, the adoption plan, and a quantified result—for instance, reducing stale-feature incidents or ranking latency while improving a relevance or conversion metric.

I’d close by distinguishing direct experience from adjacent experience. If I haven’t used a particular feature-store product, I’d say so, then map my experience with streaming pipelines, online key-value serving, model deployment, or data quality to the same core problems. I would not claim a lift or latency improvement without a defensible baseline and measurement method.

TechnicalMediumRedditEngineering Manager

19. Can you describe a time you felt overwhelmed at work and couldn’t complete everything on time?

Model answer

Situation

During a quarter-end release, I owned delivery of a customer-facing capability while also supporting an operational issue and an unexpected dependency change from another team. I realized that the original plan assumed more uninterrupted engineering capacity than we actually had, and the team was at risk of missing several commitments at once.

Task

I needed to protect the most important outcome, be honest about what would not fit, and keep the team from responding to overload by quietly extending hours or lowering quality.

Action

  • I made the work visible in one place and separated must-have release work from follow-ups, operational work, and requests that could wait. I checked the actual remaining capacity with the team rather than relying on the original estimate.
  • I assessed urgency, customer impact, dependencies, and reversibility with product and my manager. We chose to preserve the core customer workflow and defer a lower-value reporting feature; I explained the impact and got agreement before changing the commitment.
  • I told stakeholders early that we would not deliver the full original scope by the date, why the forecast had changed, and what evidence would let us reforecast. I avoided presenting an optimistic date simply to reduce short-term discomfort.
  • I protected focus by assigning a single owner to the operational issue, limiting new work, and helping resolve a dependency directly with the partner team. I also checked workload with individuals and made it clear that sustained overtime was not the plan.
  • After the release, I reviewed why the plan failed: we had no explicit capacity buffer for support and had treated a cross-team dependency as committed before confirming its owner and date. I added those checks to planning.

Result

We delivered the core capability with the necessary quality checks, while the deferred feature shipped in the next iteration. Stakeholders had time to adjust their plans, and the team avoided a last-minute quality or burnout problem. I learned to treat overload as a prioritization and forecasting signal—not a request for people to simply work harder—and to surface scope trade-offs while there is still room to act.

What interviewers listen for

  • Early transparency and sensible renegotiation rather than surprise or hidden overtime.
  • Clear prioritization based on impact, risk, and dependencies.
  • Reflection that improves planning or operating practices. Adapt the scenario and results to your own experience.
TechnicalMediumRedditTechnical Program Manager

20. Where do you think the biggest pain points in a high-level technology stack would come from?

Model answer

I would look for pain at interfaces and feedback loops, not assume one technology layer is inherently the problem. A stack can have healthy individual services and still deliver a poor end-to-end experience because ownership, contracts, or operational signals break between them.

flowchart TD
  U[Users and product] -->|requirements| A[Applications]
  A -->|API calls| S[Services]
  S -->|queries and events| D[Data and messaging]
  D -->|compute and storage| I[Infrastructure]
  I -->|telemetry| O[Operations]
  O -->|incidents and feedback| U
Diagram
  1. Integration and ownership: API incompatibilities, unclear service boundaries, undocumented dependencies, and teams optimizing local goals can cause system-wide failures. I’d examine dependency maps, contract-test failures, change-related incidents, and time to resolve cross-team blockers.
  2. Data and state: Inconsistent schemas, stale data, poorly understood sources of truth, and broken event pipelines create subtle downstream defects. Useful signals include data freshness, reconciliation errors, pipeline lag, and the percentage of critical datasets with named owners and quality checks.
  3. Reliability and operations: Capacity limits, cascading failures, weak observability, and manual recovery often turn a component issue into a customer incident. I’d inspect SLO attainment, error-budget burn, p95/p99 latency, availability, incident frequency, and mean time to detect and recover.
  4. Security and compliance: Identity gaps, excessive permissions, unmanaged secrets, and unclear data retention can become launch blockers or serious risks. Track high-severity vulnerabilities, time to remediate, access-review completion, and privacy-control coverage.
  5. Delivery and change management: Long build and test cycles, brittle environments, unclear release ownership, and risky migrations slow change or increase regressions. Measure lead time, deployment frequency, change-failure rate, rollback time, and environment-related failures.

I’d prioritize by customer impact × likelihood × blast radius, then validate with incident data, architecture reviews, and conversations with the teams operating the stack. I’d avoid a broad rewrite before confirming the constraint; targeted fixes to contracts, observability, ownership, or a critical bottleneck often deliver more value. As a TPM, I’d assign owners across affected teams, agree on a small set of outcome metrics, and stage changes with rollback plans. The central trade-off is local autonomy versus end-to-end consistency: standardize interfaces and reliability expectations while letting teams choose implementation details where that does not create shared risk.

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