Which of the following describes characteristics of the Dataset API?
A. The Dataset API does not support unstructured data.In which order should the code blocks shown below be run in order to create a table of all values in column attributes next to the respective values in column supplier in DataFrame itemsDf?
1.
itemsDf.createOrReplaceView("itemsDf")
2.
spark.sql("FROM itemsDf SELECT 'supplier', explode('Attributes')")
3.
spark.sql("FROM itemsDf SELECT supplier, explode(attributes)")
4.
itemsDf.createOrReplaceTempView("itemsDf")
A. 4, 3Which of the following code blocks reduces a DataFrame from 12 to 6 partitions and performs a full shuffle?
A. DataFrame.repartition(12)The code block shown below should return a copy of DataFrame transactionsDf without columns value and productId and with an additional column associateId that has the value 5. Choose the answer that correctly fills the blanks in the code block to accomplish this.
transactionsDf.__1__(__2__, __3__).__4__(__5__, 'value')
A. 1. withColumn 2. 'associateId' 3. 5 4. remove 5. 'productId'The code block shown below should store DataFrame transactionsDf on two different executors, utilizing the executors' memory as much as possible, but not writing anything to disk. Choose the answer that correctly fills the blanks in the code block to accomplish this.
1.from pyspark import StorageLevel 2.transactionsDf.__1__(StorageLevel.__2__).__3__
A. 1. cache 2. MEMORY_ONLY_2 3. count()Which of the following code blocks performs a join in which the small DataFrame transactionsDf is sent to all executors where it is joined with DataFrame itemsDf on columns storeId and itemId, respectively?
A. itemsDf.join(transactionsDf, itemsDf.itemId == transactionsDf.storeId, "right_outer")Which of the following code blocks returns a new DataFrame with the same columns as DataFrame transactionsDf, except for columns predError and value which should be removed?
A. transactionsDf.drop(["predError", "value"])The code block displayed below contains an error. The code block should configure Spark so that DataFrames up to a size of 20 MB will be broadcast to all worker nodes when performing a join.
Find the error.
Code block:
A. spark.conf.set("spark.sql.autoBroadcastJoinThreshold", 20)Which of the following code blocks returns a new DataFrame in which column attributes of DataFrame itemsDf is renamed to feature0 and column supplier to feature1?
A. itemsDf.withColumnRenamed(attributes, feature0).withColumnRenamed(supplier, feature1)Which of the following describes characteristics of the Spark driver?
A. The Spark driver requests the transformation of operations into DAG computations from the worker nodes.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Databricks exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DATABRICKS-CERTIFIED-ASSOCIATE-DEVELOPER-FOR-APACHE-SPARK exam preparations and Databricks certification application, do not hesitate to visit our Vcedump.com to find your solutions here.