Interview practice plan
Software Engineer II
Mastercard · Pune
Practice content written by LYDJ for interview preparation. These are common questions for this kind of role, not this employer's actual interview questions.
What this role asks for
Skills we found in the job description. The plan below is built around them.
Sign in to see your gap areas first. We compare this role with the skills on your profile.
0 of 22 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Agile
This role asks for Agile.
How do you run sprint planning so the team commits to something realistic?
What good looks likeHide hint
A refined backlog, capacity based on real availability, historical velocity as a guide, a clear sprint goal, and room for unplanned work.
The team carries over stories every sprint. What do you do?
What good looks likeHide hint
Look at story size, work in progress, interruptions and dependencies, agree retro actions with owners, and track flow metrics such as cycle time.
Scrum or Kanban: when would you use each?
What good looks likeHide hint
Scrum for planned increments with a stable team; Kanban for continuous, interrupt-driven work such as support. Mention WIP limits.
Java
This role asks for Java and Spring Boot. These Java questions cover the ground they share.
How does HashMap work internally, and why do equals and hashCode matter?
What good looks likeHide hint
Hashing into buckets, the equals/hashCode contract, resizing and load factor, and buckets turning into balanced trees after a threshold to cap worst-case lookups.
How do you design an immutable class in Java, and why is immutability useful?
What good looks likeHide hint
Final class and fields, no setters, defensive copies of mutable inputs, or records. Benefits: thread safety, safe sharing and predictable caching.
Explain @Transactional: propagation, self-invocation and which exceptions trigger a rollback.
What good looks likeHide hint
It is proxy-based, so calls within the same class bypass it; by default only unchecked exceptions roll back; know REQUIRED versus REQUIRES_NEW.
CI/CD & IaC
This role asks for CI/CD.
Design a CI/CD pipeline for a service with many contributors. Which gates would you put before production?
What good looks likeHide hint
Fast unit tests on every PR, integration and security scans, build once and promote the same artifact, staged environments, and automated rollback.
The build takes 40 minutes. How do you bring it down?
What good looks likeHide hint
Measure where time goes, cache dependencies, parallelise and shard tests, only build what changed, and fix or quarantine the slowest tests.
How should secrets be handled in a CI/CD pipeline?
What good looks likeHide hint
A secrets manager or the platform's secret store, short-lived federated credentials, masking in logs, and never committing secrets to the repo.
SQL
This role asks for SQL.
Explain INNER, LEFT and FULL OUTER joins. When does a LEFT JOIN accidentally behave like an INNER JOIN?
What good looks likeHide hint
Filtering the right-hand table in WHERE removes the NULL rows; put that condition in the ON clause instead.
What is an index, how does a B-tree index speed up a query, and when does adding an index hurt?
What good looks likeHide hint
Sorted structure enabling seeks instead of scans; costs on writes and storage; low-selectivity columns and functions on columns can stop it being used.
Compute a 7-day rolling average of daily revenue, including days with no sales.
What good looks likeHide hint
Build a calendar of dates, LEFT JOIN the sales, fill missing days with zero, then AVG over ROWS BETWEEN 6 PRECEDING AND CURRENT ROW.
Cybersecurity
This role asks for Cybersecurity.
Which OWASP Top 10 risks do you consider most critical for a web app, and how do you prevent them?
What good looks likeHide hint
Pick a few (broken access control, injection, misconfiguration) and give concrete preventions such as server-side authorisation checks and parameterised queries.
A scanner reports thousands of vulnerabilities. How do you prioritise them?
What good looks likeHide hint
Exploitability and exposure, asset criticality, known-exploited lists, compensating controls, and remediation SLAs by risk rather than raw severity.
Explain symmetric versus asymmetric encryption and how TLS uses both.
What good looks likeHide hint
Asymmetric keys authenticate and agree a session key during the handshake; fast symmetric encryption protects the data afterwards.
System design
This role asks for Microservices, so expect an architecture round. State requirements and numbers first, then trade-offs.
Design a URL shortener that handles 100 million redirects a day.
What good looks likeHide hint
Clarify the read/write ratio, design ID generation, storage and caching, then cover hot keys, analytics and expiry. Back-of-envelope numbers earn credit.
Your service's p99 latency doubled after a release. Walk me through how you investigate.
What good looks likeHide hint
Check what changed, compare dashboards and traces, isolate by endpoint and dependency, roll back first if users are hurting, then find the root cause with profiling.
Design the REST API for a multi-tenant SaaS product.
What good looks likeHide hint
Resource modelling, versioning, pagination, authentication and tenant isolation, idempotent writes, and a consistent error contract.
Behavioural
Every interview loop has a behavioural round. At mid level, expect questions on delivering independently, handling ambiguity and working through disagreement. Use the STAR structure.
Tell me about a mistake you made at work and what happened next.
What good looks likeHide hint
Own it without blaming others, explain how you contained the impact, and what you changed so it would not happen again.
Tell me about a time you worked with unclear or changing requirements.
What good looks likeHide hint
Show how you reduced ambiguity: clarifying questions, writing down assumptions, small experiments and getting explicit sign-off.
Tell me about a time you worked closely with a team in another time zone or culture.
What good looks likeHide hint
Mention concrete practices (async updates, overlap hours, written decisions) and a moment where a misunderstanding was caught and fixed.
What is a goal you set for yourself in the last year, and how did you track it?
What good looks likeHide hint
Pick a measurable goal, describe the system you used to track it, and be honest about where you fell short.
Company research brief: Mastercard
From the roles we track on LYDJ, refreshed daily from the official careers page.
126
open roles
24
added in 30 days
66
in Engineering
Hiring most for
- Engineering66
- Data & AI17
- Other17
- Finance & Legal9
Read before the interview
Questions to ask them
- ›There are several open Engineering roles at Mastercard right now. How is the team growing, and where does this role fit?
- ›The company hires in Pune, Gurugram, Mumbai. How do teams across locations work together day to day?
- ›How does the team use Agile and Java today, and what would you like to change?
- ›What does success look like in this role after six months?
- ›What is the biggest challenge the team is facing this year?
Preparation checklist
0/8 doneSaved in this browser only.