Databricks Certified Associate Developer for Apache Spark 3.5 - Python - Associate-Developer-Apache-Spark-3.5 Exam Practice Test

A Data Analyst needs to retrieve employees with 5 or more years of tenure.
Which code snippet filters and shows the list?
Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
A data engineer is building a Structured Streaming pipeline and wants the pipeline to recover from failures or intentional shutdowns by continuing where the pipeline left off.
How can this be achieved?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
6 of 55.
Which components of Apache Spark's Architecture are responsible for carrying out tasks when assigned to them?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
24 of 55.
Which code should be used to display the schema of the Parquet file stored in the location events.parquet?
Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
26 of 55.
A data scientist at an e-commerce company is working with user data obtained from its subscriber database and has stored the data in a DataFrame df_user.
Before further processing, the data scientist wants to create another DataFrame df_user_non_pii and store only the non-PII columns.
The PII columns in df_user are name, email, and birthdate.
Which code snippet can be used to meet this requirement?
Correct Answer: B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
What is the behavior for function date_sub(start, days) if a negative value is passed into the days parameter?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
30 of 55.
A data engineer is working on a num_df DataFrame and has a Python UDF defined as:
def cube_func(val):
return val * val * val
Which code fragment registers and uses this UDF as a Spark SQL function to work with the DataFrame num_df?
Correct Answer: C
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
0
0
0
0