Vir Innovations · Software Engineer
Updated · 2026-10-02

Vir Innovations Software Engineer
Interview Guide

THE 60-SECOND BRIEF

As a Software Engineer (Intern) at Vir Innovations, you are at the intersection of high-stakes hardware and intelligent software. You will be contributing to the development of advanced robotics, computerized weapon systems, and IoT applications. This role is not merely about writing code; it is about building reliable, real-time software that interfaces directly with physical sensors, cameras, and controllers to solve complex, real-world security and defense challenges. The impact of your work is tangible. You will be responsible for translating core robotics logic into intuitive UIs and ensuring that AI algorithms function seamlessly within a Linux environment. Because Vir Innovations prides itself on blending hardware with intelligent software, you will have the opportunity to see your code manifest in physical machines.

This guide is scoped to a Software Engineer candidate at Vir Innovations.

No round sequence has been reported for Vir Innovations. Confirm the format with your recruiter.

C++PythonLinux (development environment)

20 min read

Browse Software Engineer questions

See the practice prompts

12Practice promptsAcross five skill areas

As a Software Engineer (Intern) at Vir Innovations, you are at the intersection of high-stakes hardware and intelligent software. You will be contributing to the development of advanced robotics, computerized weapon systems, and IoT applications. This role is not merely about writing code; it is about building reliable, real-time software that interfaces directly with physical sensors, cameras, and controllers to solve complex, real-world security and defense challenges. The impact of your work is tangible. You will be responsible for translating core robotics logic into intuitive UIs and ensuring that AI algorithms function seamlessly within a Linux environment. Because Vir Innovations prides itself on blending hardware with intelligent software, you will have the opportunity to see your code manifest in physical machines. This is a fast-paced environment suited for curious, motivated engineers who are excited by the prospect of working on field-ready technology. ##### Tip The role is onsite in the Balanagar area of Hyderabad. Ensure you are prepared to discuss your ability to work within an office-based, collaborative engineering team.

01

Preparation focus

editorial

No round sequence has been reported for this company, so confirm the format with your recruiter and work the reported questions below.

What to demonstrate

  • Breadth across the topics this company reports testing
  • Whether you confirm the format before preparing for it

How to prepare

  • Ask the recruiter for the sequence, the duration of each stage and whether you will be writing code
  • Work the reported questions below and time yourself
PracHub preparation framework ↗

PracHub editorial advice for the preparation topics above.

01

Own your laptop

Since this is an onsite role and you are required to bring your own machine, ensure your Linux development environment is clean, functional, and ready for a live coding session if requested.

02

Focus on the 'Why'

When discussing your projects, don't just list the technologies used. Explain why you chose C++ over Python for a specific module, or why you chose a particular algorithm.

03

Stay curious

Show interest in the hardware side of the business. Ask questions about the sensors or the robotic platforms you might work on; this demonstrates that you are a "full-stack" thinker.

04

Do not overlook the importance of the HR round

Treat it with the same level of preparation as the technical rounds, as it is a critical filter for the team.

Choose a category, try a prompt, then open its approach, worked solution or follow-up when you need it.

9 technical prompts0 include a worked solution

How do you manage memory in C++, and why is this critical for embedded systems?

medium
Technical Foundations & Domain Knowledge

How do you manage memory in C++, and why is this critical for embedded systems?

Approach
  1. Say what the runtime actually does before reasoning about the code.
  2. Name what is shared across threads and what owns each piece of state.
  3. Identify the window where an invariant is briefly untrue.
  4. Distinguish a value from a reference to it, and say which one you handed out.
Follow-up
  • What happens if two callers reach this at the same time?
  • Where could this allocate more than you expect?

Can you explain the difference between a process and a thread in a Linux environment?

medium
Technical Foundations & Domain Knowledge

Can you explain the difference between a process and a thread in a Linux environment?

Approach
  1. Say what the runtime actually does before reasoning about the code.
  2. Name what is shared across threads and what owns each piece of state.
  3. Identify the window where an invariant is briefly untrue.
  4. Distinguish a value from a reference to it, and say which one you handed out.
Follow-up
  • What happens if two callers reach this at the same time?
  • Where could this allocate more than you expect?

Track a rolling failure rate per destination for circuit decisions

easy
sliding windowring buffercircuit breaker

The egress service delivers about 1,500 webhooks per second across roughly 40,000 destinations, each call bounded by a 10 second timeout. Maintain, per destination, the failure rate over the trailing 60 seconds so a caller can ask before dispatch whether the circuit should open. Attempts arrive as (destination_id, finished_at_ms, outcome). Requirement: amortised O(1) per attempt, with total memory bounded by the destination count rather than by traffic. Give the structure, its exact memory, and the rule that stops a destination with three attempts from opening a circuit.

Approach
  1. Name the exact-deque version and then reject it as the default. Holding timestamps and advancing a tail pointer past anything older than now minus 60 seconds is a correct two-pointer window at amortised O(1) per attempt, but its memory tracks in-window traffic, so one destination in a retry storm holds hundreds of thousands of entries while thousands of quiet destinations hold none.
  2. Use a ring of 60 one-second buckets per destination, each bucket a pair of counters for attempts and failures. On an attempt, advance the ring by the elapsed whole seconds, zeroing at most min(elapsed, 60) buckets, then increment the head. That is amortised O(1) with a fixed footprint per destination.
  3. State the footprint: 60 buckets times two 4-byte counters is 480 bytes of payload per destination, so 40,000 destinations is roughly 20 to 25 MB with per-entry overhead, bounded by the catalogue rather than by the rate. The cost is granularity, since the oldest bucket ages out in whole seconds, which is far tighter than the decision needs.
  4. Require a minimum sample before the circuit may open. A destination with three attempts and three failures reads as 100 percent and is not evidence; a floor of roughly 20 attempts in the window makes the ratio meaningful, and below that floor use a run of consecutive failures as the trigger instead.
Follow-up
  • The fleet is 30 instances and each sees roughly a thirtieth of a destination's traffic. Where does the rate actually live, and what does a per-instance answer get wrong?
  • A destination answers in 9.5 seconds and succeeds. It is not failing but it is consuming your per-destination concurrency. What signal should open the circuit here?

Built from the topics and questions Vir Innovations candidates report; no round sequence has been reported.

Small steps. Visible outcomes.0 / 7 completed
ONE WEEK · YOUR PACE

Prepare, practise & reflect

One practical outcome each day. Spend longer where you need it.

0 / 7 done
01Establish the Vir Innovations format
  • No round sequence has been reported, so ask your recruiter for the sequence, the duration of each stage and whether you will write code.

Deliverable: A written reply from your recruiter confirming the format.

02Work C++
  • Spend the session on C++, which Vir Innovations candidates report being tested on.
  • Write one worked example in C++ and time yourself on it.

Deliverable: One timed worked example in C++.

03Work Python
  • Spend the session on Python, which Vir Innovations candidates report being tested on.
  • Write one worked example in Python and time yourself on it.

Deliverable: One timed worked example in Python.

04Work Linux (development environment)
  • Spend the session on Linux (development environment), which Vir Innovations candidates report being tested on.
  • Write one worked example in Linux (development environment) and time yourself on it.

Deliverable: One timed worked example in Linux (development environment).

05Answer out loud: Technical Foundations & Domain Knowledge
  • Answer aloud, timed: How do you manage memory in C++, and why is this critical for embedded systems?
  • Answer aloud, timed: Can you explain the difference between a process and a thread in a Linux environment?

Deliverable: Spoken answers to 2 reported Technical Foundations & Domain Knowledge question(s), under time.

06Rehearse your own examples
  • Prepare three examples from your own work where you made the decision, each with the outcome you can quantify.

Deliverable: Three examples written out, each with a number attached.

07Dry run for Vir Innovations
  • Run one full mock under time, then write down the two questions you most want to ask your interviewers.

Deliverable: A completed timed mock and two questions to ask.

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.

Unblock an engineer without taking the keyboard

easy
mentoringleasesat-least-once

A teammate has spent two days on a job handler that occasionally writes duplicate rows. They are certain the queue is delivering twice by mistake. You suspect a lease expiring under a slow handler, so the job is running concurrently with itself. Describe how you have unblocked someone in this position: what you asked before offering a hypothesis, what you showed them rather than told them, and what you left them owning. Then say what you would do if their theory turned out to be the right one.

Approach
  1. Ask before diagnosing, and ask for things answerable from data they already have: the attempt count on the job rows that produced duplicates, the handler's observed duration against its lease expiry, and whether the duplicate rows share a natural key that a unique constraint could have caught.
  2. Teach the shape rather than the answer. A lease cannot distinguish a dead worker from a slow one, so a handler that outruns its lease is running twice by design, and deploys deliver the other half by killing handlers mid-run on every rollout. Both of their candidate theories produce identical duplicate rows, which is why the evidence has to come from timings rather than from argument.
  3. Hand over a checklist they execute: a natural key on every write the handler performs so the second copy collides rather than appends, the record of intent written before any external effect, a lease heartbeat while running, and the metric that shows it working.
  4. Keep ownership with them deliberately. Pair on the first write, then step back; if you finish it yourself you have closed one ticket and left the same person stuck on the next redelivery.
Follow-up
  • How would you distinguish a genuine double-delivery from a lease expiry using only the data already stored?
  • Their handler calls an external endpoint before recording that it did. What do you tell them to change first?

Ship under a deadline and bound the debt you chose

medium
paginationtechnical debttradeoffs

You have four days to ship a tenant-facing listing endpoint. The version you would defend uses keyset pagination over (tenant_id, status, updated_at DESC, resource_id DESC); the version you can finish uses LIMIT/OFFSET with no matching index. Describe a deadline call you actually made of this shape: what you shipped, what you knowingly deferred, how you bounded the damage with a mechanism rather than an intention, and the specific numeric condition that would force the follow-up. Name who you told and where you wrote it down.

Approach
  1. Name the deferred failure precisely instead of calling it slow. OFFSET n makes the database produce and discard n rows, so cost grows with page depth; without an index matching the sort, every matching row is read and sorted before the limit applies; and rows inserted between two page fetches shift across the boundary so items are skipped or repeated with nothing in the response to signal it.
  2. Bound the blast radius with something mechanical rather than a promise: cap maximum page depth, cap page size, restrict the endpoint to one internal caller, or keep it behind a flag. State which failure each cap removes and which it leaves standing.
  3. Attach a number to the trigger and wire it to an alarm: the first tenant crossing N resources, or the endpoint's p99 crossing its share of the 400 ms budget, so the debt announces itself instead of waiting to be remembered.
  4. Write it where the next engineer looks, which is the code and the ticket, not a chat message: what was deferred, why, the cap, and the trigger.
Follow-up
  • At what page depth does the offset version breach your latency budget, given your page size and row counts?
  • What breaks first when you switch to keyset pagination later, and what does a client holding an old page token see?

Estimate work you have never done and defend the range

hard
estimationbackfillsexpand-contract

You are asked to estimate a change you have never attempted: add a column to a 100-million-row table, populate it, move reads across, and drop the old shape. Give a range with the assumptions that generate it, including batch size, the signal your backfill throttles on, and wall-clock hours, and name the three unknowns that would move the number most. Then describe a real estimate you gave under comparable ignorance: how you expressed its uncertainty, what you committed to, and how wrong you turned out to be.

Approach
  1. Decompose into independently deployable steps before estimating anything: add the column nullable, write both shapes, backfill in batches, verify, move reads, stop writing the old shape, drop it. That is four deploys spread over days, and the calendar estimate is dominated by them rather than by the loop's runtime.
  2. Do the arithmetic aloud for the part that has arithmetic in it: batch size times number of batches times per-batch duration, at a write rate the primary can absorb alongside roughly 1.2k writes per second of production traffic. The loop is throttled by replication lag and lock waits, not by how fast it can issue statements.
  3. Price the schema step by its lock rather than its statement duration. In PostgreSQL an ALTER TABLE taking ACCESS EXCLUSIVE waits for every open transaction on that table while later queries queue behind it, so a millisecond change issued during a thirty-second analytics query stalls that table for thirty seconds. Adding a nullable column with a non-volatile default avoids a rewrite from version 11; a new index wants CREATE INDEX CONCURRENTLY, which cannot run inside a transaction block and leaves an invalid index behind if it fails.
  4. Express the answer as a range whose endpoints each trace to a stated assumption, then name the cheapest experiment that collapses it, which is almost always running one real batch against the real table and multiplying.
Follow-up
  • How do you verify the backfill genuinely finished, given rows written by production traffic while it ran?
  • Where does the backfill resume from after a worker is killed mid-batch, and what makes that resume point trustworthy?
  • 01

    A teammate has spent two days on a job handler that occasionally writes duplicate rows. They are certain the queue is delivering twice by mistake. You suspect a lease expiring under a slow handler, so the job is running concurrently with itself. Describe how you have unblocked someone in this position: what you asked before offering a hypothesis, what you showed them rather than told them, and what you left them owning. Then say what you would do if their theory turned out to be the right one.

  • 02

    You have four days to ship a tenant-facing listing endpoint. The version you would defend uses keyset pagination over (tenant_id, status, updated_at DESC, resource_id DESC); the version you can finish uses LIMIT/OFFSET with no matching index. Describe a deadline call you actually made of this shape: what you shipped, what you knowingly deferred, how you bounded the damage with a mechanism rather than an intention, and the specific numeric condition that would force the follow-up. Name who you told and where you wrote it down.

  • 03

    You are asked to estimate a change you have never attempted: add a column to a 100-million-row table, populate it, move reads across, and drop the old shape. Give a range with the assumptions that generate it, including batch size, the signal your backfill throttles on, and wall-clock hours, and name the three unknowns that would move the number most. Then describe a real estimate you gave under comparable ignorance: how you expressed its uncertainty, what you committed to, and how wrong you turned out to be.

PracHub preparation framework ↗
How difficult are the technical rounds?

The difficulty is generally considered average, provided you have a strong grasp of your fundamentals. The focus is on practical application rather than obscure competitive programming puzzles.

Vir Innovations Software Engineer candidate reports ↗
What is the most important thing to prepare for?

Your resume projects. The interviewers will dive deep into what you have built; be prepared to defend your technical choices and explain how you handled challenges during development.

Vir Innovations Software Engineer candidate reports ↗
Is there a specific focus on the interview process?

Yes, the HR round is known to be intense. They will evaluate your interest in the domain and your ability to fit into the Vir Innovations culture. Be ready to articulate why you want to work on robotics and defense-related software.

Vir Innovations Software Engineer candidate reports ↗
How soon will I know the results?

While timelines vary, the process is generally efficient. You can expect feedback after each phase, keeping the momentum going throughout the recruitment cycle.

Vir Innovations Software Engineer candidate reports ↗
What topics does Vir Innovations test in interviews?

Vir Innovations interviews most often cover C++, Python, Linux (development environment), OpenCV, and Data Structures and Algorithms (DSA). The exact emphasis depends on the specific role you apply for.

Vir Innovations 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.