nerdexam
Databricks

CERTIFIED-DATA-ANALYST-ASSOCIATE · Question #85

A data analyst is working with a nested array column products in table transactions. The analyst wants to return the first item in the array for each row. The data analyst is using the following incom

Sign in or unlock CERTIFIED-DATA-ANALYST-ASSOCIATE to reveal the answer and full explanation for question #85. The question stem and answer options stay visible for context.

Question

A data analyst is working with a nested array column products in table transactions. The analyst wants to return the first item in the array for each row. The data analyst is using the following incomplete command:

Which lines of code should the data analyst use to fill in the blank in the above code block so that it successfully completes the task?

Options

  • Aproducts.1
  • Cproducts[0]
  • Dproducts[1]

Unlock CERTIFIED-DATA-ANALYST-ASSOCIATE to see the answer

You've previewed enough free CERTIFIED-DATA-ANALYST-ASSOCIATE questions. Unlock CERTIFIED-DATA-ANALYST-ASSOCIATE for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full CERTIFIED-DATA-ANALYST-ASSOCIATE Practice