Question : In which of the following scenario indexes should be avoided?
A. On high-cardinality columns B. In tables that use a counter column C. On a frequently updated or deleted column. D. To look for a row in a large partition unless narrowly queried
Correct Answer : Get Lastest Questions and Answer : Explanation: Do not use an index in these situations: On high-cardinality columns because you then query a huge volume of records for a small number of results. In tables that use a counter column On a frequently updated or deleted column. To look for a row in a large partition unless narrowly queried.
Question : You have a Books database with following columns
BOOK_TITEL BOOK_AUTHOR BOOK_PRIMARY_KEYWORD
Assume, each book is written by individual author and one author has written only one book. Its possible that primary keyword can be shared among various books. There are almost 10M books in this table. Which of the following is correct with regards to index? 1. You can create index on both BOOK_AUTHOR and BOOK_PRIMARY_KEYWORD
2. You can create index on BOOK_AUTHOR and avoid on BOOK_PRIMARY_KEYWORD
4. On millions record table, we should not have index any columns.
Correct Answer : Get Lastest Questions and Answer : Explanation: If you create an index on a high-cardinality column, which has many distinct values, a query between the fields will incur many seeks for very few results. In the table with a million books, looking up books by author a value that is unique for each book instead of by their keyword, is likely to be very inefficient.
Question : You must always create index to frequently updated or deleted column 1. True 2. False
Correct Answer : Get Lastest Questions and Answer : Explanation: : Cassandra stores tombstones in the index until the tombstone limit reaches 100K cells. After exceeding the tombstone limit, the query that uses the indexed value will fail.