최신 Associate-Developer-Apache-Spark 무료덤프 - Databricks Certified Associate Developer for Apache Spark 3.0

Which of the following code blocks returns a 2-column DataFrame that shows the distinct values in column productId and the number of rows with that productId in DataFrame transactionsDf?

정답: D
설명: (DumpTOP 회원만 볼 수 있음)
The code block displayed below contains an error. The code block is intended to return all columns of DataFrame transactionsDf except for columns predError, productId, and value. Find the error.
Excerpt of DataFrame transactionsDf:
transactionsDf.select(~col("predError"), ~col("productId"), ~col("value"))

정답: A
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following describes characteristics of the Spark driver?

정답: C
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following describes characteristics of the Spark UI?

정답: D
설명: (DumpTOP 회원만 볼 수 있음)
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?

정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following code blocks applies the Python function to_limit on column predError in table transactionsDf, returning a DataFrame with columns transactionId and result?

정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following code blocks returns all unique values of column storeId in DataFrame transactionsDf?

정답: C
설명: (DumpTOP 회원만 볼 수 있음)
The code block displayed below contains an error. The code block should return a DataFrame in which column predErrorAdded contains the results of Python function add_2_if_geq_3 as applied to numeric and nullable column predError in DataFrame transactionsDf. Find the error.
Code block:
1.def add_2_if_geq_3(x):
2. if x is None:
3. return x
4. elif x >= 3:
5. return x+2
6. return x
7.
8.add_2_if_geq_3_udf = udf(add_2_if_geq_3)
9.
10.transactionsDf.withColumnRenamed("predErrorAdded", add_2_if_geq_3_udf(col("predError")))

정답: B
설명: (DumpTOP 회원만 볼 수 있음)
The code block displayed below contains an error. The code block should count the number of rows that have a predError of either 3 or 6. Find the error.
Code block:
transactionsDf.filter(col('predError').in([3, 6])).count()

정답: A
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following code blocks can be used to save DataFrame transactionsDf to memory only, recalculating partitions that do not fit in memory when they are needed?

정답: F
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following statements about storage levels is incorrect?

정답: D
설명: (DumpTOP 회원만 볼 수 있음)

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기