Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 971

What are the correct settings for column and element names, regardless of which notation is used while accessing elements in a JSON object?

    Correct Answer: B

    Both the column name and the element name are case-sensitive. When querying JSON data and accessing elements, the exact case must be matched for both the column names (attributes) and the element names (keys within JSON objects). This ensures that the queries return the correct results by matching the precise structure and naming of the data in the JSON object.

Discussion
VKROption: D

https://docs.snowflake.com/en/user-guide/json-basics-tutorial-query

0e504b5Option: D

D. The column name is case-insensitive and the element name is case-sensitive. https://docs.snowflake.com/en/user-guide/querying-semistructured Important Regardless of which notation you use, the column name is case-insensitive but element names are case-sensitive. For example, in the following list, the first two paths are equivalent, but the third is not: src:salesperson.name SRC:salesperson.name SRC:Salesperson.Name

mambamotaOption: C

Column Names (Attributes): When querying JSON data stored in a column, the column names (also known as attributes) are case-sensitive. You must match the exact case of the column name in your query. Element Names (Keys within JSON Objects): The keys or element names within the JSON objects are case-insensitive. This means you can access the JSON elements using any case (upper or lower) without affecting the query results.