Question 191 · 219 in bank
In the code block below, aggDf contains aggregations on a streaming DataFrame.
Which output mode at line 3 ensures that the entire result table is written to the console during each trigger execution?
Show answer
Answer: A
Databricks Certified Associate Developer for Apache Spark219 questions across 22 pages are complete and free, with no account or card.
219 questions in this bank
Free access · progress saved on this device
In the code block below, aggDf contains aggregations on a streaming DataFrame.
Which output mode at line 3 ensures that the entire result table is written to the console during each trigger execution?
Answer: A
A data engineer is running a Batch processing job on Spark Cluster with the following configuration: • 10 worker nodes • 16 CPU cores per worker node • 64 GB RAM per node The data engineer wants to allocate four executors per node, each executor using four cores. What is the total number of CPU cores used by the application?
Answer: C
A developer wants to test Spark Connect with an existing Spark application. What are the two alternative ways the developer can start a local Spark Connect server without changing their existing application code? (Choose two.)
Answer: BC
A Spark developer is developing a Spark application to monitor task performance across a cluster. One of the application’s requirements is to track the maximum processing time for tasks on each worker node and consolidate this information on the driver for further analysis. Which technique should the developer use to achieve this?
Answer: B
Which UDF implementation calculates the length of strings in a Spark DataFrame?
Answer: D
A Data Analyst is working on the sensor_df; this data frame contains two columns: a record_datetime: timestamp and record: array. Which code fragment returns a DataFrame that splits the record column into separate columns and has one array item per row?
Answer: B
A data engineer is building a Structured Streaming pipeline that streams data from a Kafka topic. While the priority is to have it run at a minimal latency, the engineer also wants to maintain an Exactly-Once processing guarantee in the pipeline. Which trigger mode should the engineer use for their writeStream?
Answer: A
What is a feature of Spark Connect?
Answer: B
A data scientist is working on a large dataset in Apache Spark using PySpark. The data scientist has a DataFrame df with columns ‘user_id’, 'product_id’, and ‘purchase_amount’ and needs to perform some operations on this data efficiently. Which sequence of operations results in transformations that require shuffle followed by transformations that do not?
Answer: A
A Spark engineer must select an appropriate deployment mode for the Spark jobs. What is the benefit of using cluster mode in Apache Spark™?
Answer: D
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
SPARK-DEV practice, question 191. 219 questions available.
Version 1.0.0. How we source questions