🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Nothing, the timestamp keeps IDs unique
  2. B.Both can create the same ID in the same millisecond with the same sequence number
  3. C.Both servers stop creating IDs
  4. 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 →