К содержанию
Вся база

Python Developer

€5 600 / мес

15 вопросов · 1 ч 55 мин · сложность высокая · Великобритания

00:001:55:18

Запись — после входа.

О чём разговор

Python parking system, DB locking and sharding, deployments, accommodation booking

Этапы

  1. 1Лайв-кодинг
  2. 2Техническое
  3. 3Системный дизайн

Все вопросы

  1. 20:03

    How do you know that this exception was triggered by not available spots?

    Код
  2. 37:21

    When you park a vehicle you also record the time, so it will be random too, right?

    Код
  3. 41:40

    You mentioned concurrency issues. Where would they be, and what would be the problem here?

    Технический
  4. 43:18

    What are some ways to manage concurrency in databases?

    Технический
  5. 46:17

    How can we optimize query performance in a relational database when we select by date from a large table?

    Технический
  6. 49:11

    What is replication, how is it different from sharding, and why would we use it?

    Технический
  7. 52:25

    How do you approach our task for the parking management system with DDD?

    Технический
  8. 54:43

    What deployment strategies do you know for deploying something reliably to production without affecting customers or running transactions?

    Технический
  9. 56:25

    What are some parts that are not easy to roll back after a deployment, and how would you deal with that?

    Технический
  10. 58:24

    How would you apply a migration that changes the id type of a huge table, when it might run for hours?

    Технический
  11. 1:02:45

    What do you do when your service calls the Jira API over HTTP and it fails?

    Технический
  12. 1:10:17

    How would you design a feature where users search for accommodation in the app, book it through a third-party API, and pay from their Revolut account?

    Системный дизайн
  13. 1:35:15

    Let's say I want to search accommodations near Paris, so how will that look?

    Системный дизайн
  14. 1:46:06

    What will happen if there is one last room left and two users try to book it at the same time?

    Системный дизайн
  15. 1:48:54

    How would you deploy this?

    Системный дизайн

Ключевые моменты

  1. 01:38

    Task setup: parking management system

  2. 23:11

    Adding vehicle exit and fee calculation

  3. 41:40

    Code review and concurrency

  4. 1:10:17

    Start of design interview: accommodation search

  5. 1:46:06

    Double booking of the last room

Отрывок из разговора

46:49
Interviewer

Can we add indexes for every field in the database?

46:51
Candidate

No, we can't because there's an overhead for updates, for inserts, for deletes because indexes basically, well most indexes are trees and insertion into a tree is a costly operation.

47:10
Interviewer

What are some other types that you know?

47:12
Candidate

Some use hashes which are good for comparing data. Some use block like aggregates for blocks of data. So like a max or min for a block of data. Which is good for when you have a database with timestamps.

47:42
Interviewer

So let's say it grows further and it's terabytes of data. What are some other ways to scale a relational database?

Что вынести

Two back-to-back interviews: a Python live-coding round and a system design round with the head of engineering. In the first, the candidate extended code and tests for a parking system (entry, exit, fee calculation), then discussed database locking, sharding, replication, DDD, deployment and migrations. The second asked for a design of accommodation search and booking with a third-party supplier and payment from a Revolut account; the outcome was a rejection.

Разбор собран по записи разговора.

Расшифровка

00:00
Interviewer

perfect uh so how are you today oh pretty good thank you how are you i'm so good so yeah we'll have a coding interview today uh so let me explain you the format uh first of all my name is name i be i am a height on senior python engineer i've been working with revolute for about four years and working mainly with backends, APIs, data, and stuff like that. So the format of the call, we're going to start from a coding problem. We're going to work on it for about 30 minutes, and then we will discuss different topics about production deployments and databases, and then you will have a chance to ask any questions you might have about working here about revolute like something for a developer and yeah i'd suggest to start maybe you can share the screen and then i'll share the problem and we'll discuss okay in a minute and yeah so the testing is very important so we want to cover everything with tests and also if If you can use TDD, if you're comfortable with it, please use it as well. And yeah, you are free to use any testing framework you want. And also, please disable any AI assistance you might have because we won't need them for this interview.

01:31
Candidate

Just one second. Yeah, I don't have it right now.

01:38
Interviewer

OK. So I just shared the user story just to give you the context. We are going to build a parking management system. So basically, this is like imagine multi-level parking garage. And they are going to build a system for the garage operator to track vehicles, entry and exits. This is the user story. You can copy it to your ID.

02:08
Candidate

Okay, thank you. Just a second for me to read it.

02:38
Interviewer

So, to make things easier for you, I shared also a skeleton for this service.

02:48
Candidate

Okay, thank you very much.

02:58
Interviewer

Feel free to change anything, but it should be a good baseline.

03:04
Candidate

Okay. Okay, so and for the first realization I don't have to concern myself with the threat safety or anything like that? Yeah, we can discuss it later if you see

03:29
Interviewer

any potential issues but yeah let's let's try to move fast okay you you you you you you you you you you you you you you you you you you you you you you you you you you you y o c c s t t t iet iet iet iet iet iet iet iet iet iet iet iet iet

03:44
Candidate

I have a right-side, I have a thing, I have a R-A-B, a T-A, a T-A, a T-A, a T-A, a T-A, a T-A, a T-A, a T-A, a T-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t-A, t

04:14
Interviewer

Thank you. Thank you. Thank you.

Дальше — после входа. Это бесплатно и займёт минуту.

Войти и читать

Похожие собеседования