Associate-Developer-Apache-Spark-3.5 Exam Question 1

A data engineer replaces the exact percentile() function with approx_percentile() to improve performance, but the results are drifting too far from expected values.
Which change should be made to solve the issue?
  • Associate-Developer-Apache-Spark-3.5 Exam Question 2

    A DataFrame df has columns name, age, and salary. The developer needs to sort the DataFrame by age in ascending order and salary in descending order.
    Which code snippet meets the requirement of the developer?
  • Associate-Developer-Apache-Spark-3.5 Exam Question 3

    A data engineer needs to persist a file-based data source to a specific location. However, by default, Spark writes to the warehouse directory (e.g., /user/hive/warehouse). To override this, the engineer must explicitly define the file path.
    Which line of code ensures the data is saved to a specific location?
    Options:
  • Associate-Developer-Apache-Spark-3.5 Exam Question 4

    A developer is working with a pandas DataFrame containing user behavior data from a web application.
    Which approach should be used for executing a groupBy operation in parallel across all workers in Apache Spark 3.5?
    A)
    Use the applylnPandas API
    B)

    C)

  • Associate-Developer-Apache-Spark-3.5 Exam Question 5

    17 of 55.
    A data engineer has noticed that upgrading the Spark version in their applications from Spark 3.0 to Spark 3.5 has improved the runtime of some scheduled Spark applications.
    Looking further, the data engineer realizes that Adaptive Query Execution (AQE) is now enabled.
    Which operation should AQE be implementing to automatically improve the Spark application performance?