Exam SnowPro Advanced Data Engineer All QuestionsBrowse all questions from this exam
Question 35

A Data Engineer wants to check the status of a pipe named my_pipe. The pipe is inside a database named test and a schema named Extract (case-sensitive).

Which query will provide the status of the pipe?

    Correct Answer: B

    To check the status of the pipe named my_pipe inside a database named test and a schema named Extract (which is case-sensitive), the correct query is: SELECT SYSTEM$PIPE_STATUS('test."Extract".my_pipe');. In Snowflake, object names that are case-sensitive need to be enclosed in double quotes. The function SYSTEM$PIPE_STATUS should be called with a string argument containing the full name of the pipe in the format 'database.schema.pipe', and single quotes are used around the entire string to format it correctly.

Discussion
stopthisnowOption: B

SELECT SYSTEM$PIPE_STATUS('mydb.myschema.mypipe');

SV1122

https://docs.snowflake.com/en/sql-reference/functions/system_pipe_status

prshntdxt7Option: B

The correct query to check the status of a pipe named my_pipe inside a database named test and a case-sensitive schema named Extract is: B. SELECT SYSTEM$PIPE_STATUS('test."Extract".my_pipe'); This query uses double quotes around the schema name "Extract" to ensure that the case sensitivity is preserved. Additionally, the single quotes around the pipe name my_pipe and the dot notation for specifying the database and schema are correct in Snowflake SQL syntax.