Question-194: You have Cassandra cluster setup using one datacenter having total 3 nodes in it. You created keyspace using the following command.

ALTER KEYSPACE HE_KEPSPACE WITH replication={‘class’ : ‘NetworkTopologyStrategy’ , ‘DC1’ : 1 , ‘DC2’ : 2}

 

Which of the following statement is true?

 

  1. This command would fail because there is only one datacenter and you have defined the two datacenters in the command.
  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

Ans: D

Exp: Yes, this command would successful even you don’t have two datacenter. This is one of the good strategies to preplan your Keyspace setup.

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