SNOWPRO-CORE practice question 9 of 35

Which REST API can be used with unstructured data?

Full set: 628 questions

Domain Performance Management

Answer options
A: inscrtFilcs
B: insertReport
C: GET /api/tiles/ Correct answer
D: loadHistoryScan
Correct Answer:
C. GET /api/tiles/
Explanation

Snowflake enables access to unstructured data files stored in stages through pre-signed URLs. The GETPRESIGNEDURL SQL function generates a temporary, secure URL for a specific file. A client application can then use this URL to download the file directly from cloud storage using a standard HTTP GET request.
Option C, GET /api/tiles/, represents this mechanism. While not a literal Snowflake API endpoint, it correctly illustrates the REST method (GET) used to retrieve the content of an unstructured data file via a pre-signed URL. The other options relate specifically to the Snowpipe data ingestion service, not general access.

Why Incorrect

A. inscrtFilcs: This appears to be a typo for insertFiles, an endpoint in the Snowpipe REST API used to trigger the loading of files into tables, not for general access or retrieval of the file's content.
B. insertReport: This is an endpoint in the Snowpipe REST API used to retrieve a report about files that have been queued for ingestion. It provides metadata, not access to the unstructured data itself.
D. loadHistoryScan: This is a Snowpipe REST API endpoint used to retrieve the history of data loaded through a specific pipe. It returns metadata about past loading operations, not the file content.

References

1. Snowflake Documentation - GETPRESIGNEDURL: "Generates a pre-signed URL to a staged file... The pre-signed URL can be used to download or access the file." This confirms that a URL is generated for access.

Source: Snowflake Documentation > SQL Reference > Functions > GETPRESIGNEDURL.

2. Snowflake Documentation - Downloading Files from a Stage: "You can download files from a Snowflake stage to a local directory/folder using the GET command." While GET is a SQL command, the underlying access mechanism for pre-signed URLs is an HTTP GET request.

Source: Snowflake Documentation > User Guide > Data Loading > Staging Files > GET.

3. Snowflake Documentation - Snowpipe REST API: This documentation details the endpoints for the Snowpipe service, including insertFiles, insertReport, and loadHistoryScan. The descriptions confirm these endpoints are for managing data ingestion, not for direct file access.

Source: Snowflake Documentation > User Guide > Data Loading > Snowpipe > Snowpipe REST API.

Scroll to Top