Q27
Single choice
A data engineer has a PySpark DataFrame events_df which contains a nested device struct, which itself includes a nested location struct, as shown:

The goal is to flatten the nested fields into root-level columns while keeping the event identifiers and timestamp.
Which PySpark expression achieves this?



