Interview practice plan
Software Engineer II (Software Engineer in Test )
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.
Also named in the description, not covered below: Linux. Review these on your own.
Sign in to see your gap areas first. We compare this role with the skills on your profile.
0 of 28 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Test automation
This role asks for Test automation and Selenium. These Test automation questions cover the ground they share.
Explain the test pyramid and how you would apply it to a web app with a REST backend.
What good looks likeHide hint
Many fast unit tests, a layer of API and contract tests, and a thin set of end-to-end UI journeys. Explain what each layer catches.
Your UI test suite is flaky. How do you stabilise it?
What good looks likeHide hint
Wait on conditions instead of sleeps, use stable test ids as selectors, isolate test data, quarantine flaky tests, and track flakiness as a metric.
How do you test a REST API? Which cases beyond the happy path do you cover?
What good looks likeHide hint
Validation errors, auth and permissions, boundary values, idempotency, correct status codes, contract tests and basic performance checks.
Java
This role asks for Java.
What is the difference between checked and unchecked exceptions, and how do you decide which to throw?
What good looks likeHide hint
Checked for recoverable conditions the caller must handle, unchecked for programming errors. Mention wrapping, not swallowing exceptions, and keeping the cause.
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.
When are Java streams the wrong choice compared with a plain loop?
What good looks likeHide hint
Readability and debugging trade-offs, checked exceptions inside lambdas, and parallel streams with shared state or the common fork-join pool.
CI/CD & IaC
This role asks for Git, CI/CD and Jenkins. These CI/CD & IaC questions cover the ground they share.
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.
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.
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.
Write a query that returns the second-highest salary in each department.
What good looks likeHide hint
Use DENSE_RANK() over a partition by department, and say how you treat ties, NULLs and departments with a single employee.
A query that used to take 2 seconds now takes 2 minutes. How do you debug it?
What good looks likeHide hint
Read the execution plan, check stale statistics, missing or unused indexes, data growth and skew, parameter-sensitive plans, and locking.
Cybersecurity
This role asks for Cybersecurity.
Walk me through your response to a suspected compromised user account.
What good looks likeHide hint
Contain (revoke sessions and keys), scope using logs, eradicate, recover, communicate to the right people, and run a blameless review.
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.
Core programming
This role asks for Shell scripting. We do not have questions specific to it yet, so practise these fundamentals and answer them in that language.
Given an array of integers and a target, return the indices of two numbers that add up to the target. Then improve the complexity.
What good looks likeHide hint
Start with the O(n^2) brute force, move to a single pass with a hash map for O(n), and talk through duplicates and the no-answer case before coding.
How would you find and fix a memory leak in a long-running service?
What good looks likeHide hint
Confirm with memory metrics over time, take and compare heap snapshots, look for unbounded caches, listeners and global collections, then add a regression check.
Compare the time complexity of lookups and inserts in arrays, hash maps and balanced trees. When does the difference matter in practice?
What good looks likeHide hint
Know the Big-O, but also mention ordering needs, worst cases, memory overhead and cache locality, with a real example where it changed a design.
System design
This role asks for REST APIs and 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.
Design an upload and processing pipeline for large documents such as resumes.
What good looks likeHide hint
Direct-to-storage uploads with signed URLs, async processing through a queue, retries and a dead-letter queue, malware scanning, and status updates for the user.
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.
Describe a time you had several urgent priorities at once. How did you decide what to do first?
What good looks likeHide hint
Explain your criteria (impact, deadlines, dependencies), how you communicated the trade-offs, and what you deliberately dropped or delayed.
Describe the most complex technical or analytical problem you have solved.
What good looks likeHide hint
Explain why it was hard, the options you considered, how you de-risked the chosen approach, and what you would do differently now.
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.
Tell me about a time you used data to change someone's mind.
What good looks likeHide hint
Explain what the data showed, how you made it understandable for that audience, and which decision changed as a result.
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 Test automation 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/9 doneSaved in this browser only.