🌍 All Study GuidesπŸ“Š DashboardπŸ“° BlogπŸ’‘ About
Coursera Microsoft Azure Data Scientist Associate (DP-100) β€’ STUDY MODE

PRACTICE QUIZ: KNOWLEDGE CHECK 1

QUESTION 1 OF 4

How do you list files in DBFS within a notebook?

A
%fs dir /my-file-path
B
ls /my-file-path
C
%fs ls /my-file-pathCorrect Answer
QUESTION 2 OF 4

How do you infer the data types and column names when you read a JSON file?

A
spark.read.inferSchema(“true”).json(jsonFile)*
B
spark.read.option(“inferData”, “true”).json(jsonFile)
C
spark.read.option(“inferSchema”, “true”).json(jsonFile)Correct Answer
QUESTION 3 OF 4

Which of the following SparkSession functions returns a DataFrameReader

A
createDataFrame(..)
B
emptyDataFrame(..)
C
read(..)Correct Answer
D
readStream(..)
QUESTION 4 OF 4

When using a notebook and a spark session. We can read a CSV file. Which of the following can be used to view the first couple thousand characters of a file?

A
%fs dir /mnt/training/wikipedia/pageviews/
B
%fs ls /mnt/training/wikipedia/pageviews/
C
%fs head /mnt/training/wikipedia/pageviews/pageviews_by_second.tsvCorrect Answer

Ready to test your recall?

How do you list files in DBFS within a notebook?

A
%fs dir /my-file-path
B
ls /my-file-path
C
%fs ls /my-file-path

How confident are you in this answer?