Rubrik | SSE | NOV 2024

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-12-04Added By Anonymous
Source: Link

System Design 1

1 You need to build scp from machine 1 to machine 2 -> For huge File like of 1TB size. 2

System Design 2

1Design a scalable and fault-tolerant data collection system that can collect logs and data from various sources (eg, application servers, tailing a file etc.) and route them to different destinations (e.g., Elasticsearch, Kafka, S3) for further processing and analysis. 2

R3: Code Design:

1Build a Pipeline Manager where many job can be submitted and many jobs will have dependency on previous jobs one or more. 2 3 A --> B --> C ------ 4 | | 5 | --> G 6 ---> E --> F-------------^ 7 K--> L --> M 8 9Now What we are given: 10Job { // here A,B ,C are each a job 11 jobId 12 doWork() throws EnvironmentError 13} 14 15execute() -> need to implement this function in the class which I will create. 16 17Now the pipeline can end under 2 conditions: 18 1. Success -> when all jobs have executed. 19 2. Failure --> If atleast one job fails, then it fails. No job is in a running state. 20

R4: Code Design 2

1Given: 2// open a file descriptor for a named file 3open(name string) (fd int, err error) 4 5// pread will read len(buf) bytes, returning the number of bytes read 6// if a read would exceed the end of a file, pread will return EOF 7pread(int fd, buf []byte, offset int64) (int, error) //int -> how many actual bytes were read. 8 // any error occured. 9 //in our case -> only int works (-ve -> error) 10 11// pwrite will write len(buf) bytes to a file, returning an error if not all 12// bytes could be successfully written 13pwrite(int fd, buf []byte, offset int64) error // filled buffer of data 14 15// close a file, flushing any outstanding writes 16close(fd int) error 17 18 19Please Implement: 20 21// copy the contents of file src to file dst. 22copy(dst string, src string) error


R5: Director Round :-

Past-experience Behviour Round.


R6: Technical Deep Dive :-

Discussion about past project by principle engineer

In case you are planning to join Rubrik, please do go through Blind (App) reviews and also do connect with current employees of Rubrik. WLB is a mess there, need to work 13-14 hours is what I have heard but they do pay well

Comments