Certification Practice Test | PDF Questions | Actual Questions | Test Engine | Pass4Sure
HDPCD : Hortonworks Data Platform Certified Developer Exam

Hortonworks HDPCD Questions & Answers
Full Version: 108 Q&A
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
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 'data' 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: Rusell*****![]() ![]() ![]() ![]() ![]() Preparing for the hdpcd exam was a time-limited experience, but with the help of Killexams.com, I was able to breeze through all the stages. The brain practice tests provided by Killexams.com had a vast number of questions and answers that helped me plan within a short time. |
User: Sergei*****![]() ![]() ![]() ![]() ![]() I was able to answer all questions in the best half of the time during my HDPCD exam. The Killexams.com exam practice tests are an incredible deal for those looking for help in their exam preparation. With your great study and learning tools, I passed my HDPCD exam with suitable marks, and Its all due to the collaboration with their software program. |
User: Vitaly*****![]() ![]() ![]() ![]() ![]() I am grateful for Killexams.com superb answers and elements to exam questions. Their materials helped me understand the fundamentals and allowed me to attempt questions that were not direct. Without their question financial team, I may not have passed, but their questions and answers and last-day revision set were genuinely helpful. I had predicted a score of 90+, but ultimately scored 92%. Thank you, Killexams.com. |
User: Zoya*****![]() ![]() ![]() ![]() ![]() I am grateful to killexams.com for their mock test on HDPCD, which helped me pass the exam without any issues. I have also taken a mock test from them for my other exam, and I find it very beneficial. The questions and answers provided by killexams.com are very helpful, and their explanations are incredible. I would give them five stars for their excellent service. |
User: Wadim*****![]() ![]() ![]() ![]() ![]() Killexams.com is designed to help all students achieve success, and I am no exception. Purchasing the HDPCD exam guide proved to be the right decision, and using the HDPCD exam engine helped me score 92%. I am grateful for the team at Killexams.com for providing me with the resources I needed to succeed. |
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 VersionAll Hortonworks Exams
Hortonworks ExamsCertification and Entry Test Exams
Complete exam list