As a Software Engineer at Legacy Health, you are at the intersection of complex technical systems and critical patient-facing operations. Your work directly supports the infrastructure that enables high-quality healthcare delivery, requiring a unique blend of technical precision, system reliability, and a deep sense of responsibility. You are not just writing code; you are building the digital foundation that helps providers and staff manage the nuances of modern healthcare. This role is both challenging and rewarding due to the scale and sensitivity of the environments in which you operate. You will collaborate with cross-functional teams, including analysts and clinical leadership, to solve problems that have a tangible impact on the efficiency and effectiveness of the organization. Whether you are optimizing existing systems or developing new features, your contributions will be central to the technological agility of Legacy Health. ##### Tip The environment at Legacy Health values collaborative problem-solving. Be prepared to discuss how your technical work supports the broader business goals of the organization.
Application Review
reportedInitial review of submitted applications to assess qualifications and fit.
What to demonstrate
- Initial review of submitted applications to assess qualifications and fit
- Depth in Software Engineering (General)
How to prepare
- Be able to walk your CV end to end in two minutes, and say why this company specifically.
- Have your salary expectations, notice period and location constraints ready, and ask for the rest of the loop in writing.
One-on-One Conversations
reportedIndividual interviews with team members to evaluate interpersonal fit and skills.
What to demonstrate
- Individual interviews with team members to evaluate interpersonal fit and skills
- Depth in Software Engineering (General)
How to prepare
- Answer aloud and timed: How do you approach building consensus when your team members disagree on a technical direction?
- Answer aloud and timed: Tell us about a time you had to explain a complex technical issue to a non-technical colleague.
Panel Interviews
reportedGroup interviews with various roles, including analysts and department directors.
What to demonstrate
- Group interviews with various roles
- Including analysts and department directors
How to prepare
- Answer aloud and timed: How do you balance the need for speed with the necessity of system stability?
- Answer aloud and timed: Walk us through your background and the most challenging project you have worked on.
Final Decision
reportedEvaluation of all interviews to make a hiring decision based on fit and qualifications.
What to demonstrate
- Evaluation of all interviews to make a hiring decision based on fit and qualifications
- Depth in Software Engineering (General)
How to prepare
- Answer aloud and timed: How do you stay updated with the latest software development trends and technologies?
- Answer aloud and timed: What is your preferred approach to debugging a system that is failing in production?
PracHub editorial advice for the preparation topics above.
Understand the "Why
Always be ready to explain why you chose a specific technology or approach. We value intentionality in engineering.
Be Transparent
If you don't know the answer to a question, it is better to explain how you would find the answer than to guess.
Practice Your Narrative
Since our process involves multiple stakeholders, have a clear, concise story about your professional journey that you can adapt for different audiences.
Prepare for the Panel
In a panel setting, make eye contact with everyone in the room, not just the person who asked the question.
Choose a category, try a prompt, then open its approach, worked solution or follow-up when you need it.
Merge partitioned event streams into one ordered feed with bounded lateness
The read-model service consumes 64 log partitions carrying about 4,000 events per second in total. Each partition is ordered within itself, but partitions drift by up to 30 seconds, and the activity feed must present a tenant's events in occurred_at order. Produce the merge. State its complexity, the buffer it requires in events and in bytes, what happens when one partition is idle, and what you do with an event that arrives after you have already emitted its position. Payloads average 1 KB.
Approach
- Merge with a min-heap over the 64 partition heads keyed on (occurred_at, event_id): O(log P) per event and O(n log P) overall. The tie-break on event_id is what makes the output deterministic when two partitions carry the same millisecond, which matters because the feed is paginated and a non-deterministic order reorders pages under the reader.
- Emitting the heap head is only correct once every partition has produced everything up to that timestamp, so the emit condition is a watermark: the minimum across partitions of the highest occurred_at seen, less the allowed lateness. Events are held until the watermark passes them, which is what turns individually ordered streams into a jointly ordered one.
- Size the buffer from the lateness rather than guessing: 4,000 events per second times 30 seconds is 120,000 buffered events, and at 1 KB each about 120 MB of heap. That number is the real price of the ordering guarantee and belongs in front of whoever asked for it.
- Handle the idle partition explicitly, because it fails the feed rather than corrupting it: a partition with no traffic never advances its own maximum, so the watermark freezes and output stops entirely. Either every partition emits a periodic idle marker carrying the broker's current time, or the watermark falls back to wall clock for a partition silent beyond a threshold.
Follow-up
- The lateness budget is raised to five minutes. What is the new buffer, and what besides memory changes?
- The consumer restarts. Where does it resume from, and what does the feed look like for the first 30 seconds?
Diff a projection against the primary without per-row point reads
The listing projection has drifted and some rows show a stale version. The primary holds 40,000,000 resource rows across 12,000 tenants while serving 1,200 writes and 14,000 reads per second. The obvious repair, reading each resource row and comparing its version against the projection, is correct and would eventually finish. Explain precisely why it is unacceptable here, then give a diff that finds the differing rows, state its complexity, and make it safe to run against a live primary. Replication lag is usually under 100 ms and is not bounded.
Approach
- Quantify the naive cost rather than calling it slow: 40,000,000 point reads at even 0.5 ms each is over five hours serialised, and the only lever is concurrency, which is exactly what you cannot spend. The primary's pool is sized for the write path, and 40,000,000 random reads evict the buffer cache that sustains the 85 percent cache hit rate, so the audit degrades the system it is auditing.
- Replace random access with one ordered pass per side. Both sides can be read in (tenant_id, resource_id) order, which is a sequential scan on each and a merge join in O(n) time and O(1) memory. For a dense diff that is the whole answer, and it reads the primary once instead of 40,000,000 times.
- For the expected sparse case, compare range hashes instead of rows: partition the key space, compute per range an order-independent aggregate over hash(resource_id, version), compare aggregates, and descend only into ranges that differ. With d differing rows and branching factor B, at most d ranges mismatch per level, so the drill-down examines O(d log_B(n/d)) ranges and reads full rows only in mismatching leaves.
- Aggregate with a sum modulo 2^64 or a multiset hash, never XOR. XOR is order-independent but self-cancelling, so two rows wrong in the same way, or a row duplicated on one side, leave the range aggregate matching and the range is declared clean.
Follow-up
- The diff reports 900 stale rows. How do you decide between patching those rows and rebuilding the projection from resource_revision?
- Same job, but the projection lives in a search index that cannot be scanned in key order. What changes?
Collapse a redelivered event batch into per-aggregate high-water marks
You drain a batch of up to 5,000,000 events, each (aggregate_id BIGINT, aggregate_version INT, event_type, payload). The log guarantees order within one aggregate only; the batch merges 64 partitions, and a relay failover has redelivered a range, so an older version for an aggregate can appear after a newer one. Given a map of last_applied_version per aggregate, produce the events worth applying, at most one per (aggregate_id, version), plus the count discarded. Target O(n) time. State the memory for 2,000,000 distinct aggregates and what you do when it does not fit.
Approach
- One pass, one hash map from aggregate_id to the highest version kept, and a discard counter. An event whose version is at or below last_applied_version for its aggregate is dropped without further work, which is the whole reason the event carries its version rather than a delta. O(n) expected time, O(d) space in distinct aggregates.
- Keep the maximum, never the last occurrence. The redelivered range means the final appearance of an aggregate in the batch can be an older version than one seen earlier in the same batch, so last-wins applies stale state over newer state and the projection regresses with no error anywhere.
- Cost the memory instead of calling it large: an 8-byte key plus a 4-byte version is 12 bytes of payload, and an open-addressed table held at a 0.7 load factor costs roughly 17 bytes per entry before per-slot metadata, so 2,000,000 aggregates is tens of megabytes in a native layout and several times that in a runtime that boxes both key and value.
- If the distinct set exceeds memory, partition on hash(aggregate_id) mod P and reduce each partition independently. Every event for one aggregate hashes to the same partition, so the per-partition result is exact and the merge is concatenation rather than a second reduction.
Follow-up
- The payload is a patch rather than a snapshot, so applying only the highest version loses the intermediate changes. What changes in your reduction?
- How do you detect that version 7 arrived while version 6 was never delivered, and what should the consumer do about the gap?
Explain why the owner filter ignores the listing index
The only index on resource is (tenant_id, status, updated_at DESC, resource_id DESC). A new endpoint returns one user's resources across all statuses, newest created first: WHERE tenant_id = $1 AND owner_user_id = $2 ORDER BY created_at DESC LIMIT 20. On a tenant with 2M rows it takes 900 ms and EXPLAIN shows a sort above a large scan. Explain precisely why the existing index cannot serve it, give the index that can, and state which of these the new index still will not help: owner_user_id alone across tenants; the same query ordered by updated_at. PostgreSQL 16.
Approach
- Separate the two jobs an index does. For filtering, a composite btree is seekable only on a left prefix, so with no predicate on status the scan can at best range over tenant_id and test owner_user_id per row; PostgreSQL 16 has no btree skip scan to jump the unconstrained column.
- For ordering, the index is sorted by (status, updated_at) within a tenant and not by created_at, so the LIMIT cannot stop early: every matching row is read and then sorted. That is the 'Sort Method: top-N heapsort' line, and it is why the plan reads 2M rows to answer with 20.
- Derive the replacement from the access path — equality, equality, then the ordering column: CREATE INDEX CONCURRENTLY ON resource (tenant_id, owner_user_id, created_at DESC). The scan seeks to the (tenant, owner) range and walks 20 entries in order, so the Sort node disappears along with the row-read.
- Treat INCLUDE (title, status) as conditional, not free. An index-only scan still visits the heap for any row whose page is not marked all-visible, so on a table taking 1.2k writes/second the win depends on autovacuum keeping the visibility map current, and the wider index costs more on every insert.
Follow-up
- 90% of rows are status='active'. Would a partial index WHERE status = 'active' change your answer, and for which of the three queries?
- A dashboard runs this for 40 owners in one page load. What changes about the design?
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?
Walk us through your background and the most challenging project you have worked on.
Walk us through your background and the most challenging project you have worked on.
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 stay updated with the latest software development trends and technologies?
How do you stay updated with the latest software development trends and technologies?
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 ensure your code is maintainable and scalable for other engineers?
How do you ensure your code is maintainable and scalable for other engineers?
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?
What specific technologies or languages are you most proficient in, and how have you used them to solve legacy
What specific technologies or languages are you most proficient in, and how have you used them to solve legacy system issues?
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 is your preferred approach to debugging a system that is failing in production?
What is your preferred approach to debugging a system that is failing in production?
Approach
- Establish what changed and when, before forming any theory.
- Pick a bisection that eliminates candidates whichever way it turns out.
- Check the instrumentation before believing the symptom.
- Separate the trigger from the cause; the deploy is rarely the bug.
Follow-up
- What would you look at first, and what would it rule out?
- How would you tell a cause from a coincidence here?
Built from the rounds and topics Legacy Health candidates report.
Prepare, practise & reflect
One practical outcome each day. Spend longer where you need it.
0 / 7 done01Map the Legacy Health loop
- Write out the reported sequence: Application Review, One-on-One Conversations, Panel Interviews, Final Decision.
- 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 4 reported rounds, with the weakest marked.
02Work Software Engineering (General)
- Spend the session on Software Engineering (General), which Legacy Health candidates report being tested on.
- Write one worked example in Software Engineering (General) and time yourself on it.
Deliverable: One timed worked example in Software Engineering (General).
03Work Interview Process & Technical Hiring Workflow
- Spend the session on Interview Process & Technical Hiring Workflow, which Legacy Health candidates report being tested on.
- Write one worked example in Interview Process & Technical Hiring Workflow and time yourself on it.
Deliverable: One timed worked example in Interview Process & Technical Hiring Workflow.
04Work Communication (Interview & Collaboration)
- Spend the session on Communication (Interview & Collaboration), which Legacy Health candidates report being tested on.
- Write one worked example in Communication (Interview & Collaboration) and time yourself on it.
Deliverable: One timed worked example in Communication (Interview & Collaboration).
05Answer out loud: Behavioral and Team Dynamics
- Answer aloud, timed: How do you handle feedback from team members during a design or code review?
- Answer aloud, timed: Can you describe a time you had to work closely with non-technical stakeholders to solve a problem?
Deliverable: Spoken answers to 2 reported Behavioral and Team Dynamics question(s), under time.
06Answer out loud: Technical Background and Experience
- Answer aloud, timed: Walk us through your background and the most challenging project you have worked on.
- Answer aloud, timed: How do you stay updated with the latest software development trends and technologies?
Deliverable: Spoken answers to 2 reported Technical Background and Experience question(s), under time.
07Dry run for Legacy Health
- 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.
How do you handle feedback from team members during a design or code review?
How do you handle feedback from team members during a design or code review?
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?
Can you describe a time you had to work closely with non-technical stakeholders to solve a problem?
Can you describe a time you had to work closely with non-technical stakeholders to solve a problem?
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 approach building consensus when your team members disagree on a technical direction?
How do you approach building consensus when your team members disagree on a technical direction?
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?
Tell us about a time you had to explain a complex technical issue to a non-technical colleague.
Tell us about a time you had to explain a complex technical issue to a non-technical colleague.
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 balance the need for speed with the necessity of system stability?
How do you balance the need for speed with the necessity of system stability?
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
How do you handle feedback from team members during a design or code review?
- 02
Can you describe a time you had to work closely with non-technical stakeholders to solve a problem?
- 03
How do you approach building consensus when your team members disagree on a technical direction?
- 04
Tell us about a time you had to explain a complex technical issue to a non-technical colleague.
How difficult are the technical interviews?
We aim for an "average" to "challenging" level of difficulty. The focus is on practical application rather than theoretical puzzles, so prepare to discuss your real-world projects.
Legacy Health Software Engineer candidate reports ↗What is the most important trait for a successful candidate?
Adaptability. Because Legacy Health is a complex organization, the ability to work well with different types of people and adapt to changing project requirements is highly valued.
Legacy Health Software Engineer candidate reports ↗How long does the entire process take?
While it can vary, the process typically takes a few weeks from the initial phone screen to the final decision. We believe in taking the time to ensure the right fit for both parties.
Legacy Health Software Engineer candidate reports ↗Should I expect a coding test?
While we prioritize discussions about your background and problem-solving methodology, be prepared to talk through code or architectural diagrams during your interviews. ##### Tip Use the time between interview rounds to review your own resume; be prepared to provide specific examples for every bullet point you listed.
Legacy Health Software Engineer candidate reports ↗What topics does Legacy Health test in interviews?
Legacy Health interviews most often cover Human Resources Business Analysis, Software Engineering (General), HR Business Intelligence (HR BI), Human Resource Systems (HRIS), and Interview Process & Technical Hiring Workflow. The exact emphasis depends on the specific role you apply for.
Legacy Health 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.
- 01Legacy Health 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