I believe the correct answer is A.
REFRESH is a parameter for ALTER PIPE
https://docs.snowflake.com/en/sql-reference/sql/alter-pipe.html
It is NOT a parameter for CREATE [OR REPLACE] Pipe.
https://docs.snowflake.com/en/sql-reference/sql/create-pipe.html
Further recreating a pipe resets history:
https://docs.snowflake.com/en/user-guide/data-load-snowpipe-manage.html#label-snowpipe-management-recreate-pipes
"Load History
The load history for Snowpipe operations is stored in the metadata of the pipe object. When a pipe is recreated, the load history is dropped. In general, this condition only affects users if they subsequently execute an ALTER PIPE … REFRESH statement on the pipe. Doing so could load duplicate data from staged files in the storage location for the pipe if the data was already loaded successfully and the files were not deleted subsequently."
The correct answer is D. All of the above.
When a Pipe is recreated using the CREATE OR REPLACE PIPE command:
The Pipe load history is reset to empty (A is true)
The REFRESH parameter is automatically set to TRUE (B is true)
Previously loaded files will be ignored (C is true)
Therefore, since all three statements (A, B, and C) are true, D "All of the above" is the correct answer. This is important to understand because recreating a pipe effectively gives you a fresh start - clearing history, refreshing the pipe, and ignoring previously processed files.
A. The Pipe load history is reset to empty
When you recreate a pipe using CREATE OR REPLACE PIPE, the load history for the pipe is reset, which means Snowflake will no longer have a record of the files that were previously processed by that pipe. This can affect how subsequent loads are handled, but the REFRESH parameter and handling of previously loaded files are not automatically impacted in the ways described by options B and C.
A is the correct ans.
Load History
The load history for Snowpipe operations is stored in the metadata of the pipe object. When a pipe is recreated, the load history is dropped. In general, this condition only affects users if they subsequently execute an ALTER PIPE … REFRESH statement on the pipe. Doing so could load duplicate data from staged files in the storage location for the pipe if the data was already loaded successfully and the files were not deleted subsequently.
D
When a Pipe is recreated using the CREATE OR REPLACE PIPE command, the load history is reset, the REFRESH parameter is set to TRUE, and previously loaded files are ignored.
D is correct
Recreating Pipes - Load History:(As per documentation)
The load history for Snowpipe operations is stored in the metadata of the pipe object. When a pipe is recreated, the load history is dropped. In general, this condition only affects users if they subsequently execute an ALTER PIPE … REFRESH statement on the pipe. Doing so could load duplicate data from staged files in the storage location for the pipe if the data was already loaded successfully and the files were not deleted subsequently.
https://docs.snowflake.com/en/user-guide/data-load-snowpipe-manage#label-snowpipe-management-recreate-pipes
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.
jjordan
Highly Voted 2 years, 10 months agokentucky13caa
Most Recent 2 days, 17 hours agojiriz
1 month, 2 weeks agoVLMBL_94
3 months, 1 week agoVLMBL_94
3 months, 1 week agoAnithec0der
4 months agoMallikharjuna452
4 months agopranalig
5 months agoPrashantGupta1616
5 months, 2 weeks ago_yyukta
8 months, 4 weeks agoBobFar
1 year, 1 month agoMarge23
1 year, 2 months agoPoornaChandraIn
1 year, 4 months agoshubtred
1 year, 5 months agokrishnak2244
1 year, 5 months agoVEEDOL
1 year, 5 months agoMayuri917233
1 year, 6 months ago