Questions d'entretiens - Responsable de site

5 k

Questions d'entretien pour Responsable De Site partagées par les candidats

Principales questions d'entretien

Trier: Pertinence|Populaires|Date
LinkedIn
On a demandé à un Site Reliability Engineer...15 juillet 2014

There were two and they both happened during the live-debugging portion of the interview. All of the live debugging questions revolved around a simple website that had something broken in it. You were to fix the brokenness to be able to move on to the next page. In total there were 4 questions, each getting progressively more difficult to debug. The first question was a simple permissions problem on a file being requested by the client. The ownership of the file (a blank text file) was too restrictive, so it was raising an error. You could verify this in the apache web logs. The second error was due to a permission problem too, however this time the file was hidden in a sub directory of the main web site. You could only determine this by looking at the apache configuration file to see that the shtml file was located somewhere else. After that, change the permissions to fix. The third was a head scratcher. The filename in question was raising a 500 error and showing urlencoded characters in the filename in the web log. Looking at the name of the file on disk though, showed nothing out of the ordinary. It turns out that the unicode representations for the characters in the file name are printed in the terminal as english ascii characters. The only way you can tell that this is the case is to open the file and do a search for the filename itself and see if it matches. For example, if the correct filename is called "challenge1.shtml" you can search for that exact string but NOT find the unicode version of it. Once you find the incorrect file name, delete it and type the correct file name (in this case "challenge3.shtml" into the file and the page works. The final question was a segfault occurring in apache. It resulted in no information being returned to the client. You could see this occurring in the apache web logs as well as the Chrome tools. The apache web logs noted that a core file was dumped. This challenge required that you know a little bit about gdb and C programming. Basically, you need to run the core dump through gdb. gdb /path/to/apache /path/to/core/dump It will spew out a lot of stuff. In particular, it mentions that there is something happening in an apache module; mod_rewrite or something...it doesnt really matter. The output also points to the C source file for that module which is, conveniently on disk. Open that file in vi and jump to the line number mentioned in the gdb output (line 1861 or something). There you will see that if the filename matches challenge4.shtml to SIGSEGV; there's your smoke gun. They dont ask you to fix the final challenge, only to explain what the strstr is doing. The error in question basically looks like this if (strstr($r->filename, "challenge4.shtml") != NULL) { SIGSEGV } Just point out to them that, yeah, it's segfaulting when I ask for that file.

11 réponses

FYI, in 2020, this is still relevant.

Relevant in 2021 too.

OP here. Yes, for my interview on site they only asked two

Afficher plus de réponses
Booking.com

They gave me the below question to solve in 30 mins. Based on customer research, we know that our guests get confused when they are searching for accommodation and they found multiple hotels with the same name in the same city. To avoid this, we want to create a tool to identify "confusing" cities: cities with at least 3 hotels with the same name. Given a list of tuples (hotel_id, hotel_name, city) return a list of all "confusing" cities. Input: [ {hotel_1234, "Sheraton", "Amsterdam"} , {hotel_1000, "Sheraton", "Buenos Aires"} , {hotel_1001, "Hilton", "Amsterdam"} , {hotel_1002, "Royal Palace", "Bogota"} , {hotel_1003, "Hilton", "Amsterdam"} , {hotel_1004, "Sheraton", "Buenos Aires"} , {hotel_1005, "Sheraton", "Buenos Aires"} ] Output: [ "Buenos Aires" ]

8 réponses

Another approach would be to create a hashtable/dict with key as a tuple (city,hotel name) and value to be the occurrence of the hotel name in that city (count, keep incrementing the count when seen). When the hashtable is created, iterate over items and see whose value >= 3 and return the tuple's/key 1st value Moins

using golang ---- package main import ( "fmt" ) func main() { input := [][]string{{"hotel_1234", "Sheraton", "Amsterdam"}, {"hotel_1000", "Sheraton", "Buenos Aires"}, {"hotel_1001", "Hilton", "Amsterdam"}, {"hotel_1002", "Royal Palace", "Bogota"}, {"hotel_1003", "Hilton", "Amsterdam"}, {"hotel_1004", "Sheraton", "Buenos Aires"}, {"hotel_1005", "Sheraton", "Buenos Aires"}, } confuse_cities := []string{} Cities := make(map[string]map[string]int) for _, line := range input { if _, ok := Cities[line[2]]; ok { if val, ok2 := Cities[line[2]][line[1]]; ok2 { Cities[line[2]][line[1]] = val + 1 if Cities[line[2]][line[1]] == 3 { confuse_cities = append(confuse_cities, line[2]) } } } else { Cities[line[2]] = map[string]int{} Cities[line[2]][line[1]] = 1 } } fmt.Println(confuse_cities) } Moins

def confuse(): hotels = [("hotel_1234", "Sheraton", "Amsterdam") ,("hotel_1000", "Sheraton", "Buenos Aires") ,("hotel_1001", "Hilton", "Amsterdam") ,("hotel_1002", "Royal Palace", "Bogota") ,("hotel_1003", "Hilton", "Amsterdam") ,("hotel_1004", "Sheraton", "Buenos Aires") ,("hotel_1005", "Sheraton", "Buenos Aires"),("hotel_1234", "Sheraton", "Amsterdam")] from collections import defaultdict d = defaultdict(int) for hotel in hotels: d[(hotel[1], hotel[2])] += 1 for k, v in d.items(): if v >= 3: print(k) Moins

Afficher plus de réponses
Corecruitment

what makes you think you would fit for this role? don t you think you are over qualified for the role

8 réponses

I am sincere with my job. And i know I can easily handle all over the problems.... And work with honestly.. Moins

I am sincere with my job. And i know I can easily handle all over the problems.... And work with honestly.. Moins

I am sincere with my job. And i know I can easily handle all over the problems.... And work with honestly.. Moins

Afficher plus de réponses
Reading Partners

Be prepared to possibly role play scenarios.

6 réponses

last year I was an instructor in an afterschool program. This was my first time with a large class. It made me realize the importance of having routines and behavior management techniques in the class so the next time I have large groups of kids I plan to have an opening and closing circle, having students line up prior to class only allowing the quiet one standing in line the right way into class and having a 5 minute transition period from one activity to the next using music on my phone and verbal reminders Moins

For discipline problems I would first give a verbal warning, 2nd I have the students sit in a corner in the back of the room for 5 minutes then ask why they're there. Usually they know why and then I ask what they will do differently. If the behavior continues I contact my supervisor. If students are fighting I would separate them have them write or draw out problem depending on grade level then ask each person what happened and then have them find a solution Moins

for motivation I would use incentives as I do with a new student I first have him do a certain amount of work and then give timed breaks incorporating what was learned Moins

Afficher plus de réponses
Google

What's 2^32 ?

6 réponses

The correct approach is to show that you can break down the problem. 2^32 = 2^10 * 2^10 * 2^10 * 2^2. 2^10 = 2^8 * 2*2 = 256 * 4 ~(roughly) 1000 So: 2^32 ~ 1000 * 1000 * 1000 * 4 = 4,000,000,000 Moins

4 giga

The number that will overflow a variable of type unsigned 32-bit int. const MAX_U32INT = 2^32 -1 Moins

Afficher plus de réponses
noon

Did you work in X department at your previous workplace?

6 réponses

No, I worked at the department listed on my resume.

Yes I have 4 years expirence in dubai I have driving license

Yes I have 3year experienc in warehouse control for garment field in Saudia Arabia.. but now I am in dubai and I have UAE licence.. Moins

Afficher plus de réponses
LinkedIn

You need to distribute a terabyte of data from a single server to 10,000 nodes, and then keep that data up to date. It takes several hours to copy the data just to one server. How would you do this so that it didn't take 20,000 hours to update all the servers? Also, how would you make sure that the file wasn't corrupted during the copy?

6 réponses

P2P is the first thing that came to my mind. BitTorrent is a good tool and I believe Twitter or Facebook has developed this kind of distributing tool based on BitTorrent protocol. And I don't believe the 1TB data will be read at the same time. We can write a FUSE module that mount the directory from the central server. When one of the files was read, we can copy it and cache it locally. Moins

P2P is the best solution. If P2P is not allowed. We can use broadcast, for example: server1-> server2, then we have 2 sources, server1->server3, server2-server4; then it will take about (time to transfer one copy)*log(10000)= 3*3.32192809489*(time to transfer one copy). For fault tolerance, redundancy or retry. Or deploy a distributed file system so that file can be accessed. Central server solution is like NFS, however, NFS's server could be bottleneck. Moins

We can take checksum of the file when it is correct and compare it with the checksum of the same file in future. If both checksum are found to be same then the file isn't corrupted otherwise it is corrupted. Moins

Afficher plus de réponses
Medhaj Techno. Concept Pvt.

In which class do you read?

5 réponses

B.tech

B.tech

B.tech

Afficher plus de réponses
Boys & Girls Clubs of America

Are you ok with making $10.00 to $11.00 per hour?

5 réponses

That is very low for a director position.

Ridiculous

That's minimum wage, so they require a degree for minimum wage?

Afficher plus de réponses
Site Engineering

Which college you have studied...?

5 réponses

I have studied at K.S.RANGASAMY COLLEGE OF TECHNOLOGY

I have studied at Dhanalakshmi Srinivasan Institute of Technology

I have studied at SATHYABAMA UNIVERSITY...

Afficher plus de réponses
1 - 10 sur 4 692 questions d'entretien d'embauche

Consultez les questions posées en entretiens pour des emplois similaires

superviseur du sitechef de projetdirecteur de site