
Ultimate access to all questions.
You have a DataFrame df loaded from a JSON file with columns 'id', 'name', and 'age'. You need to create a temporary view named 'people_view' that can be used in subsequent SQL queries. How would you achieve this using PySpark?_
A
df.createOrReplaceTempView('people_view')_
B
df.createTempView('people_view')_
C
df.createOrReplaceGlobalTempView('people_view')_
D
df.createGlobalTempView('people_view')_