Correct Answer : Get Lastest Questions and Answer : Explanation: 1st value is : UUID 2nd Value is : time UUID 3rd Value is : text type 4th Value is : text type 5th value is : int type
Hence, based on this option 2 is correct.
Question : You have been given below table definitions CREATE TABLE HADOOPEXAM (
id uuid, t_id timeuuid, name text, description text, price int primary key (t_id));
Now you run the below query
Select * from HADOOPEXAM where name='Amit Jain'
What is the expected result? 1. It will successfully return all the rows, where name matches.
2. It will run successfully, but result set would be empty, saying this is not supported.
Correct Answer : Get Lastest Questions and Answer : Explanation: There is one constraint in Cassandra: any field you want to use in the where clause has to be the primary key of the table or there must be a secondary index on it. So you have to create an index to name and only after that you can use name in the where condition and you will get the result you were expecting.
Question : You have been given below table definition, which of the following is a partition key?
CREATE TABLE HADOOPEXAM (
id uuid, t_id timeuuid, name text, description text, price int primary key (t_id)); 1. ID