Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.
Actual exam question for Snowflake's DAA-C01 exam Question #: 141 Topic #: 1
You are working with a Snowflake table called containing sales transactions. The table includes columns like 'transaction_id' (VARCHAR), 'product_id' (VARCHAR), 'transaction_date' (DATE), (NUMBER(10,2)), and (GEOGRAPHY). You need to perform the following data preparation tasks: 1. Clean the data: Remove transactions with less than or equal to 0. 2. Transform the data: Convert the 'customer_location' from GEOGRAPHY to a WKT string representation. 3. Enrich the data: Calculate the year and month from the 'transaction_date' and add them as new columns. 4. Mask the data: Partially mask the 'transaction_id' column to protect customer data by only displaying the last 4 digits of the ID. Considering performance and best practices, what is the MOST efficient way to achieve these transformations using Snowflake features? You need to achieve this in a single statement.
Options A and D are functionally equivalent and correct, they both performs the desired data cleansing, transformation, and enrichment in a single 'CREATE OR REPLACE TABLE' statement. The 'WHERE sales_amount > clause filters out invalid transactions. RIGHT(transaction_id, 4) masks the transaction ID. YEAR() and MONTH() extract the year and month from the date, and ST_ASTEXT() converts the GEOGRAPHY object to a WKT string. Option B uses HASH, but the question asks for partially masking so HASH isn't suitable. Option C uses CASE, that is not required. Option E makes use of SYSTEM$MASK, function which masks the entire column value, that isn't what the questions asks.
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.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).