View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 281. Which Spark SQL function can return the position of the first occurrence of a value inside an array? array_position() 2. element_at() 3. array_contains() 4. size() Correct Answer: 1. array_position() Explanation: array_position() returns the position of the first […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 261. A developer wants to combine two DataFrames by column name and allow missing columns to be filled with null values. Which operation is most appropriate? union() 2. unionByName(…, allowMissingColumns=True) 3. crossJoin() 4. left_outer join Correct Answer: 2. […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 241. A developer needs to create a running total of sales within each customer while ordering transactions by transaction date. Which Spark feature is most appropriate? Window specification with an aggregation 2. crossJoin() 3. collect_set() 4. repartition() only […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 221. A developer joins a very large DataFrame with a small lookup DataFrame that can comfortably fit in executor memory. Which technique can reduce shuffle overhead? Repartition both DataFrames to one partition 2. Broadcast the smaller DataFrame 3. […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 201. A developer needs to calculate the Pearson correlation coefficient between two numeric columns in a Spark DataFrame. Which DataFrame method is most appropriate? approxQuantile() 2. corr() 3. covariance() 4. describe() Correct Answer: 2. corr() Explanation: corr() calculates […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 181. Which Spark SQL function converts all alphabetic characters in a string to lowercase? initcap() 2. lower() 3. upper() 4. trim() Correct Answer: 2. lower() Explanation: lower() converts alphabetic characters in a string expression to lowercase. It is […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 161. Which Spark SQL function can be used to return the minimum value from a column? max() 2. min() 3. avg() 4. sum() Correct Answer: 2. min() Explanation: min() returns the smallest value from a specified column or […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 141. Which DataFrame method can persist data using a specific storage level? persist() 2. explain() 3. repartition() 4. describe() Correct Answer: 1. persist() Explanation: persist() allows a DataFrame to be stored using a chosen storage level, such as […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 121. Which Spark SQL function checks whether two arrays have at least one element in common? arrays_overlap() 2. array_union() 3. array_except() 4. flatten() Correct Answer: 1. arrays_overlap() Explanation: arrays_overlap() returns a Boolean result indicating whether two arrays share […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 101. Which Spark SQL function can return the month number from a date or timestamp column? month() 2. months_between() 3. add_months() 4. date_format() Correct Answer: 1. month() Explanation: month() extracts the month number from a date or timestamp […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 81. Which DataFrame method is used to inspect the schema of a DataFrame in a tree-like format? printSchema() 2. describe() 3. explain() 4. summary() Correct Answer: 1. printSchema() Explanation: printSchema() displays the structure of a DataFrame, including column […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 61. Which Spark SQL function is used to return the first non-null value from a list of expressions? coalesce() 2. collect_list() 3. first() 4. nvl2() Correct Answer: 1. coalesce() Explanation: The coalesce() SQL function returns the first non-null […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 41. Which DataFrame method is commonly used to remove rows containing null values? na.drop() 2. repartition() 3. explain() 4. union() Correct Answer: 1. na.drop() Explanation: na.drop() removes rows containing null values according to the specified options. It can […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 21. Which DataFrame method is most appropriate for renaming an existing column? withColumnRenamed() 2. repartition() 3. persist() 4. orderBy() Correct Answer: 1. withColumnRenamed() Explanation: withColumnRenamed() is used to rename an existing DataFrame column while returning a new DataFrame. […]
View Full Databricks Certified Associate Developer for Apache Spark Exam Dumps and Practice Test Dumps Question 1. Which Spark API is primarily used to represent structured data organized into named columns? RDD 2. Broadcast variable 3. DataFrame 4. SparkContext Correct Answer: 3. DataFrame Explanation: A DataFrame represents distributed structured data organized into named columns, […]