Question 38: As you know, in Cassandra tables, must have primary keys. For primary key, you can use either TimeUUID or UUID only?

Which of the following you can say is a Timeuuid?

  1. 52b11d6d-16e2-4ee2-b2a9-425861b86ab6
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering Python Certification Material

Correct Answer: 2

Explanation: To differentiate between Time UUID, you need to check third set of data and its first value. If first value start with 1 than its time UUID and if starts with 4 than its UUID only.

The uuid() function takes no parameters and generates a random Type 4 UUID suitable for use in INSERT or UPDATE statements.

UUID and TIMEUUID are stored the same way in Cassandra, and they only really represent two different sorting implementations.

You can access to full explanation to question and answer from this page.