Databricks Certified Associate Developer for Apache Spark 3.5-Python Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Question # 4 Topic 1 Discussion

Databricks Certified Associate Developer for Apache Spark 3.5-Python Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Question # 4 Topic 1 Discussion

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Exam Topic 1 Question 4 Discussion:
Question #: 4
Topic #: 1

A developer initializes a SparkSession:

Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Question 4

spark = SparkSession.builder \

.appName("Analytics Application") \

.getOrCreate()

Which statement describes thesparkSparkSession?


A.

ThegetOrCreate()method explicitly destroys any existing SparkSession and creates a new one.


B.

A SparkSession is unique for eachappName, and callinggetOrCreate()with the same name will return an existing SparkSession once it has been created.


C.

If a SparkSession already exists, this code will return the existing session instead of creating a new one.


D.

A new SparkSession is created every time thegetOrCreate()method is invoked.


Get Premium Databricks-Certified-Associate-Developer-for-Apache-Spark-3.5 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.