exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 979 discussion

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

Which command should be used to look into the validity of an XML object in Snowflake?

  • A. XMLGET
  • B. TO_XML
  • C. PARSE_XML
  • D. CHECK_XML
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
0e504b5
8 months, 3 weeks ago
Selected Answer: D
https://docs.snowflake.com/en/sql-reference/functions/check_xml PREVIEW FEATURE — OPEN Enabled for all accounts. Checks the validity of an XML document. If the input string is NULL or a valid XML document, the output is NULL. In case of an XML parsing error, the output string contains the error message.
upvoted 1 times
0e504b5
8 months, 3 weeks ago
Also see this one, it has a similar purpose, but it's for JSON: https://docs.snowflake.com/en/sql-reference/functions/check_json. Checks the validity of a JSON document. If the input string is a valid JSON document or a NULL, the output is NULL (i.e. no error). If the input cannot be translated to a valid JSON value, the output string contains the error message.
upvoted 1 times
...
...
Gwo
9 months ago
D. The CHECK_XML () function in Snowflake can be used to check the validity of an XML document. The expression STR => string_containing_xml should evaluate to a VARCHAR that contains valid XML.
upvoted 1 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