Associate-Developer-Apache-Spark Exam Question 1

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:
  • Associate-Developer-Apache-Spark Exam Question 2

    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?
  • Associate-Developer-Apache-Spark Exam Question 3

    Which of the following statements about Spark's execution hierarchy is correct?
  • Associate-Developer-Apache-Spark Exam Question 4

    Which of the following describes characteristics of the Spark driver?
  • Associate-Developer-Apache-Spark Exam Question 5

    The code block shown below should return a single-column DataFrame with a column named consonant_ct that, for each row, shows the number of consonants in column itemName of DataFrame itemsDf. Choose the answer that correctly fills the blanks in the code block to accomplish this.
    DataFrame itemsDf:
    1.+------+----------------------------------+-----------------------------+-------------------+
    2.|itemId|itemName |attributes |supplier |
    3.+------+----------------------------------+-----------------------------+-------------------+
    4.|1 |Thick Coat for Walking in the Snow|[blue, winter, cozy] |Sports Company Inc.|
    5.|2 |Elegant Outdoors Summer Dress |[red, summer, fresh, cooling]|YetiX |
    6.|3 |Outdoors Backpack |[green, summer, travel] |Sports Company Inc.|
    7.+------+----------------------------------+-----------------------------+-------------------+ Code block:
    itemsDf.select(__1__(__2__(__3__(__4__), "a|e|i|o|u|\s", "")).__5__("consonant_ct"))