Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
10 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
9 months ago
ZZZ: -num-executors 50
upvoted 0 times
...
Luke
9 months ago
YYY : -executor-memory 20G
upvoted 0 times
...
Tandra
9 months ago
XXX: -master yarn
upvoted 0 times
...
Christiane
9 months ago
A) Solution
upvoted 0 times
...
...
Maddie
10 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
10 months ago
Solution B) -master yarn -executor-memory 40G -num-executors 80
upvoted 0 times
...
Nana
10 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
11 months ago
I think B is better because more memory and executors will improve performance.
upvoted 0 times
...
Lucy
11 months ago
I agree with Veronika, A seems to be the correct solution.
upvoted 0 times
...
Abraham
11 months 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
10 months ago
Yes, option A with 20GB memory per executor and 50 executors is the correct choice.
upvoted 0 times
...
Rocco
10 months ago
I agree, option A seems more appropriate for the given requirements.
upvoted 0 times
...
Shawnna
10 months ago
B) Solution
upvoted 0 times
...
Shenika
10 months ago
A) Solution
upvoted 0 times
...
...
Lenna
11 months ago
I disagree, I believe the answer is B.
upvoted 0 times
...
Jade
11 months 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
10 months ago
Option B has 40GB executor memory and 80 executors, so A is the right choice.
upvoted 0 times
...
Aleisha
10 months ago
Yeah, option A sets the executor memory to 20GB and the number of executors to 50.
upvoted 0 times
...
Quinn
10 months ago
I think the correct answer is A.
upvoted 0 times
...
Marcos
10 months ago
Option A is the best fit for the requirements given in the question.
upvoted 0 times
...
Francisca
10 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
11 months ago
I agree, option A is the correct solution.
upvoted 0 times
...
...
Veronika
11 months ago
I think the answer is A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77