Arista networks || SDE-2
Summary
I interviewed for an SDE-2 role at Arista Networks. The process included project discussions, system design concepts, and two coding problems. Unfortunately, I was rejected as my solution for the deadlock problem wasn't as optimal as expected.
Full Experience
I got a call from a recruiter via Naukri for an SDE-2 position at Arista Networks. I have 4 years of experience at an American MNC.
My first round involved a discussion about my past projects and how HTTPS works internally. Following this, I was given a small code snippet and tasked with finding a deadlock, discussing its nature, and resolving it. The interviewer provided an example scenario: 'A wants to transfer money to B, and at the same time, B wants to transfer money to A.'
The second question presented was a LeetCode problem: Time Based Key-Value Store.
The verdict was a rejection. While I solved the first question using a global lock, they were looking for a more granular level locking mechanism.
Interview Questions (2)
I was presented with a small code snippet and asked to identify a deadlock, discuss its implications, and then propose a resolution. The interviewer gave an example scenario to illustrate the type of deadlock: 'If user A wants to transfer money to user B, and simultaneously, user B wants to transfer money to user A, how would you handle the potential deadlock?'
This was a standard LeetCode problem where I needed to design a time-based key-value store. The store should allow setting a key with a value and timestamp, and retrieving the value of a key at a specific timestamp, returning the largest value whose timestamp is less than or equal to the given timestamp.