Interview practice plan
Principal Applied AI App Engineer
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: Observability, GCP, Cybersecurity. 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 30 questions practised
Answer each one out loud, then tick it. Progress is saved in this browser only.
Machine Learning
This role asks for Machine Learning and Deep Learning. These Machine Learning questions cover the ground they share.
How do you detect and prevent data leakage?
What good looks likeHide hint
Time-based splits, features computed after the label, target encoding outside cross-validation folds, and the same entity appearing in train and test.
Design a recommendation system for a job site.
What good looks likeHide hint
Candidate generation then ranking, content and behavioural signals, cold start for new users and jobs, implicit feedback, and offline metrics validated by A/B tests.
How would you explain a model's predictions to a non-technical stakeholder or a regulator?
What good looks likeHide hint
Global versus local explanations (feature importance, SHAP values), plain-language examples, documented limitations and how decisions can be reviewed.
LLMs & GenAI
This role asks for Generative AI, LLMs and RAG. These LLMs & GenAI questions cover the ground they share.
How do you reduce hallucinations in a question-answering system over company documents?
What good looks likeHide hint
Improve retrieval (chunking, hybrid search, reranking), instruct the model to answer only from sources with citations, allow it to abstain, and measure with evals.
What are the main cost and latency levers for an LLM application in production?
What good looks likeHide hint
Model choice and routing, prompt caching, trimming context, batching, streaming responses, and caching repeated answers.
What security risks are specific to LLM applications, and how do you mitigate prompt injection?
What good looks likeHide hint
Treat retrieved content as untrusted data, give tools least privilege, validate outputs, require human confirmation for side effects, and log for review.
Python
This role asks for Python.
Explain the GIL and how it affects threading, multiprocessing and asyncio.
What good looks likeHide hint
Threads help I/O-bound work but not CPU-bound Python code; multiprocessing sidesteps the GIL at a memory and IPC cost; asyncio suits many concurrent I/O tasks.
How does Python manage memory, and why might a long-running process keep growing?
What good looks likeHide hint
Reference counting plus a cyclic garbage collector, fragmentation, unbounded caches or globals, and using tracemalloc to find the growth.
How do you structure a Python codebase so a team can work on it safely?
What good looks likeHide hint
Locked dependencies, pyproject-based packaging, type hints checked in CI, pytest with fixtures, linting and formatting, and clear module boundaries.
Java
This role asks for Java.
How does garbage collection work in the JVM, and how would you tune it for a low-latency service?
What good looks likeHide hint
Generational heap, G1 versus ZGC trade-offs, reading GC logs, and reducing allocation rate before reaching for JVM flags.
Explain the Java Memory Model. What do volatile and synchronized actually guarantee?
What good looks likeHide hint
Visibility versus atomicity, happens-before, and why a volatile counter++ is still not thread-safe (use atomics or locks).
When would you use CompletableFuture, a bounded ExecutorService, or virtual threads?
What good looks likeHide hint
Virtual threads for blocking I/O-heavy code, CompletableFuture for composing async steps, bounded pools for CPU-bound work, and the pinning caveats of virtual threads.
AWS
This role asks for AWS.
How would you design a highly available web application on AWS across multiple availability zones?
What good looks likeHide hint
Load balancer across AZs, auto-scaling stateless compute, a multi-AZ database, externalised sessions, health checks and a tested failover plan.
When would you choose Lambda, ECS on Fargate or EC2 for a workload?
What good looks likeHide hint
Execution time limits, cold starts, steady versus spiky traffic cost, packaging and operational overhead. Tie the choice to the workload's shape.
The AWS bill has grown 40% in six months. How do you bring it under control?
What good looks likeHide hint
Tagging and cost allocation first, then rightsizing, savings plans, storage lifecycle rules, data transfer review, and budgets with alerts.
Azure
This role asks for Azure.
How would you organise Azure management groups, subscriptions and resource groups for several teams?
What good looks likeHide hint
Management groups for policy inheritance, subscriptions as billing and isolation boundaries, resource groups per workload lifecycle, and consistent tagging.
When would you pick App Service, Azure Functions or AKS?
What good looks likeHide hint
Compare operational effort, scaling model, execution limits, cost profile and team skills, and give a workload that fits each.
How would you build a secure pipeline that deploys infrastructure and apps to Azure?
What good looks likeHide hint
Federated workload identity instead of stored secrets, Key Vault, environment approvals, infrastructure as code with Bicep or Terraform, and policy checks.
Core programming
This role asks for C#. We do not have questions specific to it yet, so practise these fundamentals and answer them in that language.
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.
What makes code testable? Show how you would refactor a function to make it easier to test.
What good looks likeHide hint
Separate pure logic from I/O, inject dependencies instead of constructing them inside, and keep functions small with clear inputs and outputs.
System design
This role asks for System design, so expect an architecture round. State requirements and numbers first, then trade-offs.
Design a payment service that must never charge a customer twice.
What good looks likeHide hint
Idempotency keys, a payment state machine, reconciliation with the provider, and at-least-once delivery with de-duplication rather than hoping for exactly-once.
How would you break a monolith into microservices? Where would you start?
What good looks likeHide hint
Start from domain boundaries and the parts that change most, use a strangler approach, plan for shared data and distributed transactions, and invest in observability first.
Design a real-time chat system with one-to-one and group messages.
What good looks likeHide hint
Connection handling (WebSockets), ordering and delivery receipts, offline storage and sync, fan-out for groups, and presence.
Behavioural
Every interview loop has a behavioural round. For lead and manager roles, the focus is on people decisions, prioritisation and leading through change. Use the STAR structure.
Describe a piece of feedback that changed how you work.
What good looks likeHide hint
State the feedback, your honest first reaction and the concrete behaviour you changed. Close with evidence that the change stuck.
Tell me about a time a project you owned was at risk of missing its date.
What good looks likeHide hint
Show early detection, honest escalation and the scope, sequencing or resourcing levers you pulled. Avoid stories that end with "we all worked weekends".
Why do you want this role, and why now?
What good looks likeHide hint
Connect two or three specific requirements of the role to your experience and to a direction you are deliberately moving in. Generic praise of the company scores poorly.
Describe a time you had to deliver bad news to a stakeholder.
What good looks likeHide hint
Show that you told them early, came with options and a recommendation rather than just the problem, and kept their trust.
Leadership
The title marks this as a lead or manager role. Expect questions on hiring, developing people and setting priorities.
Tell me about a time you resolved a conflict between two people on your team.
What good looks likeHide hint
Show you addressed it early and privately, focused on behaviours and shared goals rather than personalities, and followed up afterwards.
How do you balance delivery pressure against technical debt or quality?
What good looks likeHide hint
Give a concrete mechanism (a capacity budget, a debt register, quality gates) and an example where you made the trade-off explicit to stakeholders.
How do you give difficult feedback to a very experienced peer or senior colleague?
What good looks likeHide hint
Keep it private, specific and about behaviour and impact. Show that you also invited their side and agreed on a next step.
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
17
in Data & AI
Hiring most for
- Engineering66
- Data & AI17
- Other17
- Finance & Legal9
Read before the interview
Questions to ask them
- ›There are several open Data & AI 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 Machine Learning and Generative AI 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.