GoJek | GoTo | SDE2 Interview Experience 2024

Anonymous User
538
May 08, 2024

Applied through the company portal and got reached out by a recruiter. Had an initial call with the recruiter and he asked basic questions, and then scheduled an interview.

  1. The recruiter told me that I would be getting a problem statement an hour before the interview and I have to implement that, have seen the parking lot problem that GoJek often asks.
  2. So I did get the problem an hour before the interview and the problem was to design a key value database, with functionalities like Persistance, Transaction rollbacks and locks, this seemed dauntinging but I was able to come up with a solution.
  3. When I joined the interview, the interviewer expected me to have recieve the email days and and I was expected to have done the entire problem statement, weird and the entire interview was noting but awkward.

I did tell the recruiter that I was expected to have recieved the assignment a day ago and not an hour ago.

Important: Please ONLY do the assignment when the interview starts. You can prepare all the tools you need before the interview.
^ This is EXACTLY what the email to me said.

And btw, this was the task.


BitDB Hiring Problem
Background
Design and implement BitDB; file-based key-value (KV) database with transaction
support to meet the needs of a distributed system. The database should be capable of
handling concurrent transactions, ensuring ACID properties, and providing crash
recovery mechanisms.
Requirements
Implement following requirements solving iteratively:-

  1. Key Value Store:
    a. Implement basic operations: PUT(key, value) to insert or update a
    key-value pair, and GET(key) to retrieve the value associated with a key.
    b. Ensure data persistence by storing key-value pairs in a file-based storage
    mechanism. You may choose appropriate data structures and file
    organization to optimize for efficient reads and writes.
    c. Basic CLI to interact with the system for reading and writing data.
    Example:-

set “a” 1
1 \ write success ack
get “a”
1
d. You may assume Key and Value to be strings of variable length to start
with.

  1. Transaction Support:
    a. Implement transactional operations: BEGIN, COMMIT, and ROLLBACK. With
    corresponding support in the CLI.
    b. Ensure that transactions provide Atomicity, Consistency, Isolation, and
    Durability (ACID) properties.
    c. You may implement appropriate locking and isolation mechanisms to
    support concurrent transactions; making the CLI non-blocking in case of
    long running transactions.
  2. Crash Recovery:
    a. implement basic crash recovery mechanisms to ensure data integrity in
    case of unexpected termination of the BitDB process itself.
    b. You can use simple strategies such as transaction logs for recovery on
    system restart.
    Constraints
    ● You are free to use the programming language of your choice and search online
    for basic concepts across standard resources during the interview.
    ● Minimize dependencies on external resources or services.
    ● Design the BitDB to be as efficient as possible and suitable for use in a
    distributed system.
    ● Ensure thread safety and robust error handling.
    ● Structure you code well for maintainability and extensibility, make appropriate use
    of object oriented design principles. Maintaining code quality is more important
    than completing all parts of the problem.
Comments (2)