cswork / libraryOpen practice workspace

Interview guides · Active Intelligence

Active Intelligence Software Engineer Interview Guide

Active Intelligence Software Engineer interview guide: reported rounds, questions and how candidates describe the process.

The 60-second brief

A Software Engineer at Active Intelligence sits at the intersection of high-scale data processing and innovative product development. You are tasked with building the robust infrastructure and intelligent applications that define the company’s competitive edge. Your work directly impacts how the platform handles massive loads, ensuring that technical architecture is not only functional but scalable and efficient in a fast-paced environment. This role requires a blend of deep technical proficiency and product-minded thinking. You will contribute to the lifecycle of core features, from initial design and architecting to implementation and optimization.

This guide is scoped to a Software Engineer candidate at Active Intelligence.

Focus areas

  • Java
  • Microservices
  • Web Application Design

The Active Intelligence interview process

Active Intelligence candidates report 2 rounds over 2-4 weeks. The stages below are what candidates describe, not a published process.

Initial Technical Screening

A preliminary assessment to evaluate your technical skills and fit for the role.

What to demonstrate

  • A preliminary assessment to evaluate your technical skills and fit for the role
  • Depth in Java

How to prepare

  • Answer aloud and timed: Can you explain the core concepts of Java and how they apply to Microservices?
  • Answer aloud and timed: How do you implement Design Patterns to solve common engineering problems?

Architectural Discussions

In-depth conversations with senior leadership about architectural challenges and solutions.

What to demonstrate

  • In-depth conversations with senior leadership about architectural challenges and solutions
  • Depth in Java

How to prepare

  • Answer aloud and timed: What is your approach to debugging complex memory leaks in a production environment?
  • Answer aloud and timed: Explain the difference between various collection frameworks in Java.

Where candidates lose points

Prioritize clarity

When answering design questions, start with a high-level overview before diving into the details.

Be ready for the "why

For every technology you mention on your resume, be prepared to explain why it was the right choice for that specific project.

Punctuality matters

If you are invited for a face-to-face interview, ensure you arrive early. Even if the interviewer is delayed, your professionalism will reflect positively on your character.

Ask questions

At the end of every round, have 2–3 thoughtful questions prepared about the team's current challenges or the company’s long-term technical vision.

Questions & practice

How do you ensure thread safety in a multi-threaded application?

Medium · Technical Foundations and Java

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?

Archive a resource graph without breaking live references or recursing

Medium · graph traversal · topological order · tenant isolation

Resources reference other resources within a tenant; for the largest tenant the reference table holds up to 2,000,000 nodes and 8,000,000 edges. Archiving a resource must archive everything reachable from it that nothing outside the set still references, refuse when a live external referrer exists, and terminate when references form cycles, which they legitimately do. Produce the archive order and the refusal list, targeting O(V+E). Say what stops the traversal crossing a tenant boundary, and why recursion is the wrong control structure at this size.

Approach

  1. Load the subgraph with the tenant predicate on both endpoints of the edge, not only on the side you started from. Scoping the left table alone is the classic cross-tenant leak: one mis-entered edge then pulls another tenant's resources into the traversal and, worse, into the archive.
  2. Traverse iteratively with an explicit stack. A 2,000,000-node graph can hold a chain deep enough to exhaust a native stack in the low tens of thousands of frames, and that failure is a process crash rather than an error you can return.
  3. Treat cycles as data rather than corruption: compute strongly connected components with Tarjan in O(V+E) using its own explicit stack, then condense. The condensation is a DAG, so a topological order over it gives the archive order, and every member of a component archives in one transaction because no order within a cycle is valid.
  4. Decide refusals with reverse edges. A candidate is archivable only if every in-edge originates inside the candidate set, so build the transpose or count in-degrees restricted to the visited set, and emit each blocked resource with the id of the external referrer, which is the only part of the answer an operator can act on.

Follow-up

  • The graph is read in one query and the archive writes a minute later. What can change in between, and how do you make the write safe?
  • The candidate set is 400,000 resources. Is that one transaction, and if not, what does a half-finished archive look like to a reader?

Collapse a redelivered event batch into per-aggregate high-water marks

Easy · hashing · at-least-once · aggregation

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

  1. 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.
  2. 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.
  3. 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.
  4. 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?

Describe the trade-offs between different database schemas for a high-scale application.

Medium · System Design and Scalability

Approach

  1. Name the grain you start from and join outward from it.
  2. Check whether any join is one-to-many before aggregating, or the sums inflate.
  3. Say which index the query would use, and what makes it unusable.
  4. Handle the rows that do not match: that is usually the actual question.

Follow-up

  • How does the query change if that join becomes one-to-many?
  • What happens to this when the table is ten times larger?

Hold a per-tenant active cap against concurrent creates

Hard · write skew · isolation levels · constraints

A tenant on the standard plan may hold at most 50 resources with status='active'. The create handler runs SELECT count(*) FROM resource WHERE tenant_id = $1 AND status = 'active', compares to 50, then inserts. Two creates arrive 3 ms apart on different instances and the tenant lands at 51. Name the anomaly, say whether PostgreSQL 16 READ COMMITTED or REPEATABLE READ prevents it and why, then give an implementation that holds the cap at READ COMMITTED with the exact statements. Finally, say what changes when the cap is 'at most one running export per tenant' on job_run.

Approach

  1. Name it: write skew. The two transactions read an overlapping set and write disjoint rows, so there is no row-level conflict for the engine to detect and each commit is individually legal.
  2. Rule out the levels precisely. READ COMMITTED takes a fresh snapshot per statement and takes no lock on the counted rows, so both see 49. PostgreSQL's REPEATABLE READ is snapshot isolation: it removes non-repeatable reads and phantoms within the snapshot but still admits write skew, because the anomaly is not a re-read of a changed row, it is a read of a set that a concurrent transaction invalidates. Only SERIALIZABLE closes it, by tracking the read dependency and aborting one transaction with SQLSTATE 40001 — a guarantee that exists only if the application re-runs the whole transaction from the read.
  3. Convert the set predicate into a single-row conflict: keep tenant.active_resource_count and run UPDATE tenant SET active_resource_count = active_resource_count + 1 WHERE tenant_id = $1 AND active_resource_count < 50 in the same transaction as the INSERT. Zero affected rows is the cap, returned as 409. The row lock serialises the decision at any isolation level, and contention is bounded to one tenant's row — which is also the fair-scheduling unit, unlike a global counter that would convoy every tenant behind one row.
  4. State the cost you just took on: a counter is a second source of truth that can drift, so every path that changes status must adjust it inside the same transaction, and a periodic reconciliation has to exist, with resource_revision as the authority for what the count should have been.

Follow-up

  • A resource moves from archived back to active. Which statements change, and what breaks if the counter update and the status change land in different transactions?
  • The cap becomes plan-dependent and a plan can change mid-month. Where does the number 50 live, and who reads it?

Can you explain the core concepts of Java and how they apply to Microservices?

Medium · Technical Foundations and Java

Approach

  1. Fix the scope first: who calls this, how often, and what they do when it fails.
  2. Name the read and write paths separately; they rarely have the same bottleneck.
  3. Choose a partition key and say what query it makes expensive.
  4. 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 do you implement Design Patterns to solve common engineering problems?

Medium · Technical Foundations and Java

Approach

  1. Clarify what is being asked and what a complete answer contains.
  2. State your assumptions explicitly before working the problem.
  3. Say what you would check first and why it is the highest-information step.
  4. Work from the requirement backwards to the design.

Follow-up

  • What assumption would you test first?
  • How would you know your answer was wrong?

Explain the difference between various collection frameworks in Java.

Medium · Technical Foundations and Java

Approach

  1. Clarify what is being asked and what a complete answer contains.
  2. State your assumptions explicitly before working the problem.
  3. Say what you would check first and why it is the highest-information step.
  4. Work from the requirement backwards to the design.

Follow-up

  • What assumption would you test first?
  • How would you know your answer was wrong?

Design a web application capable of handling a very high volume of concurrent users.

Medium · System Design and Scalability

Approach

  1. Fix the scope first: who calls this, how often, and what they do when it fails.
  2. Name the read and write paths separately; they rarely have the same bottleneck.
  3. Choose a partition key and say what query it makes expensive.
  4. 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 architect a system to ensure low latency under heavy load?

Medium · System Design and Scalability

Approach

  1. Fix the scope first: who calls this, how often, and what they do when it fails.
  2. Name the read and write paths separately; they rarely have the same bottleneck.
  3. Choose a partition key and say what query it makes expensive.
  4. 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 do you approach service discovery and inter-service communication in a Microservices architecture?

Medium · System Design and Scalability

Approach

  1. Fix the scope first: who calls this, how often, and what they do when it fails.
  2. Name the read and write paths separately; they rarely have the same bottleneck.
  3. Choose a partition key and say what query it makes expensive.
  4. 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 is your approach to debugging complex memory leaks in a production environment?

Medium · Technical Foundations and Java

Approach

  1. Establish what changed and when, before forming any theory.
  2. Pick a bisection that eliminates candidates whichever way it turns out.
  3. Check the instrumentation before believing the symptom.
  4. 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?

Suggested practice checklist

Built from the rounds and topics Active Intelligence candidates report.

Day 1 — Map the Active Intelligence loop

  • Write out the reported sequence: Initial Technical Screening, Architectural Discussions.
  • 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.

Day 2 — Work Java

  • Spend the session on Java, which Active Intelligence candidates report being tested on.
  • Write one worked example in Java and time yourself on it.

Deliverable: One timed worked example in Java.

Day 3 — Work Microservices

  • Spend the session on Microservices, which Active Intelligence candidates report being tested on.
  • Write one worked example in Microservices and time yourself on it.

Deliverable: One timed worked example in Microservices.

Day 4 — Work Web Application Design

  • Spend the session on Web Application Design, which Active Intelligence candidates report being tested on.
  • Write one worked example in Web Application Design and time yourself on it.

Deliverable: One timed worked example in Web Application Design.

Day 5 — Answer out loud: Technical Foundations and Java

  • Answer aloud, timed: Can you explain the core concepts of Java and how they apply to Microservices?
  • Answer aloud, timed: How do you implement Design Patterns to solve common engineering problems?

Deliverable: Spoken answers to 2 reported Technical Foundations and Java question(s), under time.

Day 6 — Answer out loud: System Design and Scalability

  • Answer aloud, timed: Design a web application capable of handling a very high volume of concurrent users.
  • Answer aloud, timed: How would you architect a system to ensure low latency under heavy load?

Deliverable: Spoken answers to 2 reported System Design and Scalability question(s), under time.

Day 7 — Answer out loud: Behavioral and Role-Based

  • Answer aloud, timed: Walk me through the most challenging technical project you have handled.
  • Answer aloud, timed: How do you handle disagreements regarding technical architecture with your peers or leadership?

Deliverable: Spoken answers to 2 reported Behavioral and Role-Based question(s), under time.

Behavioural preparation

Behavioural rounds judge the decision you made and what it cost.

Walk me through the most challenging technical project you have handled.

Medium · Behavioral and Role-Based

Approach

  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. 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 handle disagreements regarding technical architecture with your peers or leadership?

Medium · Behavioral and Role-Based

Approach

  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. 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?

Why are you interested in the intersection of finance and technology?

Medium · Behavioral and Role-Based

Approach

  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. 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 explain a time you had to learn a new technology stack on the fly?

Medium · Behavioral and Role-Based

Approach

  1. Pick a story where you made the decision, not one where you watched it.
  2. State the situation in two sentences and spend the rest on the reasoning.
  3. Give the blast radius: what could have broken, and what you measured.
  4. 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?