Backend Developer Interview Questions

9,196 backend developer interview questions shared by candidates

Create a simple backend app using any Python framework of my choice. The app was designed to manage hotel data through three main endpoints, focusing on reservations and room availability. Hotel Data API Endpoints: Get Reservation: Purpose: To retrieve reservation details. Input: reservation_id (e.g., a unique identifier for each reservation). Output: Returns all the relevant reservation information, such as the guest name, dates of stay, room type, and other associated data. Example Response: json Copy code { "reservation_id": "12345", "guest_name": "John Doe", "check_in": "2024-09-01", "check_out": "2024-09-05", "room_type": "A" } Get Availability: Purpose: To check room availability for the entire duration of a guest’s stay across all room types. Input: reservation_id (to determine the dates of the guest’s stay). Output: Returns a list of available rooms for each type (e.g., types A, B, and C) for the entire reservation period. Example Response: json Copy code { "A": 3, // 3 rooms of type A available "B": 5, // 5 rooms of type B available "C": 2 // 2 rooms of type C available } Availability Conflict Scenarios. Conflicts could arise if there are no rooms available for one or more types during the guest’s stay, leading to overbooking or the need for alternative arrangements.
avatar

Backend Developer

Interviewed at Plusgrade

3.5
Sep 6, 2024

Create a simple backend app using any Python framework of my choice. The app was designed to manage hotel data through three main endpoints, focusing on reservations and room availability. Hotel Data API Endpoints: Get Reservation: Purpose: To retrieve reservation details. Input: reservation_id (e.g., a unique identifier for each reservation). Output: Returns all the relevant reservation information, such as the guest name, dates of stay, room type, and other associated data. Example Response: json Copy code { "reservation_id": "12345", "guest_name": "John Doe", "check_in": "2024-09-01", "check_out": "2024-09-05", "room_type": "A" } Get Availability: Purpose: To check room availability for the entire duration of a guest’s stay across all room types. Input: reservation_id (to determine the dates of the guest’s stay). Output: Returns a list of available rooms for each type (e.g., types A, B, and C) for the entire reservation period. Example Response: json Copy code { "A": 3, // 3 rooms of type A available "B": 5, // 5 rooms of type B available "C": 2 // 2 rooms of type C available } Availability Conflict Scenarios. Conflicts could arise if there are no rooms available for one or more types during the guest’s stay, leading to overbooking or the need for alternative arrangements.

Viewing 7311 - 7320 interview questions

Glassdoor has 9,196 interview questions and reports from Backend developer interviews. Prepare for your interview. Get hired. Love your job.