Question 66
You have a Snowflake table named 'CUSTOMER DATA' with a VARIANT column called 'PROFILE. This 'PROFILE column contains nested JSON objects with customer attributes. You need to extract the customer's first name from the 'PROFILE and handle cases where the 'firstName' field might be missing (NULL). Which of the following methods is the most efficient and concise way to achieve this?
Question 67
You are using Snowpipe to continuously load data from an AWS S3 bucket into a Snowflake table called 'ORDERS. The data is in JSON format. You observe that Snowpipe is occasionally missing records, even though the S3 event notifications are being correctly sent to the Snowflake-managed SQS queue. Upon investigation, you discover that some JSON records are larger than the maximum size supported by Snowpipe for a single record (16MB). You need to implement a solution to handle these oversized JSON records without losing data,. Which of the following approaches is the most efficient and reliable?
