<div dir="ltr" style="text-align: justify;" trbidi="on"><b>1.When is the earliest point at which the reduce method of a given Reducer can be called?</b><br />
A. As soon as at least one mapper has finished processing its input split.<br />
B. As soon as a mapper has emitted at least one record.<br />
C. Not until all mappers have finished processing all records.<br />
D. It depends on the InputFormat used for the job.</p>
<p><b>Answer: C</b></p>
<p>
<b>2.Which describes how a client reads a file from HDFS?</b><br />
A. The client queries the NameNode for the block location(s). The NameNode returns the block<br />
location(s) to the client. The client reads the data directory off the DataNode(s).<br />
B. The client queries all DataNodes in parallel. The DataNode that contains the requested data<br />
responds directly to the client. The client reads the data directly off the DataNode.<br />
C. The client contacts the NameNode for the block location(s). The NameNode then queries the<br />
DataNodes for block locations. The DataNodes respond to the NameNode, and the NameNode<br />
redirects the client to the DataNode that holds the requested data block(s). The client then reads<br />
the data directly off the DataNode.<br />
D. The client contacts the NameNode for the block location(s). The NameNode contacts the<br />
DataNode that holds the requested data block. Data is transferred from the DataNode to the<br />
NameNode, and then from the NameNode to the client.</p>
<div align='center' id="ads-id"></div>
<p><b>Answer: A</b></p>
<p><b>3.You are developing a combiner that takes as input Text keys, IntWritable values, and emits Text</b><br />
<b>keys, IntWritable values. Which interface should your class implement?</b><br />
A. Combiner <br />
B. Mapper <br />
C. Reducer <br />
D. Reducer <br />
E. Combiner <br />
 ;<br />
<b>Answer: D</b></p>
<p><b>4.Indentify the utility that allows you to create and run MapReduce jobs with any executable or script as the mapper and/or the reducer?</b><br />
A. Oozie<br />
B. Sqoop<br />
C. Flume<br />
D. Hadoop Streaming<br />
E. mapred<br />
 ;<br />
<b>Answer: D</b></p>
<p>
<b>5.How are keys and values presented and passed to the reducers during a standard sort and shuffle phase of MapReduce?</b><br />
A. Keys are presented to reducer in sorted order; values for a given key are not sorted.<br />
B. Keys are presented to reducer in sorted order; values for a given key are sorted in ascending<br />
order.<br />
C. Keys are presented to a reducer in random order; values for a given key are not sorted.<br />
D. Keys are presented to a reducer in random order; values for a given key are sorted in<br />
ascending order.<br />
 ;<br />
<b>Answer: A</b></p>
<p><b>6.Assuming default settings, which best describes the order of data provided to a reducer’s reduce<br />
method:</b><br />
A. The keys given to a reducer aren’t in a predictable order, but the values associated with those<br />
keys always are.<br />
B. Both the keys and values passed to a reducer always appear in sorted order.<br />
C. Neither keys nor values are in any predictable order.<br />
D. The keys given to a reducer are in sorted order but the values associated with each key are in<br />
no predictable order<br />
 ;<br />
<b>Answer: D</b></p>
<p><b>7.You wrote a map function that throws a runtime exception when it encounters a control character<br />
in input data. The input supplied to your mapper contains twelve such characters totals, spread<br />
across five file splits. The first four file splits each have two control characters and the last split has four control characters. Indentify the number of failed task attempts you can expect when you run the job with mapred.max.map.attempts set to 4:</b><br />
A. You will have forty-eight failed task attempts<br />
B. You will have seventeen failed task attempts<br />
C. You will have five failed task attempts<br />
D. You will have twelve failed task attempts<br />
E. You will have twenty failed task attempts<br />
 ;<br />
<b>Answer: E</b></p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/serialization-in-java/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/understanding-big-data/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '188'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…