exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 1308 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 1308
Topic #: 1
[All SnowPro Core Questions]

Which configuration of the function PARSE_JSON( [expr] ) will retrieve a valid SQL NULL value?

  • A. SELECT parse_json(NULL)
  • B. SELECT parse_json('null')
  • C. SELECT parse_json('[ null ]')
  • D. SELECT parse_json('{"a": null}'):a
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bor4un
3 months, 2 weeks ago
Selected Answer: A
Tried in Snowflake myself: select NULL, parse_json(NULL);
upvoted 2 times
...
Damu123
3 months, 3 weeks ago
Selected Answer: A
If the input is NULL, the output is also NULL. However, if the input string is 'null', then it is interpreted as a JSON null value so that the result isn’t SQL NULL, but instead a valid VARIANT value containing null https://docs.snowflake.com/en/sql-reference/functions/parse_json
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting 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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago