nerdexam
SnowflakeSnowflake

DEA-C02 · Question #28

DEA-C02 Question #28: Real Exam Question with Answer & Explanation

Sign in or unlock DEA-C02 to reveal the answer and full explanation for question #28. The question stem and answer options stay visible for context.

Data Transformation

Question

A Data Engineer has created table t1 with one column c1 with datatype VARIANT: create or replace table t1 (c1 variant); The Engineer has loaded the following JSON data set, which has information about 4 laptop models, into the table. The Engineer now wants to query that data set so that results are shown as normal structured data. The result should be 4 rows and 4 columns, without the double quotes surrounding the data elements in the JSON data. The result should be similar to the use case where the data was selected from a normal relational table t2, where t2 has string data type columns model_id, model, manufacturer, and model_name, and is queried with the SQL clause select * from t2; Which select command will produce the correct results? A. B. C. D.

Options

  • ASelect value:model_id::string , value:model::string , value:manufacturer::string , value:model_name::string from t1 , lateral flatten(input => c1);
  • BSelect value:model_id::string , value:model::string , value:manufacturer::string , value:model_name::string from t1 , lateral flatten(input => c1:device_model);
  • Cselect model_id::string , model::string , manufacturer::string , model_name::string from t1 , lateral flatten(input => c1:device_model);
  • Dselect value:model_id , value:model , value:manufacturer , value:model_name from t1 , lateral flatten(input => c1:device_model);

Unlock DEA-C02 to see the answer

You've previewed enough free DEA-C02 questions. Unlock DEA-C02 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.

Topics

#JSON querying#VARIANT data type#Semi-structured data processing#Data type casting
Full DEA-C02 PracticeBrowse All DEA-C02 Questions