exam questions

Exam SnowPro Core All Questions

View all questions & answers for the SnowPro Core exam

Exam SnowPro Core topic 1 question 1193 discussion

Actual exam question from Snowflake's SnowPro Core
Question #: 1193
Topic #: 1
[All SnowPro Core Questions]

What happens to foreign key constraints when a table is cloned to another database?

  • A. All referenced tables will be cloned.
  • B. The cloned table will reference the primary key in the source table.
  • C. The cloned table will lose all references to the primary key.
  • D. The cloned table will lose all references to the foreign and primary keys
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ar_1510
2 weeks, 4 days ago
Selected Answer: B
Cloning and foreign key constraints A table can have a foreign key constraint that references a table that includes the primary key. When a table with a foreign key constraint is cloned, the cloned table references the source or cloned table that includes the primary key: If the database or schema containing both tables is cloned, the cloned table with the foreign key references the primary key in the other cloned table. If the tables are in separate databases or schemas, the cloned table references the primary key in the source table. https://docs.snowflake.com/en/user-guide/object-clone
upvoted 1 times
...
37ceea2
3 weeks, 1 day ago
Selected Answer: B
I changed my mind: https://docs.snowflake.com/en/user-guide/object-clone Cloning and foreign key constraints A table can have a foreign key constraint that references a table that includes the primary key. When a table with a foreign key constraint is cloned, the cloned table references the source or cloned table that includes the primary key: If the database or schema containing both tables is cloned, the cloned table with the foreign key references the primary key in the other cloned table. If the tables are in separate databases or schemas, the cloned table references the primary key in the source table. Hence, the answer is B, since the question does not mention that the both tables are cloned, within the same cloned database.
upvoted 2 times
...
37ceea2
3 weeks, 1 day ago
Selected Answer: D
Master data is lost when cloning, except the micro-partitioning of the source table. But, the question is about foreign key. hence, even if the C is correct, the real answer is D.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago