Home/Company Guides/Mastercard

Mastercard Interview Questions & Process for Software Engineers

Mastercard is a Java and Spring payments company, and its software loop is standard easy-to-medium DSA plus a dedicated SQL round plus deep Java 8 Streams and Spring-internals follow-ups, with a payment-system design round at senior levels. The best-documented process is India, Pune-heavy: an elimination technical screen, then a same-day loop of three knockout rounds run by a technical SME, a Bar Raiser, and the hiring manager.

13 lessonsbuilt from 116 candidate reports

Mastercard
Alex Chen
Updated

01How does the Mastercard interview process work?

Mastercard is a payments network that runs a Java and Spring engineering stack, and that identity runs straight through the interview. The spine, best documented in India and Pune-heavy, is consistent: a recruiter and HR screen that confirms your current and expected compensation, an elimination technical screen, a same-day loop of three knockout rounds, and an HR compensation close. Campus and new-grad candidates clear a timed online assessment first; most lateral hires skip it and open at the technical screen. Mastercard lists its open engineering roles on its own careers site.

The center of gravity is not where a big-tech plan expects. The live-round DSA stays easy to medium, so a hard-algorithm gauntlet is the wrong thing to drill. What actually gates the loop is the layer around the code: deep Java 8 Streams and lambdas, Spring internals, a dedicated SQL round of JOINs and queries, and design-patterns fluency. Almost every first-hand account is from India, so read the US and global picture as lightly evidenced.

1
Application
2
Recruiter screen
CTC + fit
3
Online assessment
Campus
4
Technical screen
Elimination
5
The loop
Same day
6
HR + offer
RSU later
Read the full process breakdown

02What is Mastercard's interview loop?

Past the technical screen the loop becomes a same-day sequence of three rounds, each described as a knockout: a technical SME round, a Bar Raiser, and the hiring manager. They frequently run back to back on one day, and senior loops stretch longer, sometimes to four sequential technical rounds up to director level.

The round to plan around is the technical SME, because that is where the Mastercard-specific bar lives: a DSA problem, then a deep pass through Java 8 Streams and Spring internals, then a SQL round of JOINs and query writing. The Bar Raiser leans on code-pairing or debugging plus behavioural, and the hiring manager presses on design patterns, SOLID, and the architecture of your own projects. Behavioural competencies are scored in every room, which is why a real, honest “why Mastercard” and a resume you can defend line by line matter alongside the code.

The Technical ScreenElimination
The first live gate, roughly forty-five minutes and explicitly an elimination round: one or two easy-to-medium DSA problems plus Java and OOP fundamentals and a resume discussion. Lateral hires open here; campus and new-grad candidates clear an online assessment first.
The Technical SMEJava + SQL
The deepest technical round, run by a subject-matter expert or tech lead: a DSA problem, then heavy Java 8 Streams and Spring internals, and a SQL round of JOINs and query writing. This is where the Java-language-mastery bar really lives.
Bar Raiser + Hiring ManagerSame day
Mastercard genuinely runs a Bar Raiser: code-pairing or debugging, behavioural, and a resume deep-dive. The hiring-manager round covers design patterns and SOLID, your own project architecture, and "why Mastercard." The three loop rounds frequently run back to back on the same day.
Read the full loop breakdown

03Does Mastercard ask hard LeetCode, or Java-language questions?

It is Java-language questions, and that reframes the whole prep budget. The algorithm in front of you is usually easy to medium: reverse a linked list, a Premium question, a min stack, merge two arrays in one loop, merge intervals. If Mastercard graded only that, it would be one of the gentler loops around. It does not. A second conversation sits on top of every problem, and that conversation is the real interview.

The differentiator is Java-language mastery. Java 8 Streams recur constantly: group a list into a Map<K, List<V>>, filter and map, count by key, bucket employees by age range, all in a single stream pipeline. Expect functional interfaces you write yourself, a Predicate or Function, and output-prediction trivia like 21 + "abc" + 49 and == versus equals() on interned strings. Then the technical SME adds a SQL round, all four JOIN types written out, amount per customer, customers with no orders, pagination. A candidate who spent every hour on hard dynamic programming and none on Streams, Spring, and SQL has prepared for the wrong interview. The one place hard algorithms do show up is the campus online assessment, which skews to interval DP, graph DP, and matrix BFS.

The technical SME roundJava · SQL
Solve the medium
Write the Streams
Answer the SQL
Spring
Table stakesThe gateDataDepth
Read the full coding breakdown

04What is Mastercard's system design interview?

The weight scales hard with level. SDE-1 candidates get low-level design or none; SDE-2 and L7-and-above get real high-level design plus object-oriented modeling. The most common flavor at every level is LLD: design a bank or account class with create, deposit, withdraw, and transfer, then top-K accounts by activity; design an elevator; explain a design pattern you have used. SOLID and the Singleton, Factory, Builder, and Observer patterns are expected fluency.

Higher up, the generic HLD is the usual battery: a job scheduler for millions of tasks a day, rate limiting, monolith versus microservices, sharding, and consistent hashing. The signature Mastercard variant is payments-flavored and on-brand: design a distributed payment system, or the literal phone-screen prompt to “design the Mastercard network,” with attention to transaction handling and state, currency and precision, idempotency, and the auth flows a payments company lives on, MFA, OAuth2, OIDC, SAML, and tokenization.

So prepare both ends: one object-oriented design end to end, and one payment-system design you can defend, from requirements to components to the key data paths, extending each when the interviewer adds a requirement mid-round.

Read the worked payment-system design

05How does Mastercard level and pay engineers?

Start with the ladder, because it trips people up. Mastercard uses an inverted numeric ladder where a lower number is more senior: L9 is the SDE-1 fresher band, L8 is SDE-2, and L7 is the senior engineer, with Director and Principal above. Because Mastercard is a public company on the NYSE as MA, a full offer is base plus a target bonus plus RSUs, set into structured bands. The signature India fact is that Mastercard usually grants no stock at join, so comp there is fixed pay plus a small variable plus a relocation or joining bonus, with RSUs framed as something that may come later on performance. The exact figures live in the offer lesson rather than here.

Level
L9 · Software Engineer I / SDE-1 · 0-2 years · freshers and new grads, where the online assessment and lighter DSA carry most of the weight
L8 · Software Engineer II / SDE-2 · ~1.5-4 years · owns features and modules, and the rounds start expecting real Java and Spring depth
L7 · Senior Software Engineer / SDE-3 · ~4.5-6 years · leads harder work, where SQL, design patterns, and the deepest internals concentrate
Director, Principal, Distinguished Engineer · senior and above · broad ownership; the rungs above L7 are thin in public accounts

These India titles and the L9-to-L7 numbering dominate the corpus; SDE-1, SDE-2, and SDE-3 appear informally alongside the numbered bands. US Mastercard uses a similar family, but no first-hand US loop appears here, so read the US mapping as general knowledge and source US bands from levels.fyi, which drifts over time. The compensation for each level lives in the offer lesson.

The shape is the durable part. Reported India first-year totals run from roughly 12 to 20 lakh at SDE-1, to about 21 to 28 lakh at SDE-2, up to the high 20s and into the 40s at senior engineer, with most of that being fixed pay rather than stock. Read any headline figure as an approximate number on a thin, self-reported sample that drifts as new offers land.

The movable surface is where the leverage is. Level sets the band, so the level you enter at is the largest lever on your total. HR negotiates a little on fixed, then tends to park a joining bonus to inflate the headline, with hard ceilings enforced by the hiring manager. Because there is no RSU at join in India, a competing offer that does carry stock is the strongest anchor you have.

Read the full offer & negotiation guide

06What does Mastercard actually ask?

The coding gate is easy-to-medium DSA you deliver cleanly, and the real depth sits one layer down in Java 8 Streams, Spring internals, and a SQL round, with a payment-system or object-oriented design at senior levels. Write the medium fast, prove your command of the Java language and the framework, answer the SQL, and bring a project you can defend line by line.

The questions that recur most
  • Group a list into a Map with Java 8 Streamscoding · streams
  • Predict the output of 21 + "abc" + 49java · trivia
  • == versus equals() on interned stringsjava · trivia
  • Write your own Predicate or Functionjava · functional
  • a Premium question
  • Implement a min stack, reverse a stackcoding · stacks
  • Merge two arrays in a single loopcoding · arrays
  • Write all four JOIN typessql · joins
  • Customers with no orders, amount per customersql · queries
  • Spring bean lifecycle, scopes, and DIspring · internals
  • How @Transactional works under the hoodspring · internals
  • Design a bank account class, then top-K by activitydesign · lld
  • Design a distributed payment systemdesign · hld
  • "Why Mastercard?" and a resume deep-divebehavioral
Recurring coding themes
What the technical screen and the loop keep coming back to
01
Java 8 Streams
The signature Mastercard signal: group a list into a Map, filter and map, count by key, bucket employees by age range, a Premium question via a single stream pipeline
02
Functional interfaces & lambdas
Write your own Predicate or Function, area of a rectangle via a custom functional interface, Function versus Predicate, method references
03
Output-prediction & trivia
Predict 21 + "abc" + 49, == versus equals on interned strings, ways to create an object, abstract-class instantiation, static and final
04
Strings & stacks
A Premium question, palindrome, a Premium question, valid parentheses, decode string, min stack, reverse a stack
05
Linked lists & arrays
Get the middle node, reverse a list, merge two arrays in one loop, swap adjacent elements, merge intervals, buy and sell stock
06
SQL
All four JOIN types written out, amount per customer, customers with no orders, LIMIT and OFFSET pagination, index and ACID discussion
07
Concurrency
Call two APIs async and a third sync then await both with raw Java threads, Runnable versus Callable, thread lifecycle
08
Campus OA (hard)
The hard part of prep: interval DP, graph DP and combinatorics, matrix BFS, and Trie plus bitmask problems on the timed assessment
The behavioral questions Mastercard repeats
Grouped by the theme the Bar Raiser and hiring-manager rounds keep reading for
  • Why Mastercard, or why payments or fintech, and why now?Why Mastercard
  • Walk me through your resume and the architecture behind itResume deep-dive
  • The most challenging thing you owned end to endOwnership
  • A serious production issue you drove to the root causeOwnership
  • Would you say no to your manager when overloaded?Pushback under load
  • A technical disagreement on a design, and how you resolved itCollaboration
  • Aligning a team whose priorities differed from yoursCross-team
  • Improving a system you could not simply rewrite, safelyLegacy systems
  • Working under compliance, audit, or strict quality gatesRegulated
  • When the requirements were unclear or kept changingAmbiguity

The full bank of Mastercard behavioral interview questions groups every prompt under the theme it reads for, or start with the STAR method.

The system design prompts Mastercard returns to
Low-level patterns in nearly every loop, higher-level design as the level rises
  • Design a bank account class, then top-K by activityLLD · SOLID
  • Design a car or an elevator with patternsLLD · OOD
  • Design a distributed payment systemPayments HLD
  • Design the card network on a phone screenPayments HLD
  • Handle a transaction and its state cleanlyExactly-once
  • Design a job scheduler for millions of tasksGeneric HLD
  • Design a rate limiter, with the trade-offsThrottling
  • Sharding, consistent hashing, monolith vs microservicesFundamentals
  • Auth around a charge: OAuth2, OIDC, SAML, tokenizationIdentity

Each of these Mastercard system design interview questions is a different shape, from LLD to a payment rail, worked end to end in the guide.

Behavioural competencies are scored in every round, not saved for a single culture loop. Expect “why Mastercard” or “why a fintech,” a line-by-line resume deep-dive, the architecture and tech-stack rationale of your own projects, a major production issue you owned, and whether you would say no to your manager when overloaded. The culture keyword to know is the Decency Quotient, Mastercard's own idea of empathy, ethics, and supporting teammates, reported as woven into the final and Bar Raiser rounds; treat it as a cultural theme rather than a formal per-question rubric, and bring three or four honest stories about what you built and the problem you owned, and...

Continue reading

The full breakdown. Every stage and every pattern, with the strategy that goes with each.

Go to the Full Guide
Common questions

What are the stages of the Mastercard interview process?

The Mastercard interview runs through 6 stages: Application, Recruiter screen, Online assessment, Technical screen, The loop, and HR + offer.

How many rounds are in the Mastercard software engineer interview?

Commonly a recruiter and HR screen, an elimination technical screen, then a same-day loop of three knockout rounds run by a technical SME, a Bar Raiser, and the hiring manager, closed by an HR compensation discussion. Campus and new-grad candidates clear a timed online assessment first; most laterals skip it. The count varies by level, and senior loops can run four sequential technical rounds up to director level.

Is the Mastercard coding interview LeetCode?

The live-round DSA is easy to medium, not a hard-algorithm gauntlet: linked lists, strings, a min stack, merging arrays and intervals. The differentiator is Java-language mastery layered on top, Java 8 Streams, functional interfaces and lambdas, and output-prediction trivia, plus a dedicated SQL round. The one place hard algorithms appear is the campus online assessment, which skews to interval DP, graph DP, and matrix BFS.

Does Mastercard ask Java and Spring internals?

Yes, heavily for backend roles. Expect Spring bean lifecycle and scopes, dependency injection, how @Transactional works under the hood, AOP and the Spring Security filter chain, Hibernate and JPA mapping, and REST request flow. Java 8 Streams and lambdas recur constantly, and SOLID plus design patterns come up in nearly every round.

Does Mastercard have a SQL round?

Yes, most often inside the technical SME round. You write queries live: all four JOIN types, amount per customer, customers with no orders, and LIMIT and OFFSET pagination, with follow-ups on improving a slow query, clustered versus non-clustered indexes, ACID, and isolation levels. It is on-brand for a data-heavy payments company.

Does Mastercard have a system design interview?

Yes, scaling with level. Low-level object-oriented design appears at all levels: a bank or account class, an elevator, design patterns, and SOLID. SDE-2 and above add high-level design, both generic (a job scheduler, rate limiting, sharding, consistent hashing) and payments-flavored (design a distributed payment system or the Mastercard network, transaction state, currency and precision, and auth flows like OAuth2 and SAML).

How does Mastercard level and pay engineers?

Mastercard uses an inverted numeric ladder where a lower number is more senior: L9 is SDE-1, L8 is SDE-2, and L7 is senior engineer, with Director and Principal above. As a public company on the NYSE (MA), a full offer is base plus a target bonus plus RSUs in structured bands. In India, RSUs are frequently not granted at join, so comp is fixed pay plus a small variable plus a joining or relocation bonus. Reported India first-year totals run from roughly 12 to 20 lakh at SDE-1 up to the high 20s and into the 40s at senior engineer.

What is the Mastercard Decency Quotient (DQ)?

The Decency Quotient is Mastercard's own cultural concept, empathy, ethics, and supporting teammates, and it is reported as woven into the final and Bar Raiser rounds. Behavioural competencies are assessed in every interview, so expect "why Mastercard," a resume deep-dive, ownership stories, and conflict-resolution questions. Treat DQ as a cultural theme rather than a formal per-question rubric.

The Mastercard interview, end to end

Application screening through offer negotiation. 13 lessons across 5 chapters, written for Mastercard specifically. Not recycled FAANG advice.

Start the guide
Also in this series

More company
guides.

Every guide is built the same way, grounded in how the interview actually runs rather than recycled advice. Each one is a year of interviews compressed into a weekend.

View all company guides