Question 45: You have below tables defined with all the default Cassandra behavior. This table is empty

CREATE TABLE HADOOEXAM (

 COURSE_TITLE text,

COURSE_ADDED_YEAR int,

COURSE_ADDED_DATE timestamp,

COURSE_DETAIL text,

USER_ID UUID,

COURSE_ID TIMEUUID,

PRIMARY KEY ((COURSE_TITLE)));

Now you fire the following query

 

UPDATE HADOOEXAM

SET COURSE_DETAIL ='HadoopExam Learning Resources'

WHERE COURSE_TITLE='CASSANRA' ;

 

What would happen?

  1. It will throw error as there is no matching data
  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: Yes, it will insert a new record. As Cassandra default behavior does not do read before write.

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