Storage and Protection Flashcards

1
Q

Micro-partitioning size

A

Micro-partitions are usually broken into 50-500mb each (prior to compression).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Metadata on micro-partitions

A
  • The range of values for columns in the micro-partition
  • The number of distinct values
  • Properties used for optimization and efficient query processing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Common Metadata Fields

A
  • Object Definitions

- Object Properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Object Definition Metadata

A
  • Policies
  • External Functions
  • View definitions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Object Properties Metadata

A
  • Object Name

- Object Column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How are metadata fields usually populated?

A

Using CREATE and ALTER statements for a given object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Stage Types in Snowflake

A
  • External Stages
  • User stages
  • Table stages
  • Internal named stages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

External Stages

A

Storage locations outside of Snowflake in another cloud storage location such as AWS/Azure/GCP. This allows for great flexibility for potential web hosting and ELT solutions prior to accessing the data in Snowflake.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

User stages

A

Personal storage locations assigned to each user. These stages are unique to the user and are internal to Snowflake.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Table stages

A

Storage locations held/associated with a table object. This is particularly useful when staging and loading data exclusively meant for that table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Internal Named Stage

A

Basically a custom defined stage internal to Snowflake within a database/schema.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

File Format

A

An object within Snowflake that stores format information required to load data into a table from a stage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

File Format Benefits

A

Because it is an object, it can be re-used within other objects/statements like across several different COPY statements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Snowflake Time Travel

A

Enables accessing historical data at any point within a defined period (90 days max).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Snowflake Time Travel benefits

A
  • Restoring data-related objects
  • Duplicating/backing up data from key points in the past
  • Analyzing data usage/manipulation over specified periods of time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Data Retention (with Time Travel) periods by edition?

A

Standard Edition - 24 hours

Enterprise - 90 days

17
Q

Data Retention Period for Transient and Temporary Objects?

A

Defaults to 24 hours, regardless of Snowflake edition

This can be altered though

18
Q

Fail Safe

A

Separate from Time Travel, Fail-safe ensures historical data is protected in the event of a system failure or other event.

Fail-safe is a 7 day period during which any historical data is recoverable by Snowflake. This period immediately starts after the Time Travel retention period ends.

19
Q

Is Fail-safe meant to be used as a back-up solution

A

No, it is a solution meant for recovery after a system failure or mistake.

20
Q

Can a Snowflake user/customer recover their data themselves with Fail-safe?

A

No, Snowflake must do this for them.

21
Q

Temporary/Transient Objects in Fail-safe?

A

Temporary and Transient objects are not recoverable with Fail safe.

22
Q

What Encryption Method/Algo does Snowflake use?

A

AES-256 bit encryption with a hierarchical key model rooted in a hardware security model.

23
Q

How often are keys rotated & rekeyed in Snowflake?

A

Keys are retired and rotated every 30 days, retired keys are then only used for decryption until they are destroyed 1 year after their creation. When retired keys are destroyed the data they protected is rekeyed with new keys.