← Quiz: Unique ID Generator: all 15 questions
Quiz: Unique ID Generator · Question 5 of 15
Two Snowflake servers were accidentally given the same machine id. What can happen?
Two Snowflake servers were accidentally given the same machine id. What can happen?
- A.Nothing, the timestamp keeps IDs unique
- B.Both can create the same ID in the same millisecond with the same sequence number
- C.Both servers stop creating IDs
- D.IDs become 128-bit
Answer & explanation
Correct answer: Both can create the same ID in the same millisecond with the same sequence number
Uniqueness depends on time + machine + sequence; equal machine ids remove one of the guarantees.
Can you get the rest right without peeking?
Take the timed Quiz: Unique ID Generator quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →