exam questions

Exam DP-600 All Questions

View all questions & answers for the DP-600 exam

Exam DP-600 topic 1 question 55 discussion

Actual exam question from Microsoft's DP-600
Question #: 55
Topic #: 1
[All DP-600 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a Fabric tenant that contains a new semantic model in OneLake.
You use a Fabric notebook to read the data into a Spark DataFrame.
You need to evaluate the data to calculate the min, max, mean, and standard deviation values for all the string and numeric columns.
Solution: You use the following PySpark expression:
df.show()
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
282b85d
6 months, 3 weeks ago
Selected Answer: B
Correct methods: Use df.describe().show() for basic statistics and df.agg() with appropriate functions (min, max, mean, stddev) for detailed statistics.
upvoted 3 times
...
stilferx
7 months, 1 week ago
Selected Answer: B
IMHO, NOOOOO df.show() - shows the data in the dataframe
upvoted 2 times
...
a_51
9 months ago
Selected Answer: B
Use describe
upvoted 2 times
...
XiltroX
9 months, 3 weeks ago
Selected Answer: B
df.summary() is the only right answer.
upvoted 1 times
...
SamuComqi
10 months ago
Selected Answer: B
The correct syntax is df.describe(). Sources: * describe --> https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.describe.html * show --> https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.show.html
upvoted 2 times
SamuComqi
10 months ago
Also df.summary() is a valid solution. Source ---> https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.summary.html
upvoted 1 times
...
...
Momoanwar
10 months ago
Selected Answer: B
No show is to display data
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...