Question : Which statement is correct regarding the Put operation for inserting the data 1. It doen not replace existing Cell 2. Always creates a new versions of the Cell 3. Default version is the Server's currentTimeMillis 4. Versions can be specified on a per-column basis 5. All of the above
Correct Answer : 5
Put inserts data Does not "replace" an existing cell Always creates a new version of the cell Default version is the servers currentTimeMillis Versions can be specified on a per-column basis
Question : Which of the code segment can be used to explicitely set the version time as
1. put.add(Bytes.toBytes("cf"), Bytes.toBytes("attr1"), 777, Bytes.toBytes(data)); 2. put.add(Bytes.toBytes("cf"), Bytes.toBytes("attr1"), "777", Bytes.toBytes(data)); 3. put.add(Bytes.toBytes("cf"), Bytes.toBytes("attr1"), Bytes.toBytes(data), "777"); 4. None of the above is correct
Correct Answer : 1
Version timestamp explicitly set to "777" Put put = new Put( Bytes.toBytes(row )); long explicitTimeInMs = 777; put.add(Bytes.toBytes("cf"), Bytes.toBytes("attr1"), explicitTimeInMs, Bytes.toBytes(data)); htable.put(put);
Question : Which statement is true regarding the data delete in HBase table
1. Deleted data is not immediately removed 2. Delete creates a tombstone marker 3. Tombstones masks the deleted values 4. Data is removed at major compaction 5. All of the above
Correct Answer : 5
Delete marks data has having been deleted Data is never modified in place Deleted data isnt immediately removed Delete creates a "tombstone marker" Tombstone masks the deleted values Data is removed at major compaction
1. Disabling block caching does not improve scan performance on the ARTICLE table.
2. When you disable block caching, you free up memory for MemStore which improves scan performance for ARTICLE table. 3. By disabling the block caching, it free up that memory for other operations. However, block caching would not help whether you diable or enable for scan operation. Because the entire table is 1TB and max available memory is 128GB, hence full table will not fit in 128GB 4. None of the above.