exam questions

Exam DP-203 All Questions

View all questions & answers for the DP-203 exam

Exam DP-203 topic 2 question 92 discussion

Actual exam question from Microsoft's DP-203
Question #: 92
Topic #: 2
[All DP-203 Questions]

You are creating an Apache Spark job in Azure Databricks that will ingest JSON-formatted data.

You need to convert a nested JSON string into a DataFrame that will contain multiple rows.

Which Spark SQL function should you use?

  • A. explode
  • B. filter
  • C. coalesce
  • D. extract
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Rajcse03
Highly Voted 1 year, 9 months ago
Selected Answer: A
https://learn.microsoft.com/en-us/azure/databricks/kb/scala/flatten-nested-columns-dynamically
upvoted 6 times
Gikan
9 months ago
This example is for scala. SQL example like this: https://learn.microsoft.com/en-us/u-sql/statements-and-expressions/select/from/cross-apply/explode
upvoted 1 times
...
...
warre
Most Recent 9 months, 4 weeks ago
Selected Answer: A
The explode function in Spark SQL is used to transform an array or a map column into multiple rows, essentially "exploding" the nested structure
upvoted 2 times
...
hassexat
1 year, 1 month ago
Selected Answer: A
A is correct answer!
upvoted 1 times
...
kkk5566
1 year, 2 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
[Removed]
1 year, 9 months ago
Selected Answer: A
correct
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago