0% found this document useful (0 votes)
10 views

Solution Cs09 Week 06 Assignment 06

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Solution Cs09 Week 06 Assignment 06

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Week06: Assignment 06

1. Cassandra uses ________ to discover location and state information.


Snitch
Gossip protocol
Patition Manager
Distributed Hash tables

Explanation:
Cassandra uses a Gossip protocol called to discover location and state information.

2. Match the following

List 1:
1. Consistency
2. Availability
3. Partition-tolerance

List 2:
A. All nodes see same data at any time, or reads return latest written value by any client.
B. The system continues to work in spite of network partitions
C. The system allows operations all the time, and operations return quickly.
1-A, 2-C, 3-B
1-A, 2-B, 3-C
1-C, 2-A, 3-B
1-C, 2-B, 3-A

Explanation:
CAP Theorem:

1. Consistency: All nodes see same data at any time, or reads return latest written value by
any client.

2. Availability: The system allows operations all the time, and operations return quickly.

3. Partition-tolerance: The system continues to work in spite of network partitions.

3. Choose the correct items for X, Y, and Z.


X is a free and open-source, distributed, wide column store, Y database management system designed to
handle large amounts of data across many commodity servers, providing high availability with no Z.
X- Apache Cassandra, Y- SQL, Z- single point of failure
X- Hbase, Y- NoSQL, Z- failure
X- Zookeeper, Y- NoSQL, Z- multiple failure
X- Apache Cassandra, Y- NoSQL, Z- single point of failure

Explanation:
Apache Cassandra is a free and open-source, distributed, wide
column store, NoSQL database management system designed to handle large
amounts of data across many commodity servers, providing high availability with no
single point of failure.

4. A small chunk of data residing in one machine which is part of a cluster of machines holding one Hbase
table is known as _____.
Rowarea
Tablearea
Split
Region

Explanation:
Answer: Region

5. Choose the correct items for X, Y, and Z.


X in HBase Table is a combination of row, Y, Z and contains a value and a timestamp.
X- Row, Y- row family, Z- row qualifier
X- Cell, Y- column family, Z- column qualifier
X- Row, Y- rowkey, Z- column qualifier
X- Rowkey, Y- column family, Z- column qualifier

Explanation:
Cell in HBase Table is a combination of row, column family, column
qualifier and contains a value and a timestamp

6. In Cassandra, ____ maps IPs to racks and data centers configured in cassandra.yaml config file.
Client requests
Partitioner
Snitch
Distributed Hash tables

Explanation:
Answer: snitch

7. Cell in HBase Table is a combination of ____ .


Row and column family
Row, column family and column qualifier
Row, column family, column qualifier and row keys
Row, column family, column qualifier and contains a value and a timestamp

Explanation:
Answer: Row, column family, column qualifier and contains a value and a timestamp

8. ______ is a memory cache to store the in memory copy of the data. It accumulates writes and provides
read for data which are not yet stored to disk.
Distributed Hash tables
Collection
SSTable
Memtable

Explanation:
Cassandra uses memtables as an in-memory cache to store incoming writes.
These are later stored to disk when they are flushed.

9. Consider the following statements:


Statement 1: Scale out means grow your cluster capacity by replacing with more powerful machines.
Statement 2: Scale up means incrementally grow your cluster capacity by adding more COTS machines
(Components Off the Shelf).
Only statement 2 is true
Only statement 1 is true
Both statements are true
Both statements are false

Explanation:
The correct statements are:
Scale up: grow your cluster capacity by replacing with more powerful machines
Scale out: incrementally grow your cluster capacity by adding more COTS machines
(Components Off the Shelf)

10. HBase is a distributed ________ database built on top of the Hadoop file system.
Row-oriented
Tuple-oriented
Column-oriented
None of the mentioned

Explanation:
Answer: Column-oriented

You might also like