The Software Engineer role at WNS is pivotal in shaping the technological landscape of the company, contributing to the development and maintenance of robust software solutions that drive business efficiency and enhance user experience. As a Software Engineer, you will be involved in various phases of the software development lifecycle, including requirement gathering, design, coding, testing, and deployment. The impact of your work is significant, as it not only influences the internal operations of the company but also enhances the value delivered to clients across diverse industries. At WNS, you will work on innovative products and services that leverage cutting-edge technologies. You will collaborate closely with cross-functional teams, including product management and quality assurance, to ensure that the software solutions meet both the functional and non-functional requirements. This role demands a blend of technical expertise and creative problem-solving skills, making it both challenging and rewarding. You will have the opportunity to contribute to high-impact projects that can transform business processes and enhance customer satisfaction.
Telephonic Screening
reportedInitial call to assess candidate's background and fit for the role.
What to demonstrate
- Initial call to assess candidate's background and fit for the role
- Depth in C# Programming
How to prepare
- Answer aloud and timed: What are the main principles of object-oriented programming?
- Answer aloud and timed: Can you explain the difference between an interface and an abstract class?
Technical Interviews
reportedOne or more interviews focusing on coding challenges, system design, and behavioral questions.
What to demonstrate
- One or more interviews focusing on coding challenges, system design, and behavioral questions
- Depth in C# Programming
How to prepare
- Answer aloud and timed: What is your experience with version control systems, specifically Git?
- Answer aloud and timed: How do you manage dependencies in a software project?
PracHub editorial advice for the preparation topics above.
Prepare for Technical Depth
Ensure you have a strong grasp of the technologies mentioned in your resume. Be ready to dive deep into discussions about your experiences.
Practice Behavioral Questions
Reflect on your past experiences and be prepared to share them in a structured manner using the STAR (Situation, Task, Action, Result) technique.
Show Enthusiasm for Learning
Express your eagerness to learn new technologies and improve your skills, which aligns with WNS’s culture of continuous development.
Be Ready for Scenario-based Questions
Familiarize yourself with common software engineering scenarios and how you would approach them.
Choose a category, try a prompt, then open its approach, worked solution or follow-up when you need it.
Write a function to find the LCM of two numbers.
Write a function to find the LCM of two numbers.
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
How would you implement a binary search algorithm?
How would you implement a binary search algorithm?
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Can you explain the time complexity of your solution?
Can you explain the time complexity of your solution?
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Provide an example of a stack and how it can be implemented.
Provide an example of a stack and how it can be implemented.
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Denormalise tenant onto revisions and backfill it live
resource_revision (revision_id, resource_id, version, actor_user_id, change_kind, patch, request_id, created_at) has 400M rows and no tenant column; tenant_id lives only on resource. Two reads need it: a tenant-scoped audit feed ordered by created_at DESC, and an offboarding purge. Both join back to resource today. Justify adding tenant_id to resource_revision against those two reads, name the anomaly the copy introduces and the constraint that prevents it, then give the ordered migration for a live table taking 1.2k writes/second — the lock each step takes, how the backfill is batched, and where each step stops being reversible. PostgreSQL 16.
Approach
- Justify from the access path rather than from taste. Without the column, the audit feed either scans resource_revision by created_at and discards other tenants' rows, or resolves the tenant's resource_ids first and probes with them — both proportional to the tenant's whole history rather than to one page. With (tenant_id, created_at DESC, revision_id DESC) it is a seek that stops at 50 rows, and the purge becomes a ranged delete instead of a join.
- Name the cost exactly: a second copy of a fact can disagree with the first. Make the disagreement unwritable rather than documented — add UNIQUE (resource_id, tenant_id) on resource so it can serve as a foreign-key target, then FOREIGN KEY (resource_id, tenant_id) REFERENCES resource (resource_id, tenant_id) on the revision table. A revision can then only ever carry its parent's tenant.
- Step one, expand: ALTER TABLE resource_revision ADD COLUMN tenant_id BIGINT NULL, with no default, so it is a catalogue change and no rewrite. It still needs ACCESS EXCLUSIVE for an instant, and that instant queues behind the longest open transaction on the table while every later query queues behind it — set lock_timeout to 2s and retry rather than wait.
- Step two, dual-write: deploy the writer that populates tenant_id on every new revision while reads still use the join. Reversible by redeploying the previous build, because nothing reads the column yet.
Follow-up
- The backfill is half finished and a rollback is required. What state is the table in, and what does the previous build do with a half-populated column?
- How do you verify the backfill actually finished, given rows are still being inserted while it runs?
Replace offset paging on the resource feed with keyset
resource holds resource_id, tenant_id, owner_user_id, title, body_ref, version, status ('draft','active','archived','deleted'), created_at, updated_at, deleted_at, with an index on (tenant_id, status, updated_at DESC, resource_id DESC). The listing endpoint returns active resources for one tenant, newest update first, 50 per page, today with LIMIT 50 OFFSET n. Tenants reach page 400 and rows are created while they read. Write the keyset query, define what the cursor carries and how it is encoded, and say which part of the index each predicate uses. Assume PostgreSQL 16.
Approach
- Name the two failures separately. OFFSET 20000 makes the server produce and discard 20,000 rows, so page cost grows with depth rather than with page size. Independently, any write that changes how many rows sort above the offset moves the window between two fetches, and the direction decides which anomaly you get: an insert lands at the head of updated_at DESC and pushes already-returned rows down past the boundary, so they are returned a second time; a delete above the offset, or a row whose updated_at is bumped above the cursor, pulls rows up and one is never returned at all. Nothing in the response reveals either.
- Write the seek: WHERE tenant_id = $1 AND status = 'active' AND (updated_at, resource_id) < ($2, $3) ORDER BY updated_at DESC, resource_id DESC LIMIT 50. The row-value comparison is one index range rather than a disjunction, and both columns are NOT NULL, which is what makes that comparison well defined.
- Map each predicate onto the index: tenant_id and status are equality on the leading columns, (updated_at, resource_id) is the range, and the ORDER BY matches the index order so no Sort node appears and the scan stops after 50 rows. The DESC in the definition only matters for mixed directions — a plain ascending btree on the same columns is read backwards for this query.
- Put both sort columns in the cursor and nothing the client can tamper with into another tenant: base64 of (updated_at, resource_id), validated server-side, with tenant_id taken from the principal.
Follow-up
- The client asks for 'jump to page 400'. What do you offer instead, and what does the honest version cost?
- Sort order becomes user-selectable across four columns. How many indexes is that, and which would you refuse to add?
What are the main principles of object-oriented programming?
What are the main principles of object-oriented programming?
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Can you explain the difference between an interface and an abstract class?
Can you explain the difference between an interface and an abstract class?
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
How do you manage dependencies in a software project?
How do you manage dependencies in a software project?
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Describe a challenging bug you encountered and how you resolved it.
Describe a challenging bug you encountered and how you resolved it.
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
How would you approach designing a scalable web application?
How would you approach designing a scalable web application?
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Discuss how you would gather requirements for a new software feature.
Discuss how you would gather requirements for a new software feature.
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Describe a project where you had to implement an innovative solution.
Describe a project where you had to implement an innovative solution.
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
What factors do you consider when designing a software architecture?
What factors do you consider when designing a software architecture?
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
How would you ensure the security of a web application?
How would you ensure the security of a web application?
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Discuss the importance of performance optimization in software development.
Discuss the importance of performance optimization in software development.
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
p99 jumped on one listing filter while p50 stayed flat
After a release that added an owner_user_id filter to the resource listing, p99 rose from 90 ms to 1.9 s while p50 stayed at 40 ms. Traffic and row counts are unchanged. resource carries the index (tenant_id, status, updated_at DESC, resource_id DESC). The new query filters tenant_id and owner_user_id, orders by updated_at DESC, resource_id DESC, and takes 20 rows. On PostgreSQL, explain the shape of the regression, prove it from a query plan, and give the index you would add.
Approach
- Start from the shape. A flat p50 with a moved p99 means a subset of requests changed cost, not all of them, so the first job is naming the subset. Bucket the endpoint's latency by the tenant's row count; the natural hypothesis is that large tenants are a small share of requests and all of the tail.
- Get the plan for the new query on a large tenant with EXPLAIN (ANALYZE, BUFFERS). Expect an index scan over the tenant's range, a filter discarding most of it, then a Sort feeding the Limit, possibly reporting Sort Method: external merge Disk. Read actual rows on the scan node, not estimated.
- Explain why the existing index cannot serve it. A composite B-tree is seekable only as a left prefix, and with no equality predicate on status the scan cannot treat updated_at as an ordering, because rows in the tenant's range are ordered by status first. Everything matching must be read and sorted before LIMIT 20 can apply, so a tenant with 400,000 rows pays 400,000 rows to return 20.
- Add (tenant_id, owner_user_id, updated_at DESC, resource_id DESC). Equality on the first two columns leaves the index ordered by updated_at within that pair, so the plan becomes an index scan that stops after 20 rows with no Sort node. PostgreSQL can scan a B-tree backwards, so the DESC markers matter only if the two sort columns ever disagree in direction; keeping them explicit documents the order the keyset cursor depends on.
Follow-up
- The endpoint paginates with OFFSET. What does page 500 cost with your index, and what does the keyset version cost?
- How would you have caught this before release, given that a 10,000-row seed database produces the same plan shape at an unnoticeable cost?
Built from the rounds and topics WNS candidates report.
Prepare, practise & reflect
One practical outcome each day. Spend longer where you need it.
0 / 7 done01Map the WNS loop
- Write out the reported sequence: Telephonic Screening, Technical Interviews.
- For each round, write one sentence on what it is judging, from the description above, and mark the one you are least ready for.
Deliverable: A one-page map of the 2 reported rounds, with the weakest marked.
02Work C# Programming
- Spend the session on C# Programming, which WNS candidates report being tested on.
- Write one worked example in C# Programming and time yourself on it.
Deliverable: One timed worked example in C# Programming.
03Work ASP.NET
- Spend the session on ASP.NET, which WNS candidates report being tested on.
- Write one worked example in ASP.NET and time yourself on it.
Deliverable: One timed worked example in ASP.NET.
04Work .NET (General)
- Spend the session on .NET (General), which WNS candidates report being tested on.
- Write one worked example in .NET (General) and time yourself on it.
Deliverable: One timed worked example in .NET (General).
05Answer out loud: Technical / Domain Questions
- Answer aloud, timed: What are the main principles of object-oriented programming?
- Answer aloud, timed: Can you explain the difference between an interface and an abstract class?
Deliverable: Spoken answers to 2 reported Technical / Domain Questions question(s), under time.
06Answer out loud: Coding / Algorithms
- Answer aloud, timed: Write a function to find the LCM of two numbers.
- Answer aloud, timed: How would you implement a binary search algorithm?
Deliverable: Spoken answers to 2 reported Coding / Algorithms question(s), under time.
07Answer out loud: Behavioral / Leadership
- Answer aloud, timed: Describe a situation where you had to work with a difficult team member.
- Answer aloud, timed: How do you prioritize tasks when working on multiple projects?
Deliverable: Spoken answers to 2 reported Behavioral / Leadership question(s), under time.
Expand any day for tasks and deliverables. Your progress is saved on this device.
Behavioural rounds judge the decision you made and what it cost.
What is your experience with version control systems, specifically Git?
What is your experience with version control systems, specifically Git?
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Describe a situation where you had to work with a difficult team member.
Describe a situation where you had to work with a difficult team member.
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
How do you prioritize tasks when working on multiple projects?
How do you prioritize tasks when working on multiple projects?
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Share an example of a time when you had to adapt to changes quickly.
Share an example of a time when you had to adapt to changes quickly.
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
- 01
What is your experience with version control systems, specifically Git?
- 02
Describe a situation where you had to work with a difficult team member.
- 03
How do you prioritize tasks when working on multiple projects?
- 04
Share an example of a time when you had to adapt to changes quickly.
How difficult is the interview process?
The interview process is manageable but thorough, with a focus on both technical and behavioral assessments. Candidates should prepare for technical questions and be ready to demonstrate their problem-solving abilities.
WNS Software Engineer candidate reports ↗What differentiates successful candidates?
Successful candidates typically showcase strong technical skills, effective communication, and a good cultural fit with WNS. Demonstrating a collaborative spirit and a proactive approach to problem-solving can set you apart.
WNS Software Engineer candidate reports ↗What is the typical timeline from initial screen to offer?
The timeline can vary but expect the entire process to take a few weeks, with candidates often receiving feedback promptly after each stage.
WNS Software Engineer candidate reports ↗Is remote work an option for this role?
WNS has embraced flexible work arrangements, including remote work options, depending on the specific needs of the team and projects.
WNS Software Engineer candidate reports ↗What topics does WNS test in interviews?
WNS interviews most often cover SQL, Problem Solving, Excel, Technical Round, and Aptitude Testing. The exact emphasis depends on the specific role you apply for.
WNS Software Engineer candidate reports ↗Sources & methodology 3 sources ↗
No official company page is cited. Rounds and questions come from candidate reports and PracHub editorial material; each source shows the date it was read.
- 01WNS Software Engineer candidate reports ↗
Company-reported rounds, questions and FAQ.
Candidate reports · Accessed 2026-09-22 - 02PracHub Software Engineer practice ↗
PracHub practice material, not company-reported.
PracHub page · Accessed 2026-09-22 - 03PracHub preparation framework ↗
PracHub preparation guidance.
PracHub page · Accessed 2026-09-22
