Exam COF-C03 Topic 1 Question 610 Discussion
Actual exam question for Snowflake's COF-C03 exam
Question #: 610
Topic #: 1
Question #: 610
Topic #: 1
A JSON document is stored in the source_colum of type VARIANT. The document has an array called elements. The array contains the name key that has a string value How can a Snowflake user extract the name from the first element?
Suggested Answer: C Vote an answer
In Snowflake, when dealing with semi-structured data such as a JSON document stored in a VARIANT column, the proper syntax to extract a value is to use the column name followed by the path to the specific element. Since arrays in JSON are zero-indexed, the first element is referenced with [0]. Therefore, to extract the name from the first element of the elements array, the correct syntax is Source_column:elements[0].name.References: Snowflake Documentation on Semi-Structured Data
by rajanaveenkumarg at Apr 19, 2026, 12:46 AM
0
0
0
10
Comments
rajanaveenkumarg
2026-04-19 00:46:41Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).