Production Engineer Interview Questions Facebook
Anonymous User
21174

I have collected the list of questions asked to Production Engineer at Facebook .Please try to solve this and post your efficient solution in comments.

1.Write a script that connects to 100 hosts, looks for a particular process and sends an email with a report.
2.Read data from an API call that gives structured data in JSON format and arrange that data in the requested format.
3.Reading from STDIN and receiving two parameters which was host and ports that I need to reach and print status,what if this input is the file with 1tb(here interaction with large inputs & optimization)
4.read innate file and parse the strings to count how many times an email address is found 
5.You will be supplied with two data files in CSV format .
The first file contains statistics about various dinosaurs. The second file contains additional data.
Given the following formula, speed = ((STRIDE_LENGTH / LEG_LENGTH) - 1) * SQRT(LEG_LENGTH * g)
Where g = 9.8 m/s^2 (gravitational constant)
Write a program to read in the data files from disk, it must then print the names of only the bipedal dinosaurs from fastest to slowest. 

$ cat dataset1.csv

NAME,LEG_LENGTH,DIET

Hadrosaurus,1.4,herbivore

Struthiomimus,0.72,omnivore

Velociraptor,1.8,carnivore

Triceratops,0.47,herbivore

Euoplocephalus,2.6,herbivore

Stegosaurus,1.50,herbivore

Tyrannosaurus Rex,6.5,carnivore

$ cat dataset2.csv

NAME,STRIDE_LENGTH,STANCE

Euoplocephalus,1.97,quadrupedal

Stegosaurus,1.70,quadrupedal

Tyrannosaurus Rex,4.76,bipedal

Hadrosaurus,1.3,bipedal

Deinonychus,1.11,bipedal

Struthiomimus,1.24,bipedal

Velociraptorr,2.62,bipedal

Please come up with optimized solution for this questions.

Comments (28)