Snowflake Related Exams
ARA-C01 Exam
A new table and streams are created with the following commands:
CREATE OR REPLACE TABLE LETTERS (ID INT, LETTER STRING) ;
CREATE OR REPLACE STREAM STREAM_1 ON TABLE LETTERS;
CREATE OR REPLACE STREAM STREAM_2 ON TABLE LETTERS APPEND_ONLY = TRUE;
The following operations are processed on the newly created table:
INSERT INTO LETTERS VALUES (1, 'A');
INSERT INTO LETTERS VALUES (2, 'B');
INSERT INTO LETTERS VALUES (3, 'C');
TRUNCATE TABLE LETTERS;
INSERT INTO LETTERS VALUES (4, 'D');
INSERT INTO LETTERS VALUES (5, 'E');
INSERT INTO LETTERS VALUES (6, 'F');
DELETE FROM LETTERS WHERE ID = 6;
What would be the output of the following SQL commands, in order?
SELECT COUNT (*) FROM STREAM_1;
SELECT COUNT (*) FROM STREAM_2;
An Architect has a table called leader_follower that contains a single column named JSON. The table has one row with the following structure:
{
"activities": [
{ "activityNumber": 1, "winner": 5 },
{ "activityNumber": 2, "winner": 4 }
],
"follower": {
"name": { "default": "Matt" },
"number": 4
},
"leader": {
"name": { "default": "Adam" },
"number": 5
}
}
Which query will produce the following results?
ACTIVITY_NUMBER
WINNER_NAME
1
Adam
2
Matt
What is a characteristic of loading data into Snowflake using the Snowflake Connector for Kafka?