Arista software engineer interview questions and EOS-style design
Arista software engineer interview questions are known for depth in C++ or Python, operating system fundamentals and careful reasoning about state, which fits a company whose EOS software is built around a shared state database that its processes publish to and subscribe from. Candidates commonly describe a recruiter call, a technical phone screen with coding, and a set of interviews with engineers and a manager, with the details depending on the team.
By Evin JohnPublished 6 min read
Why EOS architecture shapes the interview
Arista describes itself as offering client-to-cloud networking for large data center and AI, campus and routing environments. The software at the center is EOS. In a post on its official blog, Arista explains that EOS ships as a single binary image built once for all its platforms, and that every function runs in its own restartable, protected process. Those processes do not talk to each other through ad hoc messages; they share state through SysDB, a publish-subscribe-notify state database. A later layer, NetDB, extends the same state model across the network, and CloudVision builds on streaming that state off devices in real time.
If you understand why that design matters, you can answer half of a system-level interview there. When state lives in a database instead of inside each process, a crashed process can restart, read the current state and carry on, often without disturbing forwarding. It also means bugs show up as wrong state, which is easier to inspect. Expect questions that probe whether you think in terms of state and reactions to state changes rather than in terms of request and response.
What candidates describe
- Recruiter callYour background, languages and interest in networking or systems.
- Technical phone screenCoding in a shared editor, often C++ or Python, sometimes with questions about Linux and how you debug.
- Interviews with engineersSeveral sessions mixing coding, systems questions, a discussion of your past projects and sometimes reading or fixing existing code.
- Manager conversationOwnership, how you test, how you handle code you inherit, and what you want to work on.
Coding questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Implement a small publish-subscribe store where new subscribers first receive current state. | State-driven design. | Replay on subscribe, change-only notifications and prefix subscriptions. |
| Two agents disagree about an interface's state after one restarts. Write the resync logic. | Reconciliation. | Rebuild from authoritative state, compare, then emit only the differences. |
| Coalesce a burst of updates so a slow subscriber sees only the latest value per key. | Backpressure. | Per-key latest-value maps instead of unbounded queues. |
| Implement a longest prefix match table with insert, delete and lookup. | Tries. | A binary trie or compressed trie, deletion that prunes empty nodes and lookup cost per bit. |
| Parse the output of a show command into structured data. | Practical parsing. | Resilience to spacing and column changes, and a preference for structured output when it exists. |
| Write a C++ class that owns a buffer; implement copy and move correctly. | C++ resource management. | Rule of five, no double frees, and move leaving the source valid but empty. |
| Find a deadlock in a given multithreaded snippet. | Concurrency. | Lock ordering, a fix and how a lock-order checker would catch it. |
| Merge interface counters from two snapshots and compute rates, handling counter wrap. | Careful arithmetic. | Unsigned wrap at the counter width and a reset detected separately from a wrap. |
from collections import defaultdict
class StateStore:
"""Agents publish state under paths; subscribers get the current value on
subscribe and every later change, so a restarted agent rebuilds from state."""
def __init__(self):
self.state = {}
self.subs = defaultdict(list) # path prefix -> callbacks
def publish(self, path, value):
if self.state.get(path) == value:
return # no change, no notification
self.state[path] = value
for prefix, callbacks in self.subs.items():
if path.startswith(prefix):
for cb in callbacks:
cb(path, value)
def subscribe(self, prefix, cb):
self.subs[prefix].append(cb)
for path, value in sorted(self.state.items()): # replay current state first
if path.startswith(prefix):
cb(path, value)
store = StateStore()
store.publish("intf/Ethernet1/oper", "up")
store.publish("intf/Ethernet2/oper", "down")
seen = {}
store.subscribe("intf/", lambda p, v: seen.__setitem__(p, v)) # a fresh or restarted agent
store.publish("intf/Ethernet2/oper", "up")
store.publish("intf/Ethernet2/oper", "up") # duplicate, ignored
print(seen) # {'intf/Ethernet1/oper': 'up', 'intf/Ethernet2/oper': 'up'}Then talk about what this toy skips: it is single-threaded, it calls subscribers inline so a slow one blocks publishers, and a subscriber that misses updates has no way to catch up except by resubscribing. Coalescing, per-subscriber queues and sequence numbers are the natural next steps.
Linux, systems and networking questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| What happens when a process crashes on Linux, and how would a supervisor restart it? | Process lifecycle. | Signals, exit status, the parent reaping the child and restart with backoff. |
| How do two processes share memory safely? | IPC. | Shared memory with synchronization, or message passing, and the failure cases of each. |
| What does it mean for an operation to be idempotent, and why does it help restarts? | Restart safety. | Repeating it leaves the same result, so replaying state after a crash is harmless. |
| Explain how a switch learns MAC addresses and forwards frames. | Layer 2. | Learning from source addresses, flooding unknowns and aging entries. |
| What is ECMP, and how does a switch keep a flow on one path? | Load balancing. | Hashing on flow fields so packets of one flow stay in order. |
| Why do AI training clusters stress networks differently from web traffic? | Workload awareness. | Large synchronized transfers, sensitivity to congestion and tail latency. |
| How would you find which change made a build start failing intermittently? | Debugging method. | Reproduce with many runs, bisect commits and look for timing or ordering dependence. |
Design questions
- Design a way to restart a routing process without dropping traffic. State kept outside the process, forwarding untouched while it restarts, and resync on return.
- Design network-wide telemetry that streams device state to a central store. Subscriptions on devices, efficient encoding, history for replay and queries by time.
- Design an upgrade process for a pair of top-of-rack switches. One at a time, traffic drained first, health checks and an automatic stop on errors.
- Design a tool that compares intended configuration with what every device reports. A source of truth, periodic and event-driven checks, and a report of drift.
- Design a test system that runs thousands of networking tests on each code change. Test selection, shared hardware scheduling and flaky test handling. The job scheduler design has related parts.
Behavioral questions
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Tell me about a bug you were proud to find. | Persistence and method. | How you narrowed it down and what the root cause taught you. |
| Describe a time you improved test coverage or stability for a team. | Quality mindset. | Measured before and after, not just more tests. |
| Tell me about owning a feature end to end. | Ownership. | Design, code, tests, release and support after launch. |
| When did you rewrite something, and was it the right call? | Judgment. | Reasons, risk control and an honest look at the outcome. |
| Why Arista? | Motivation. | Interest in its software approach or in high-performance networking, tied to your work. |
Fictional example
- Interviewer
- The agent that programs routes into hardware crashes and restarts. What should it do first?
- Candidate
- Not reprogram everything blindly. Hardware is still forwarding with the old entries, so first I'd read what is currently installed and what the state database says should be installed.
- Candidate
- Then compute the difference and apply only that: add missing routes, remove stale ones, leave the rest alone. That keeps traffic flowing and makes the restart cheap.
- Interviewer
- What if routes change while it is reconciling?
- Candidate
- It subscribes before it reads, so changes that arrive during the reconcile are queued and applied after, and each operation is idempotent so applying one twice is harmless.
How to prepare
- Language depth. Choose C++ or Python and know it well: memory and object lifetimes in C++, data model and performance in Python. The C++ questions help.
- Linux and concurrency. Processes, signals, threads, locks and shared memory.
- State thinking. Build a toy publish-subscribe store and a reconcile loop, and explain why restarts are cheap with that design.
- Networking basics. Switching, routing, ECMP and why data center traffic patterns matter.
Related guides: Juniper Networks for configuration and routing software, Cisco for a broad networking loop, and Dell for data center hardware and systems software beyond the network.
When preparing, Natively can act as your note-taker for mock rounds: it transcribes a practice call with a peer on your own computer, so you can reread how you explained restart safety or C++ ownership and tighten the weak spots. For coding drills, a screenshot of a practice prompt lets it read the question and propose an approach and test cases. Pro or the free trial adds your résumé and the posting to its context. Find out more about Natively for interview prep.
Questions people ask
What are Arista software engineer interview questions like?
Coding in C++ or Python, Linux and concurrency questions, networking basics and discussions of state, restarts and reliability that reflect how EOS is built.
What is special about Arista's EOS for interviews?
Arista's blog describes EOS processes that each restart independently and share state through a publish-subscribe database called SysDB, so state synchronization and restart questions are natural.
Does Arista ask networking questions to software engineers?
Often some, such as switching, routing and ECMP, but strong software engineering, debugging and testing usually matter at least as much.
How should I prepare for an Arista interview?
Go deep in one language, refresh Linux processes and threads, build a toy publish-subscribe store with a reconcile loop, and prepare stories about quality and ownership.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
