Question 211 · 219 in bank
What happens if a developer registers two DataFrames with the same view name, myView using the createOrReplaceTempView function?
Show answer
Answer: D
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
What happens if a developer registers two DataFrames with the same view name, myView using the createOrReplaceTempView function?
Answer: D
A data engineer needs to control the size of micro-batches when running with the option of Available-now micro-batch. Which trigger should the engineer use?
Answer: C
How does the Directed Acyclic Graph (DAG) represent the execution hierarchy in Apache Spark™?
Answer: B
A data engineer has a PySpark DataFrame named sales_data containing millions of rows. They need to calculate the total sales amount grouped by region using Spark SQL for improved readability and maintainability. Which steps should the data engineer take to achieve this?
Answer: C
A data engineer has been inspecting one of their scheduled Spark applications which has started running slowly on the most recent executions. Looking at the query plan the engineer notices that Adaptive Query Execution (AQE) is no longer converting one of their join operations from a sort-merge join to a broadcast join, causing extra shuffling in the Spark job. What explains the change in the behaviour of the application?
Answer: A
A data scientist is working with a massive dataset that exceeds the memory capacity of a single machine. The data scientist is considering using Apache SparkTM instead of processing the data using traditional single-machine programming languages like standard Python scripts. Which two advantages does Apache SparkTM offer over a normal single-machine language in this scenario? (Choose two.)
Answer: BD
A data scientist at a large e-commerce company needs to process and analyze 2 TB of daily customer transaction data. The company wants to implement real-time fraud detection and personalized product recommendations. To process their data the company uses a traditional relational database system, which is struggling to handle the increasing data volume and velocity. Which feature of Apache Spark effectively addresses the challenge posed in this scenario?
Answer: C
A data engineer is investigating a Spark cluster that is experiencing underutilization during scheduled batch jobs. After checking the Spark logs, they noticed that tasks are often getting killed due to timeout errors, and there are several warnings about insufficient resources in the logs. Which action should the engineer take to resolve the underutilization issue?
Answer: C
A data engineer is working on num_df DataFrame: num_df = spark.range(5).toDF(“num”) The engineer is using the Python UDF: def cubefunc(val): return val ** 3 Which code fragment registers and uses this UDF as a Spark SQL function to work with the DataFrame num_df?
Answer: C
Keyboard:J Kmove between questionsA–Dselect an answerRshow or hide the answer← →change page
SPARK-DEV practice, question 211. 219 questions available.
Version 1.0.0. How we source questions