Company Interview Questions · SaaS & Enterprise Software
ServiceNow & SAP Labs: ML / AI Engineer
ServiceNow & SAP Labs: ML / AI Engineer Interview Experiences (2025–26). Rounds, real reported questions and model answers, compiled from public candidate reports (sources at the end). Practice mode hides every answer: say your answer first, press Show answer, then rate yourself. Use 🔁 Review again to build your revision list and 🎲 Random question for a quick drill.
About this interview
Compiled from public candidate reports: ServiceNow Senior ML Engineer (Hyderabad, July 2025: went straight to Python coding with a stock-selection profit problem) and SAP Software Engineer reports (Mangalore, 2025, with an AI/ML resume; 2026, where AI and RAG projects mattered). The questions are paraphrased, and the model answers are written by EasyLearnSpace.
| ServiceNow | SAP Labs | |
|---|---|---|
| Role | Senior Machine Learning Engineer | Software Engineer (AI/ML profile); AI developer roles |
| Rounds | Python coding first (one candidate got no ML/NLP/GenAI questions) | Online assessment (2 basic array/string problems) → technical 1 (screen-share your project + ML basics) → technical 2 → managerial (SAP products: S/4HANA, ERP) |
| Outcome | Not selected (rated negative) | Mixed; "candidates with built AI projects have a better chance" |
| Domain | Now Assist (GenAI for ITSM), agentic workflows | Joule copilot, Business AI on ERP data |
01Rounds at a glance
- Enterprise SaaS AI: copilots inside workflows (tickets, HR cases, ERP processes), with strict permissions.
- Coding can dominate even senior ML loops, so keep Python DSA sharp.
02Questions and model answers
Q1
ServiceNow coding: choose stocks to maximise profit within a budget (each stock has a cost and an expected profit).
def max_profit(costs, profits, budget): # 0/1 knapsack
dp = [0] * (budget + 1)
for c, p in zip(costs, profits):
for b in range(budget, c - 1, -1):
dp[b] = max(dp[b], dp[b - c] + p)
return dp[budget]
print(max_profit([5, 4, 6, 3], [10, 40, 30, 50], 10)) # 90
- This is 0/1 knapsack: O(n·B) time, O(B) space. If the problem is instead "buy and sell one stock over time", it is a single pass tracking the minimum price.
- Clarify assumptions first (integer costs? one share each?). The candidate's frustration came from mismatched assumptions.
Q2
How would you build a GenAI assistant that resolves IT tickets automatically?
- Inputs: the ticket text, the user's role, CMDB (asset) data, past resolved tickets, the knowledge base.
- Flow: 1. Classify the category and priority. 2. Retrieve similar resolved tickets and KB articles (hybrid search). 3. Draft a resolution or a suggested action. 4. For safe automations (password reset, access request), call workflow tools with approval policies.
- Guardrails: role-based tool permissions, a human agent in the loop for changes, an audit trail.
- Metrics: deflection rate, mean time to resolve, reopen rate, agent acceptance of suggestions.
Q3
SAP: explain the types of machine learning with business examples.
- Supervised: predict labelled outcomes, such as invoice approval (classification) or demand forecasting (regression).
- Unsupervised: find structure, such as vendor clustering or anomaly detection in journal entries.
- Reinforcement: learn by reward, such as inventory replenishment policies or dynamic pricing.
- Self-supervised / foundation models: LLMs for document understanding, a copilot over ERP data.
Q4
How do you ground an LLM copilot on ERP data safely?
- Structured data: use tools/APIs (OData services) or text-to-SQL over a curated semantic layer, rather than dumping tables into prompts.
- Unstructured data: RAG over policies and documentation.
- Authorisation: enforce the user's existing business roles on every tool call; never give the model broader access than the user has.
- Accuracy: calculations go through deterministic services; answers cite the source records; confirmation before posting transactions.
- Compliance: data residency, audit logs, no customer data used for training without consent.
Q5
Walk through your project on a screen share. How do you make it effective?
- Open with a 30-second summary (problem, users, result), then show the architecture diagram, then a live demo of the core flow, then the code for one interesting part (for example, the retrieval logic).
- Have a fallback (screenshots or video) if the demo fails. Know your repo structure well enough to navigate instantly.
Q6
What do you know about S/4HANA, and why might that matter for an AI role at SAP?
- S/4HANA is SAP's ERP suite on the in-memory HANA database, covering finance, supply chain, procurement and manufacturing.
- For AI: it is the system of record that copilots and predictions act on (cash-flow forecasting, invoice matching, supply-risk prediction). Understanding business processes (order-to-cash, procure-to-pay) lets you build AI that fits real workflows.
03How to prepare
- ServiceNow: Python DSA (DP/knapsack, arrays), and be ready to clarify problem assumptions.
- SAP: a built AI/RAG project you can demo, ML basics, and basic knowledge of SAP products and processes.
Sources
- Taro: ServiceNow Senior MLE, Hyderabad (Jul 2025)
- Glassdoor: SAP Software Engineer reviews (AI/ML profiles, 2025–26)
Created by Ajeetkumar