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

Which option gives time-sorted IDs that are globally unique, at the cost of 128 bits?

Which option gives time-sorted IDs that are globally unique, at the cost of 128 bits?

  1. A.UUID v4
  2. B.UUID v7
  3. C.Auto-increment
  4. D.MAX(id) + 1
Answer & explanation

Correct answer: UUID v7

UUID v7 starts with a millisecond timestamp, so it sorts by creation time.

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 →