🎙 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 6 of 15

A generator's clock is moved back 5 ms by NTP. What should a safe Snowflake generator do?

A generator's clock is moved back 5 ms by NTP. What should a safe Snowflake generator do?

  1. A.Keep generating with the older time
  2. B.Reset the sequence to 0 and continue
  3. C.Wait until the clock passes the last used time (or refuse), and alert if the jump is large
  4. D.Switch to a random machine id
Answer & explanation

Correct answer: Wait until the clock passes the last used time (or refuse), and alert if the jump is large

Reusing old timestamps could repeat old IDs.

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 →