Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cloudera Exam CCA175 Topic 2 Question 66 Discussion

Actual exam question for Cloudera's CCA175 exam
Question #: 66
Topic #: 2
[All CCA175 Questions]

Problem Scenario 79 : You have been given MySQL DB with following details.

user=retail_dba

password=cloudera

database=retail_db

table=retail_db.orders

table=retail_db.order_items

jdbc URL = jdbc:mysql://quickstart:3306/retail_db

Columns of products table : (product_id | product categoryid | product_name | product_description | product_prtce | product_image )

Please accomplish following activities.

1. Copy "retaildb.products" table to hdfs in a directory p93_products

2. Filter out all the empty prices

3. Sort all the products based on price in both ascending as well as descending order.

4. Sort all the products based on price as well as product_id in descending order.

5. Use the below functions to do data ordering or ranking and fetch top 10 elements top()

takeOrdered() sortByKey()

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Davida
12 months ago
A is the way to go. I mean, 50 executors with 20GB each sounds like a party, but option B just sounds like a recipe for a memory management disaster.
upvoted 0 times
Gianna
10 months ago
ZZZ: -num-executors 50
upvoted 0 times
...
Luke
11 months ago
YYY : -executor-memory 20G
upvoted 0 times
...
Tandra
11 months ago
XXX: -master yarn
upvoted 0 times
...
Christiane
11 months ago
A) Solution
upvoted 0 times
...
...
Maddie
12 months ago
Haha, imagine trying to run a Spark app with 80 executors, each with 40GB of memory. That's like trying to fit an elephant in a shoebox!
upvoted 0 times
Staci
12 months ago
Solution B) -master yarn -executor-memory 40G -num-executors 80
upvoted 0 times
...
Nana
12 months ago
Haha, imagine trying to run a Spark app with 80 executors, each with 40GB of memory. That's like trying to fit an elephant in a shoebox!
upvoted 0 times
...
...
Lashunda
1 years ago
I think B is better because more memory and executors will improve performance.
upvoted 0 times
...
Lucy
1 years ago
I agree with Veronika, A seems to be the correct solution.
upvoted 0 times
...
Abraham
1 years ago
Option B doesn't seem right. Requesting 40GB of memory per executor and 80 executors is overkill for the given requirements.
upvoted 0 times
Refugia
12 months ago
Yes, option A with 20GB memory per executor and 50 executors is the correct choice.
upvoted 0 times
...
Rocco
12 months ago
I agree, option A seems more appropriate for the given requirements.
upvoted 0 times
...
Shawnna
12 months ago
B) Solution
upvoted 0 times
...
Shenika
1 years ago
A) Solution
upvoted 0 times
...
...
Lenna
1 years ago
I disagree, I believe the answer is B.
upvoted 0 times
...
Jade
1 years ago
I think the correct answer is A. The question specifically asks to set the executor memory to 20GB and the number of executors to 50, which matches the values in option A.
upvoted 0 times
Kimberely
12 months ago
Option B has 40GB executor memory and 80 executors, so A is the right choice.
upvoted 0 times
...
Aleisha
12 months ago
Yeah, option A sets the executor memory to 20GB and the number of executors to 50.
upvoted 0 times
...
Quinn
12 months ago
I think the correct answer is A.
upvoted 0 times
...
Marcos
12 months ago
Option A is the best fit for the requirements given in the question.
upvoted 0 times
...
Francisca
12 months ago
Yes, setting the executor memory to 20GB and number of executors to 50 is what the question asks for.
upvoted 0 times
...
Jutta
1 years ago
I agree, option A is the correct solution.
upvoted 0 times
...
...
Veronika
1 years ago
I think the answer is A.
upvoted 0 times
...

Save Cancel