Cloudera
DS-200 · Question #46
Given the following sample of numbers from a distribution: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 How do high-level languages like Apache Hive and Apache Pig efficiently calculate approximately…
The correct answer is C. They use pivots to assign each observations to the reducer that calculate each percentile. See the full explanation below for the reasoning.
Question
Given the following sample of numbers from a distribution:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 How do high-level languages like Apache Hive and Apache Pig efficiently calculate approximately percentiles for a distribution?
Options
- AThey sort all of the input samples and the lookup the samples for each percentile
- BThey maintain index of input data as it is loaded into HDFS and load them into memory
- CThey use pivots to assign each observations to the reducer that calculate each percentile
- DThey assign sample observations to buckets and then aggregate the buckets to compute the
How the community answered
(39 responses)- A8% (3)
- B13% (5)
- C77% (30)
- D3% (1)
Community Discussion
No community discussion yet for this question.