nerdexam
Snowflake

SOL-C01 · Question #204

You have a table 'CUSTOMER REVIEWS' with a column 'REVIEW TEXT containing unstructured customer feedback. You want to use CLASSIFY TEXT to categorize these reviews into predefined categories like 'Pro

Sign in or unlock SOL-C01 to reveal the answer and full explanation for question #204. The question stem and answer options stay visible for context.

Querying and Performance

Question

You have a table 'CUSTOMER REVIEWS' with a column 'REVIEW TEXT containing unstructured customer feedback. You want to use CLASSIFY TEXT to categorize these reviews into predefined categories like 'Product Quality', 'Customer Service', and 'Shipping'. You plan to create a materialized view to store the classifications for faster querying. Which of the following SQL statements is the most efficient and correct way to achieve this using CLASSIFY TEXT, assuming the function has already been granted usage privileges?

Options

  • ACREATE MATERIALIZED VIEW CLASSIFIED_REVIEWS AS SELECT REVIEW_TEXT, 'Product
  • BCREATE MATERIALIZED VIEW CLASSIFIED_REVIEWS AS SELECT REVIEW_TEXT, Quality',
  • CCREATE MATERIALIZED VIEW CLASSIFIED_REVIEWS AS SELECT REVIEW_TEXT, OBJECT
  • DCREATE MATERIALIZED VIEW CLASSIFIED_REVIEWS AS SELECT REVIEW_TEXT, Quality",
  • ECREATE MATERIALIZED VIEW CLASSIFIED_REVIEWS AS SELECT REVIEW_TEXT, ['Product

Unlock SOL-C01 to see the answer

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

#CLASSIFY TEXT#Materialized Views#Snowflake Cortex AI#Array Construction
Full SOL-C01 Practice