Sobes.tech

What is composition and how does it differ from inheritance?

207

What is a collision and can it be eliminated?

180

How do you feel about supporting existing projects, are you willing to work on this?

168

How do you understand that the code is well executed? What criteria do you use?

160

What would you do if a colleague went on vacation and you are asked to finish their urgent project in 2 days, including weekends?

155

What are the principles of OOP in Python?

153

The screenshots contain Python code for an asynchronous function to create an order in a web service. The code involves: - Parsing JSON request data for user_id, items, and promo_code. - Calculating the total price of items. - Optionally applying a discount by calling an external discount service. - Inserting the order into a PostgreSQL database. - Reserving items by calling a warehouse service. - Publishing an order created event to a Kafka adapter. - Updating the order status to 'processed'. The task implied by the code is: "Implement an asynchronous API endpoint to create an order that: - Validates input data. - Calculates the total order price. - Applies a discount if a promo code is provided by calling an external discount service. - Inserts the order into a PostgreSQL database and retrieves the new order ID. - Calls a warehouse service to reserve the ordered items. - Publishes an order created event to a Kafka adapter. - Updates the order status to 'processed' in the database. - Handles potential errors such as discount service disconnection gracefully." No explicit question text is present, but the task is to implement or improve this order creation workflow with asynchronous calls, error handling, and database interaction.

143

What are indexes in databases used for? What do they represent? Why can't an index be created on all fields?

142

How did you proceed in your work — iteratively or in blocks?

141

What is at-least-once delivery and what does it guarantee?

141

Is there a project you are proud of? Why do you highlight it specifically?

141

How did you understand that something needed to be optimized? How did you evaluate performance in production?

140

What is MRO and how does it work?

138

Why do some employees perform quality work on time, while others do not?

136

What is a challenging project for you? How do you see your development?

134

Do you have experience working on projects from scratch?

133

What questions do you have about working conditions and further stages?

132

What happens if all metals are melted together?

131

How do metrics from PostgreSQL get into Grafana?

130
/3