Big Data Computing Assignment 4 Answers 2021

Big Data Computing Assignment 4 Answers 2021:- We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

NPTEL ALL WEEK ASSIGNMENT ANSWERS:-

Q1. Identify the correct choices for the given scenarios:

P: The system allows operations all the time, and operations return quickly

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

R: The system continues to work in spite of network partitions 

(A) P: Consistency, Q: Availability, R: Partition tolerance 

(B) P: Availability, Q: Consistency, R: Partition tolerance 

(C) P: Partition tolerance, Q: Consistency, R: Availability 

(D) P: Consistency, Q: Partition tolerance, R: Availability

Ans:- (B) P: Availability, Q: Consistency, R: Partition tolerance 

Q2. Cassandra uses a protocol called __________________to discover location and state information about the other nodes participating in a Cassandra cluster. 

(A) Key-value 

(B) Memtable 

(C) Heartbeat 

(D) Gossip

Ans:- (D) Gossip

Q3. In Cassandra, ____________________ is used to specify data centers and the number of replicas to place within each data center. It attempts to place replicas on distinct racks to avoid the node failure and to ensure data availability. 

(A) Simple strategy 

(B) Quorum strategy 

(C) Network topology strategy 

(D) None of the mentioned

Ans:- (C) Network topology strategy 

Q4. True or False ?

A Snitch determines which data centers and racks nodes belong to. Snitches inform Cassandra about the network topology so that requests are routed efficiently and allows Cassandra to distribute replicas by grouping machines into data centers and racks. 

(A) True 

(B) False

Ans:- (A) True 

Q5. Consider the following statements:

Statement 1: In Cassandra, during a write operation, when hinted handoff is enabled and If any replica is down, the coordinator writes to all other replicas, and keeps the write locally until down replica comes back up.

Statement 2: In Cassandra, Ec2Snitch is important snitch for deployments and it is a simple snitch for Amazon EC2 deployments where all nodes are in a single region. In Ec2Snitch region name refers to data center and availability zone refers to rack in a cluster. 

(A) Only Statement 1 is true 

(B) Only Statement 2 is true 

(C) Both Statements are true 

(D) Both Statements are false

Ans:- (C) Both Statements are true 

Big Data Computing Assignment 4 Answers 2021:- We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

Q6. What is Eventual Consistency ? 

(A) At any time, the system is linearizable 

(B) If writes stop, all reads will return the same value after a while 

(C) At any time, concurrent reads from any node return the same values 

(D) If writes stop, a distributed system will become consistent

Ans:- For Answer Click Here

Q7. Consider the following statements:

Statement 1: When two processes are competing with each other causing data corruption, it is called deadlock

Statement 2: When two processes are waiting for each other directly or indirectly, it is called race condition 

(A) Only Statement 1 is true 

(B) Only Statement 2 is true 

(C) Both Statements are false 

(D) Both Statements are true

Ans:- (C) Both Statements are false 

Q8. ZooKeeper allows distributed processes to coordinate with each other through registers, known as ___________________ 

(A) znodes 

(B) hnodes 

(C) vnodes 

(D) rnodes

Ans:- (A) znodes 

Q9. In Zookeeper, when a _______ is triggered the client receives a packet saying that the znode has changed. 

(A) Event 

(B) Row 

(C) Watch 

(D) Value

Ans:- For Answer Click Here

Q10. Consider the Table temperature_details in Keyspace “day3” with schema as follows:

temperature_details(daynum, year,month,date,max_temp)
with primary key(daynum,year,month,date)

Big Data Computing 4

There exists same maximum temperature at different hours of the same day. Choose the correct CQL query to:

Alter table temperature_details to add a new column called “seasons”  using map of type <varint, text> represented as <month, season>. Season can have the following values season={spring, summer, autumn, winter}.

Update table temperature_details where columns daynum, year, month, date contain the following values- 4317,1955,7,26 respectively.

Use the select statement to output the row after updation.

Note: A map relates one item to another with a key-value pair. For each key, only one value may exist, and duplicates cannot be stored. Both the key and the value are designated with a data type.

(A) cqlsh:day3> alter table temperature_details add hours1 set<varint>;
cqlsh:day3> update temperature_details set hours1={1,5,9,13,5,9} where daynum=4317; cqlsh:day3> select * from temperature_details where daynum=4317; 

(B) cqlsh:day3> alter table temperature_details add seasons map<varint,text>;
cqlsh:day3> update temperature_details set seasons = seasons + {7:’spring’} where daynum=4317 and year =1955 and month = 7 and date=26;
cqlsh:day3> select * from temperature_details where daynum=4317 and year=1955 and month=7 and  date=26; 

(C) cqlsh:day3>alter table temperature_details add hours1 list<varint>;
cqlsh:day3> update temperature_details set hours1=[1,5,9,13,5,9] where daynum=4317 and year = 1955 and month = 7 and date=26;
cqlsh:day3> select * from temperature_details where daynum=4317 and year=1955 and month=7 and  date=26; 

(D) cqlsh:day3> alter table temperature_details add seasons map<month, season>;
cqlsh:day3> update temperature_details set seasons = seasons + {7:’spring’} where daynum=4317;
cqlsh:day3> select * from temperature_details where daynum=4317;

Ans:- B

Big Data Computing Assignment 4 Answers 2021:- We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

JOIN US ON YOUTUBE

Leave a Comment