Hortonworks HDPCD Questions & Answers

Full Version: 108 Q&A


Latest HDPCD Exam Questions and Practice Tests 2024 - Killexams.com

Latest HDPCD Practice Tests with Actual Questions


Get Complete pool of questions with Premium PDF and Test Engine


Exam Code : HDPCD
Exam Name : Hortonworks Data Platform Certified Developer
Vendor Name :
"Hortonworks"








HDPCD Dumps HDPCD Braindumps HDPCD Real Questions HDPCD Practice Test

HDPCD Actual Questions


killexams.com Hortonworks HDPCD


Hortonworks Data Platform Certified Developer


https://killexams.com/pass4sure/exam-detail/HDPCD



Question: 97

You write MapReduce job to process 100 files in HDFS. Your MapReduce algorithm uses TextInputFormat: the mapper applies a regular expression over input values and emits key- values pairs with the key consisting of the matching text, and the value containing the filename and byte offset. Determine the difference between setting the number of reduces to one and settings the number of reducers to zero.


  1. There is no difference in output between the two settings.

  2. With zero reducers, no reducer runs and the job throws an exception. With one reducer, instances of matching patterns are stored in a single file on HDFS.

  3. With zero reducers, all instances of matching patterns are gathered together in one

    file on HDFS. With one reducer, instances of matching patterns are stored in multiple files on HDFS.

  4. With zero reducers, instances of matching patterns are stored in multiple files on

HDFS. With one reducer, all instances of matching patterns are gathered together in one file on HDFS.




Answer: D



Explanation:

  • It is legal to set the number of reduce-tasks to zero if no reduction is desired.

    In this case the outputs of the map-tasks go directly to the FileSystem, into the output path set by setOutputPath(Path). The framework does not sort the map-outputs before writing them out to the FileSystem.

  • Often, you may want to process input data using a map function only. To do this,

    simply set mapreduce.job.reduces to zero. The MapReduce framework will not create any reducer tasks. Rather, the outputs of the mapper tasks will be the final output of the job.

    Note: Reduce

    In this phase the reduce(WritableComparable, Iterator, OutputCollector, Reporter) method is called for each <key, (list of values)> pair in the grouped inputs.

    The output of the reduce task is typically written to the FileSystem via OutputCollector.collect(WritableComparable, Writable).

    Applications can use the Reporter to report progress, set application-level status messages and update Counters, or just indicate that they are alive.

    The output of the Reducer is not sorted.



    Question: 98

    Indentify the utility that allows you to create and run MapReduce jobs with any executable or script as the mapper and/or the reducer?


    1. Oozie

    2. Sqoop

    3. Flume

    4. Hadoop Streaming

    5. mapred




    Answer: D



    Explanation:

    Hadoop streaming is a utility that comes with the Hadoop distribution. The utility allows you to create and run Map/Reduce jobs with any executable or script as the mapper and/or the reducer.


    Reference:

    http://hadoop.apache.org/common/docs/r0.20.1/streaming.html (Hadoop Streaming, second sentence)



    Question: 99

    Which one of the following statements is true about a Hive-managed table?


    1. Records can only be added to the table using the Hive INSERT command.

    2. When the table is dropped, the underlying folder in HDFS is deleted.

    3. Hive dynamically defines the schema of the table based on the FROM clause of a SELECT query.

    4. Hive dynamically defines the schema of the table based on the format of the underlying data.




    Answer: B



    Question: 100

    You need to move a file titled “weblogs” into HDFS. When you try to copy the file, you can’t. You know you have ample space on your DataNodes. Which action should you take to relieve this situation and store more files in HDFS?


    1. Increase the block size on all current files in HDFS.

    2. Increase the block size on your remaining files.

    3. Decrease the block size on your remaining files.

    4. Increase the amount of memory for the NameNode.

    5. Increase the number of disks (or size) for the NameNode.


    6. Decrease the block size on all current files in HDFS.




    Answer: C



    Question: 101

    Which process describes the lifecycle of a Mapper?


    1. The JobTracker calls the TaskTracker’s configure () method, then its map () method and finally its close () method.

    2. The TaskTracker spawns a new Mapper to process all records in a single input split.

    3. The TaskTracker spawns a new Mapper to process each key-value pair.

    4. The JobTracker spawns a new Mapper to process all records in a single file.




    Answer: B



    Explanation:

    For each map instance that runs, the TaskTracker creates a new instance of your mapper.

    Note:

  • The Mapper is responsible for processing Key/Value pairs obtained from the InputFormat. The mapper may perform a number of Extraction and Transformation functions on the Key/Value pair before ultimately outputting none, one or many Key/Value pairs of the same, or different Key/Value type.

  • With the new Hadoop API, mappers extend the org.apache.hadoop.mapreduce.Mapper class. This class defines an 'Identity' map function by default - every input Key/Value pair obtained from the InputFormat is written out.

    Examining the run() method, we can see the lifecycle of the mapper:

    /**

  • Expert users can override this method for more complete control over the

  • execution of the Mapper.

  • @param context

  • @throws IOException

*/

public void run(Context context) throws IOException, InterruptedException { setup(context);

while (context.nextKeyValue()) {

map(context.getCurrentKey(), context.getCurrentValue(), context);

}

cleanup(context);


}


setup(Context) - Perform any setup for the mapper. The default implementation is a no-op method.

map(Key, Value, Context) - Perform a map operation in the given Key / Value pair. The default implementation calls Context.write(Key, Value)

cleanup(Context) - Perform any cleanup for the mapper. The default implementation

is a no-op method.


Reference:

Hadoop/MapReduce/Mapper



Question: 102

Which one of the following files is required in every Oozie Workflow application?


  1. job.properties

  2. Config-default.xml

  3. Workflow.xml

  4. Oozie.xml




Answer: C



Question: 103

Which one of the following statements is FALSE regarding the communication between DataNodes and a federation of NameNodes in Hadoop 2.2?


  1. Each DataNode receives commands from one designated master NameNode.

  2. DataNodes send periodic heartbeats to all the NameNodes.

  3. Each DataNode registers with all the NameNodes.

  4. DataNodes send periodic block reports to all the NameNodes.




Answer: A



Question: 104

In a MapReduce job with 500 map tasks, how many map task attempts will there be?


  1. It depends on the number of reduces in the job.

  2. Between 500 and 1000.

  3. At most 500.

  4. At least 500.

  5. Exactly 500.




Answer: D



Explanation:

From Cloudera Training Course:

Task attempt is a particular instance of an attempt to execute a task

  • There will be at least as many task attempts as there are tasks

  • If a task attempt fails, another will be started by the JobTracker

  • Speculative execution can also result in more task attempts than completed tasks



Question: 105

Review the following &apos;data&apos; file and Pig code.



Which one of the following statements is true?


  1. The Output Of the DUMP D command IS (M,{(M,62.95102),(M,38,95111)})

  2. The output of the dump d command is (M, {(38,95in),(62,95i02)})

  3. The code executes successfully but there is not output because the D relation is empty

  4. The code does not execute successfully because D is not a valid relation




Answer: A



Question: 106

Which one of the following is NOT a valid Oozie action?


  1. mapreduce

  2. pig

  3. hive

  4. mrunit




Answer: D



Question: 107

Examine the following Hive statements:



Assuming the statements above execute successfully, which one of the following statements is true?


  1. Each reducer generates a file sorted by age

  2. The SORT BY command causes only one reducer to be used

  3. The output of each reducer is only the age column

  4. The output is guaranteed to be a single file with all the data sorted by age




Answer: A



Question: 108

Your client application submits a MapReduce job to your Hadoop cluster. Identify the Hadoop daemon on which the Hadoop framework will look for an available slot schedule a MapReduce operation.


  1. TaskTracker

  2. NameNode

  3. DataNode

  4. JobTracker

  5. Secondary NameNode




Answer: D



Explanation:

JobTracker is the daemon service for submitting and tracking MapReduce jobs in Hadoop. There is only One Job Tracker process run on any hadoop cluster. Job Tracker runs on its own JVM process. In a typical production cluster its run on a separate machine. Each slave node is configured with job tracker node location. The JobTracker is single point of failure for the Hadoop MapReduce service. If it goes down, all running jobs are halted. JobTracker in Hadoop performs following actions(from Hadoop Wiki:)

Client applications submit jobs to the Job tracker.

The JobTracker talks to the NameNode to determine the location of the data

The JobTracker locates TaskTracker nodes with available slots at or near the data The JobTracker submits the work to the chosen TaskTracker nodes.

The TaskTracker nodes are monitored. If they do not submit heartbeat signals often enough, they are deemed to have failed and the work is scheduled on a different TaskTracker.

A TaskTracker will notify the JobTracker when a task fails. The JobTracker decides what to do then: it may resubmit the job elsewhere, it may mark that specific record as something to avoid, and it may may even blacklist the TaskTracker as unreliable. When the work is completed, the JobTracker updates its status. Client applications can poll the JobTracker for information.


Reference:

24 Interview Questions & Answers for Hadoop MapReduce developers, What is

a JobTracker in Hadoop? How many instances of JobTracker run on a Hadoop Cluster?


User: Luke*****

I have been living with my roommate for a long time, and we often have disagreements and arguments on several topics. However, we both agree that killexams.com is an excellent website to use if you want to pass your HDPCD exam. Both of us have used it and have been very happy with the results. Thanks to the guidance, I did well in my HDPCD exam, and my marks were certainly brilliant.
User: Yuriy*****

I did not rely solely on practice tests for my knowledge, but it did help me pass the hdpcd exam with Killexams.com. Despite being a below-average candidate, using Killexams.com effective material helped me succeed in the exam. I found the product so reliable and of high-quality that I plan to use it for my future tests. In fact, I got an impressive 98% score.
User: Helen*****

Using both Killexams.com Questions and Answers material and the hdpcd Exam Simulator was beneficial for me, as it helped me pass the hdpcd exam without any difficulty. The materials aided me in identifying my weaknesses, allowing me to improve my knowledge and spend adequate time on specific topics, which ultimately assisted my exam preparation. Best of luck to you.
User: Pushkin*****

Due to my limited time, I searched for a smooth way out before the hdpcd exam. I stumbled upon killexams.com question and answers, which made my day. The quick and pointed answers to all the likely questions helped me grasp the topics in a short time, and I was pleased to secure accurate marks in the exam. The materials were also easy to memorize, and I am inspired and satisfied with my result.
User: Liev*****

After failing the HDPCD exam once, I knew that I needed to work harder and smarter to obtain my certification. I used a decent e-book initially but continued practicing with Killexams.com, and it paid off. The second time around, I passed the exam with a solid score, thanks to Killexams.com exam-oriented approach. Although some of the questions seemed irrelevant, they covered everything I needed to know to succeed in the exam.

Features of iPass4sure HDPCD Exam

  • Files: PDF / Test Engine
  • Premium Access
  • Online Test Engine
  • Instant download Access
  • Comprehensive Q&A
  • Success Rate
  • Real Questions
  • Updated Regularly
  • Portable Files
  • Unlimited Download
  • 100% Secured
  • Confidentiality: 100%
  • Success Guarantee: 100%
  • Any Hidden Cost: $0.00
  • Auto Recharge: No
  • Updates Intimation: by Email
  • Technical Support: Free
  • PDF Compatibility: Windows, Android, iOS, Linux
  • Test Engine Compatibility: Mac / Windows / Android / iOS / Linux

Premium PDF with 108 Q&A

Get Full Version

All Hortonworks Exams

Hortonworks Exams

Certification and Entry Test Exams

Complete exam list