A Data Engineer needs to create a stage that will be used to ingest files from a Customer Relationship Management (CRM) system. These are the requirements for the stage: 1. Use of an internal named stage with different folders that will be the repositories for the files 2. The files must be encrypted by the cloud service hosting the Snowflake account when they arrive on the stage 3. The files will be queried later using pre-signed URLs 4. Ability to query a metadata list of all the unstructured files on the stage Which statement will meet these requirements? A. B. C. D.
Correct choice: A. An internal named stage (no URL) with ENCRYPTION = (TYPE = 'SNOWFLAKE_SSE') gives server-side encryption by the cloud service on arrival, which Snowflake requires when files will be accessed via pre-signed URLs; DIRECTORY = (ENABLE = TRUE ...) provides the directory table to query metadata of the unstructured files. B uses SNOWFLAKE_FULL (client-side), C is an external S3 stage, and D disables the directory table.
Question 12
Which command will load all data successfully into the table named finance_dept_location? A. B. C. D.
Correct choice: A. It loads every row of finance.csv.gz with a simple column-reordering transformation. B adds VALIDATION_MODE, which only validates (and is not supported with transformations), so nothing is loaded; C limits the load to 100 rows; D filters rows with a WHERE clause, so not all data is loaded (and filtering is not supported in COPY transformations).
Question 13
A Data Engineer is designing a solution that will send report files generated and stored in a Snowflake stage to a customer, using email. The files can only be available for download for 60 minutes as new files will be generated and the old ones become obsolete. What is the recommended way to meet these requirements?
Share data using a scoped URL and the SYSTEM$SEND_EMAIL function.
Share data using pre-signed URL and the SYSTEM$SEND_EMAIL function.
Share data using a stage file URL and the SYSTEM$SEND_EMAIL function.
Share data using a scoped URL and write a custom Python script to send the email.
Answer: B. Share data using pre-signed URL and the SYSTEM$SEND_EMAIL function.