Skip to content
Tech Interview Prep

Real Interview Questions for the Software Engineer at NICE

New

Interview Q&A

8 questions · Flow follows Relevance until this set has a learning order.

Q&A-1Tell me about how your background connects to NiCE’s mission of delivering extraordinary customer experiences and enhancing public safety.

Reported in Connect Your Background to NiCE Mission

The 90-second answer

I'd split the mission into the two parts that engineering actually carries: a contact-center platform where a delay or dropped interaction is visible to a customer within seconds, and recorded interaction data that investigators and compliance teams rely on months later. My background is in building the second kind of system: event pipelines where the question is whether a record is complete, ordered and searchable when someone needs it. That is the same discipline both halves of NiCE's mission depend on. A customer should never wait on a backlog, and an investigator should never find a gap in a timeline.

Before I'd claim a fit, I'd check which product lines the role supports (CXone cloud contact center, or the public safety and evidence products), because the failure modes differ.

Where the background transfers

ConcernCustomer experience sidePublic safety side
Latency budgetRouting and agent-assist decisions inside a few hundred msIngest and indexing must not fall behind live recording
OrderingEvents from one interaction must be processed in sequenceTimelines reconstructed from several channels must reconcile
LossA dropped event degrades a dashboardA dropped event can break an evidentiary chain
RetriesAt-least-once delivery with idempotent consumersSame, plus an audit trail of every replay

The last row is where I'd spend most of the conversation. Retries are cheap to add and easy to get subtly wrong.

A concrete example from my work

We ingested call-level events from several upstream services into one store that support staff queried by interaction id. Under load, consumers retried after timeouts and occasionally wrote the same event twice, which showed up as duplicated turns in transcripts. The fix was a deduplication key derived from the source system's event id plus a sequence number, enforced by a unique constraint, with the consumer treating a conflict as success and logging it. Trace, with hypothetical figures: event c_91:17 arrives, is written, the ack is lost, the broker redelivers 900 ms later, the insert hits the constraint, and the consumer acks and increments a duplicate_suppressed counter. Dashboards showed the duplicate rate at about 0.3% at peak, which became the alert threshold.

I'd present that as an example of how I think about correctness under retry, not as proof of a specific NiCE system.

What I'd ask them

How are recordings and derived events kept in sync when a retention policy deletes one but not the other? Which team owns the ordering guarantee across channels? Those questions tell me whether the mission statement maps to a real boundary in the codebase.

Failure I'd watch for

Claiming a mission fit based on the industry alone. The stronger answer names a specific system constraint (latency, ordering, evidentiary completeness) and shows how I've handled it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-2Tell me about the architecture of your project.

Reported in System Architecture Interview

The 90-second answer

Pick one project and name the slice you owned before drawing anything. Then give the shape in three layers: what enters the system, what it is stored as, and what reads it back out. Use a hypothetical if your real project is under NDA, and say so.

The example I'd use: a call-event pipeline for a contact-center platform (hypothetical figures). Agent-desktop and IVR services publish call events to a Kafka topic partitioned by tenant_id. A consumer group writes the events into Postgres as the system of record, and a read model in Redis serves the supervisor dashboard. A stateless query API sits in front of both. Each tenant maps to a fixed set of partitions, so one noisy tenant cannot starve the others' ordering guarantees.

LayerComponentChosen forMain risk
IngestKafka, 12 partitions, acks=allReplay, buffering during Postgres slowdownsConsumer lag
PersistPostgres, (tenant_id, call_id) uniqueTransactions, one source of truthWrite contention on hot tenants
ServeRedis read model, 5 s TTLDashboard reads at 2k rpsStale state after a missed event
EdgeQuery API, statelessHorizontal scalingCache stampede on restart

Where it breaks, and how I'd know. Kafka delivery is at-least-once, so the consumer must be idempotent. The unique key on (tenant_id, call_id) plus INSERT ... ON CONFLICT DO NOTHING makes a redelivered event a no-op. Trace: event c_91 is delivered twice after a rebalance. The first write inserts the row. The second hits the conflict, does nothing, and commits its offset. Count of rows stays at one.

The second risk is lag. Consumer lag per partition is the alert I'd page on, not CPU. At a hypothetical peak of 4,000 events per second with 12 consumers, each consumer handles about 333 events per second. If Postgres commits slow to 40 ms per batch of 50, one consumer manages roughly 1,250 events per second, which is still enough, but a lock on a hot tenant row would not be. That is why batches are keyed by tenant and why the hot-tenant write path has its own alert.

Trade-offs I'd state up front. The Redis read model can lag the database by a few seconds, so the dashboard labels its data as approximate and offers a direct query for exact counts. I chose this over synchronous writes to both stores because a dual write without a transaction outbox can diverge silently, and that is much harder to detect than lag.

What I'd change. A transactional outbox on the producer side would remove the case where the event is lost between the database commit and the Kafka publish. I did not have time to add it, so I rely on a nightly reconciliation job that compares row counts per tenant per hour. I'd name that gap before the interviewer finds it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3How does a HashMap work internally, and what is its time complexity?

Reported in Nice Actimize Software Engineer Interview Guide 2026

The 60-second answer

A HashMap is an array of buckets. To put a key in, I compute hashCode(), spread the high bits into the low bits, and take the index as (n - 1) & hash, where n is the table length, always a power of two. That mask is why the length has to be a power of two: it turns the index into a cheap bit operation. Get and put both land in one bucket, so on average they are O(1). The worst case is O(log n) in Java 8 and later, because a crowded bucket turns into a red-black tree. Before Java 8 that worst case was O(n).

The catch is that the O(1) depends on two things I control: equals and hashCode must be consistent with each other, and the table must not get too full.

Mechanism

  • Default initial capacity is 16 and load factor is 0.75, so the table resizes when size > 12.
  • Resizing doubles the table to 32 and redistributes entries. Each old bucket splits into a low list and a high list, based on the one newly significant hash bit. Entries never need to be rehashed from scratch.
  • Collisions chain in a linked list in the bucket. When a bucket reaches 8 nodes and the table has at least 64 buckets, the list becomes a red-black tree. Below 6 nodes it converts back.

Trace with capacity 16, two keys that collide:

put("apple")   hash=0x9e3779b9 -> index = hash & 15 = 9   bucket 9 = [apple]
put("pear")    hash=0x1a2b3c29 -> index = hash & 15 = 9   bucket 9 = [apple -> pear]
get("pear")    index 9, walk list, equals() matches at node 2

Failure modes I would check for

  • Mutable keys. If a key's hashCode changes after insertion, get looks in the wrong bucket and returns null while the entry still exists. Keys should be immutable.
  • Poor hashCode. Keys that all return the same value turn the map into one long chain or tree. Lookups degrade from O(1) to O(log n) with a much larger constant, and a profiler shows hot time in getNode.
  • Concurrent writes. HashMap is not thread-safe, and concurrent resize can corrupt it. The fix is ConcurrentHashMap, or external locking.
  • Iteration order. It is unspecified and changes after resize. Use LinkedHashMap if insertion order matters.

When I would not use it

If I know the key range is small and dense, an array indexed directly is faster. If I need sorted keys, a TreeMap gives O(log n) and ordered iteration. If many threads write, I reach for ConcurrentHashMap rather than wrapping a HashMap in synchronized.

A follow-up I expect: hash ^ (hash >>> 16) exists so that high bits influence the index when the table is small. Without it, keys differing only in high bits would all collide in a 16-bucket table.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-4How would you design a scalable One-Time Password delivery system with multiple UI clients for NiCE?

Reported in Scalable OTP Delivery System

The 90-second answer

First I'd pin down three numbers: peak send rate, acceptable p99 time to accept a send request, and code lifetime. I'll assume 2,000 sends/s at peak (hypothetical), p99 accept under 300 ms, 6-digit codes, a 5-minute TTL and 5 verify attempts per challenge.

The design splits into a synchronous control plane and an asynchronous delivery plane. Web, mobile and agent-desktop clients call one versioned API, so the OTP rules (expiry, attempt limits, lockout) live in one place and don't drift per client.

OperationEndpointContract detail
issuePOST /otp/challengesIdempotency-Key required, returns 202 + challenge id
verifyPOST /otp/challenges/{id}/verificationsreturns 200 or 422 with attempts remaining
statusGET /otp/challenges/{id}delivery state per channel, no code

The challenge service generates the code from a CSPRNG and stores only a keyed HMAC of it, never the plaintext. The request returns before any SMS or push goes out. A worker then pulls from a queue, picks a channel and calls a provider adapter.

Python
import secrets, hmac, hashlib

def issue(key: bytes) -> tuple[str, str]:
    code = f'{secrets.randbelow(10**6):06d}'
    tag = hmac.new(key, code.encode(), hashlib.sha256).hexdigest()
    return code, tag

def check(key: bytes, tag: str, submitted: str) -> bool:
    expected = hmac.new(key, submitted.encode(), hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, tag)

Trace: client sends POST /otp/challenges with Idempotency-Key: 9a1e… and the network drops the response. The retry 800 ms later finds the key and replays 202 with the same challenge id, so the user gets one SMS, not two. Later the SMS provider times out at 3 s, the worker's circuit breaker opens for that provider, and the message is re-sent through the voice or secondary-SMS adapter. The challenge state records both attempts.

Two things decide whether this survives production. First, delivery and verification are separate failures. A code that was sent but never arrived must not count as a verification failure, so the status endpoint reports per-channel state. Second, abuse controls sit in front of everything: rate limits per destination number, per account and per source IP, plus the attempt cap on verify. NIST SP 800-63B treats SMS as a restricted authenticator and expects verifiers to limit failed attempts, so the cap and lockout are requirements, not tuning.

Storage is small. At 2,000 sends/s and a 300 s TTL there are about 600,000 live challenges (hypothetical), roughly 120 MB at about 200 bytes each, so Redis with TTL keys is enough and the hot path never touches a relational database.

FailureDetectionResponse
provider latency spikeadapter p99 > 2 s for 1 minopen breaker, fail over channel
queue backlogconsumer lag over 30 sscale workers, shed non-login sends
brute force on one numberattempts per destination per 10 minlock destination, alert
duplicate sends on retryduplicate idempotency keys in logsenforce key on issue endpoint

When not to use this: if the OTP is only for a low-risk action, a TOTP authenticator app (RFC 6238) avoids delivery entirely and removes the SMS dependency, and it's worth proposing that alongside the channel design.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5Design a low-level object-oriented scheme for a restaurant service that processes incoming orders, assigns chefs, and dispatches food using parallel processing queues.

Reported in NiCE Software Engineer Interview Questions & Guide 2026

The 90-second answer

I'd split this into three roles that never share mutable state directly: an Order that owns its lifecycle, a Ticket per station-sized piece of work, and Station objects that each own a bounded queue and a pool of Chef workers. Orders enter through one intake queue. A router splits each order into tickets. Each station's chefs claim tickets from that station's queue. When the last ticket of an order completes, the order moves to a ready queue that the Dispatcher drains. Nothing reads or writes another object's fields. Every hand-off is a queue message.

Assumptions I'd state first: one restaurant process, roughly 200 orders per hour at peak (hypothetical), and a kitchen with a grill, a fryer and a cold station. Multi-site routing is out of scope.

Core classes

Python
# Python 3.12, stdlib only
from dataclasses import dataclass, field
from enum import Enum
from queue import Queue
import threading

class OrderState(Enum):
    RECEIVED = 'received'
    IN_PREP = 'in_prep'
    READY = 'ready'
    DISPATCHED = 'dispatched'

@dataclass
class Order:
    order_id: int
    items: list[str]
    state: OrderState = OrderState.RECEIVED
    _open: int = 0
    _lock: threading.Lock = field(default_factory=threading.Lock)

    def ticket_done(self) -> bool:
        with self._lock:
            self._open -= 1
            return self._open == 0   # True means the order is ready

@dataclass
class Ticket:
    order: Order
    item: str
    station: str
    claimed_by: str | None = None

class Station:
    def __init__(self, name: str, capacity: int = 100):
        self.name = name
        self.queue: Queue[Ticket] = Queue(maxsize=capacity)  # bounded

Queue(maxsize=...) is the back-pressure point. When put blocks or times out, intake returns a 503 instead of letting memory grow.

Trace

Order 42 contains a burger (grill) and fries (fryer). The router sets _open = 2 and enqueues T1(burger, grill) and T2(fries, fryer).

t (min)EventState
0.0Chef g3 claims T1 from grill queueT1 claimed_by=g3
0.0Chef f7 claims T2 from fryer queueT2 claimed_by=f7
4.0f7 finishes T2, ticket_done() returns Falseorder 42 _open=1
7.0g3 finishes T1, ticket_done() returns Trueorder 42 READY, pushed to ready queue
7.1Dispatcher pops 42, sets DISPATCHEDhanded to pickup

The decrement and the zero check happen under the same lock, so two chefs finishing together cannot both see zero, and nobody sees zero twice.

Why not one shared queue? A single queue forces every chef to know every recipe, and one slow station blocks all others. Per-station queues let the grill back up without stalling the fryer, and each station can scale its own chef count.

Failure modes and detection

  • Lost ticket when a chef crashes after claiming. Use a lease: the claim expires after a set time (say 10 minutes, hypothetical) and the ticket is re-queued. Detect with a counter of expired leases per station.
  • Double assignment. Claiming must be atomic: Queue.get gives this for free, but any manual scan of a list needs a lock or compare-and-set on claimed_by.
  • Premature dispatch. Dispatching at _open > 0 ships partial orders. The zero check above prevents it. Alert on any order that is dispatched with unfinished tickets.
  • Queue saturation. Track queue depth and the age of the oldest ticket per station. Depth alone hides a stalled station that is still accepting work.
  • Starvation of short tickets behind long ones. Use a priority or a per-station fair policy if cold items wait more than their target.

When not to use this. If the kitchen is one cook, a single FIFO with one worker is simpler and correct. The station split earns its keep only when stations have different throughput and skill sets.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6Find the second highest distinct salary from an employee table, handling duplicate and NULL salary values.

Reported in NiCE Cloud Engineer Interview Questions & Guide 2026

The 60-second answer

I'll assume one table, employee(id, salary), where salary is nullable. I want one row with one column, and NULL when there is no second distinct salary. First I filter out NULLs, because NULL is not a salary and it sorts differently by dialect. PostgreSQL puts NULLs first under DESC by default, so an unfiltered query can return NULL as the highest value.

I rank distinct values with DENSE_RANK(), not ROW_NUMBER(). Ties at the top would otherwise hide the real second value.

SQL
SELECT MAX(salary) AS second_highest
FROM (
  SELECT salary,
         DENSE_RANK() OVER (ORDER BY salary DESC) AS r
  FROM employee
  WHERE salary IS NOT NULL
) t
WHERE r = 2;

The outer MAX over zero rows returns NULL, so a table with one distinct salary gives a NULL row, not an empty result set.

Trace (hypothetical data)

salaryDENSE_RANK
NULLfiltered out
90001
90001
75002
75002
40003

Rows with r = 2 are both 7500, and MAX returns 7500. With ROW_NUMBER() the second row would be a duplicate 9000, which is the bug interviewers look for.

Alternative: LIMIT and OFFSET

SQL
SELECT (
  SELECT DISTINCT salary
  FROM employee
  WHERE salary IS NOT NULL
  ORDER BY salary DESC
  LIMIT 1 OFFSET 1
) AS second_highest;

This works in MySQL and PostgreSQL, and the scalar subquery gives NULL when no second row exists. Without the wrapper, the query returns zero rows, and a caller that expects one row breaks. LIMIT/OFFSET is not standard SQL, and OFFSET n still reads and sorts the rows it skips. An index on salary helps both forms. The window version is easier to extend to the third or Nth highest, so I'd pick it unless the team is on an older MySQL without window functions (8.0 added them).

Failure modes I'd test for

  • All salaries NULL: must return one row with NULL, not zero rows.
  • Only one distinct salary, repeated: must return NULL.
  • Ties at the top: a ROW_NUMBER version fails here.
  • Salary stored as text or with sentinel values such as 0 or -1 for unpaid roles: the WHERE clause must match the business meaning, and the column type should be numeric.

I'd run those four cases as fixtures in CI on the target database, because NULL ordering and empty-aggregate behaviour are the parts that differ between engines.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-7Find two array values that reach a target sum using a hash map in O(n) time.

Reported in NiCE Cloud Engineer Interview Questions & Guide 2026

The 90-second answer

I'd clarify three things first: whether I return indices or values, whether the array can hold duplicates, and whether exactly one pair is guaranteed. Assuming indices, duplicates allowed, and one valid pair at most, a single pass works. For each element x at index i, the partner I need is target - x. If that partner is already in the map, I have my pair. If not, I store x → i and move on.

Python
def two_sum(nums, target):
    seen = {}  # value -> index
    for i, x in enumerate(nums):
        need = target - x
        if need in seen:
            return [seen[need], i]
        seen[x] = i
    return []

Why it is O(n). One loop, and each step does a constant-expected hash lookup and insert. Time is O(n), space is O(n) for the map. Brute force checks all pairs at O(n²) time and O(1) space. Sorting plus two pointers is O(n log n) and cheap on memory, but it loses original indices unless you carry them through the sort, so I'd only pick it when the input is already sorted or I need values rather than positions.

Trace. nums = [2, 7, 11, 15], target = 9:

ixneedin seen?action
027noseen = {2: 0}
172yes (index 0)return [0, 1]

Failure modes I'd name.

  • Inserting before checking. If I write seen[x] = i first, then [3] with target = 6 matches the element with itself and returns [0, 0]. Checking before inserting prevents this.
  • Duplicates with target = 2x. [3, 3] with target = 6 works only because the first 3 is stored before the second is checked. Returning early on the first match is what makes this correct.
  • No solution. The function should return an empty result or raise, and the caller must handle it. Silent None is the usual bug in callers.
  • Overflow in typed languages. In Java or C++ with int, target - x can overflow near the limits. Use long or compare x against target - x after checking bounds.
  • Adversarial hashing. A hash map gives expected O(n). Attacker-chosen keys can push lookups toward worse behaviour in some runtimes, so for untrusted input I'd check the runtime's hash randomisation or cap input size.

Testing. I'd test empty input, one element, negative numbers, zero, duplicates with target = 2x, a target that is never reached, and the case where the only pair is the last two elements, which is the one a bad early return misses.

Curated: · Written: · Reviewed:

Difficulty: Easy
Q&A-8Describe the internals of your FTP project and explain Java threads, including the Runnable interface and run method.

Reported in FTP project internals and Java threads | NiCE

The 90-second answer

I'll assume a Java FTP server with a Swing front end. The packages are split so the GUI never touches sockets: ftp.server (listener, sessions, command dispatch), ftp.core (protocol parsing, file operations) and ftp.gui (panels, plus an event queue back to the server). The listener accepts control connections, and each accepted socket becomes a ClientSession that implements Runnable. The server submits sessions to a pool sized to the client limit.

For the client limit I use a ThreadPoolExecutor with core and max both set to MAX_CLIENTS and a SynchronousQueue. That means no waiting queue: an over-limit connection hits AbortPolicy, throws RejectedExecutionException, and the accept loop writes 421 Too many users and closes the socket.

Pause and resume use a lock and condition rather than a busy flag, so a paused session blocks instead of spinning:

Java
private final ReentrantLock lock = new ReentrantLock();
private final Condition resumed = lock.newCondition();
private boolean paused;

void awaitIfPaused() throws InterruptedException {
    lock.lock();
    try {
        while (paused) resumed.await();
    } finally {
        lock.unlock();
    }
}

The session loop calls awaitIfPaused() before each command. Resume sets paused = false and calls signalAll().

Java threads and Runnable

Runnable is a functional interface with one method, void run(). It describes work and says nothing about threads. Thread itself implements Runnable. new Thread(session).start() creates a new call stack, and the JVM invokes run() on that stack. Calling session.run() directly just executes the code on the caller's thread, which is a common mistake that makes a server look concurrent in tests and serial in production. Calling start() twice throws IllegalThreadStateException, so a thread object is single use. run() does not throw checked exceptions, so the session catches IOException inside it.

Trade-offs and failure modes

ChoiceBehaviour under load
Platform thread per session (pool above)Each thread costs stack memory and a scheduler slot; 200 idle sessions still hold 200 threads
Virtual threads (Java 21+)Executors.newVirtualThreadPerTaskExecutor(); the limit then needs a Semaphore, because the pool no longer caps anything
Unbounded newCachedThreadPoolConnections are accepted until memory runs out; avoid for this

Failure modes I'd check first:

  • A session blocked in socket.read() with no setSoTimeout never returns, so the pool slot is never freed. Detect with jcmd <pid> Thread.print and a pool getActiveCount() that does not fall after disconnects.
  • A paused session holding a file-transfer lock stalls other sessions. Pause should release shared locks before awaiting.
  • Swallowing InterruptedException in awaitIfPaused makes shutdown hang. Restore the interrupt flag and exit the loop.

If pushed I'd say the pool sizing is the decision that matters most: the limit is a product rule, so it belongs in configuration, and the pool must be rebuilt or resized deliberately rather than by mutating a live executor.

Curated: · Written: · Reviewed:

Difficulty: Hard

Curated: · Written: · Reviewed: