Data Architecture Flashcards

1
Q

Extension for primary data file is

A

.mdf

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

Extension of secondary data file

A

.ndf

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

Extension for log file

A

.ldf

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

Every database has 2 files

A

Primary file and log file

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

A data base will have 2 forms of databases

A

System database ( with 4 Master, Model, Msdb, Temp file) and User database

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

Instance 2 will have a different storage than the default T/F

A

True

One instant is independent on each other even if it run on the same server

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

How do you name the second or third instant

A

The file name back slash and the instance name
CR1WINPSQL01\Instance2

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

Data base is made up for 2 file

A

Primary and log file

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

Which database is where all the data will be stored in permanently

A

Primary database

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

Data is durable or permanent or committed means

A

It is stored in primary data file

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

Data file is made up of _______ and the size of each _____ is ______

A

Pages
The size of each page is 8KB =8192 Bytes
Bytes stands for one character on a keyboard a,b….

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

Data file is made up of

A

Pages

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

Data base objects are

A

Tables, view, function, stored procedure, triggers

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

When we different set of table it will be on

A

Table 2 and so forth

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

When 8 consecutive tables are occupied with the same content it is called

A

Uniform Extents

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

When 8 consecutive tables are filled with different contents they are called

A

Mixed extent

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

What is the size of an extent

A

An extent is 8 pages so it will be 8 KB times 8 kb which will be 64 KB

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

A page- 8 KB -there is 8192 However there is a cost - area that is used for other things. Those things are

A

Page header-96 Byte
Row offset- where the raw starts -36 Bytes
The actual body of the page - 8060 Bytes

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

Is it mandatory to have a log file ?

20
Q

Log file is where

A

Every action made on the data is stored

21
Q

Every file regardless of data file or log file it should have 5 things

A

Logical name
Physical name
Initial growth
File growth
Max size

22
Q

The name that is used to refer to the file

A

Logical name

23
Q

Check point

A

The point where SQL server check if there is a successful transaction and transfer it to the Data file.

24
Q

Should we always delete data from log file after every check point

A

It depends - on how critical the data is

25
Should we always delete data from log file after every check point
It depends - on how critical the data is
26
The three recovery models
Full Bulk load Simple
27
Which recovery is good for a critical data base
Full recovery
28
If a data is not too sensitive you can use which recovery
Simple
29
Who decides if the data will be on full recovery or simple recovery
The application owner ( AP owner)
30
What kind of recovery model do we use for Test or Developmental data base
Simple
31
When the log file is empty due to all the file being moved to the Data File
Truncated
32
Data gets backed up when frequently depends on
How critical the data is
33
Three types of Back ups in SQL
Full Differential Transactional
34
Complete back up of a data base is called
Full back up
35
Which back up takes the different from one full back up until the next scheduled full back up
Differential back up - this is optional
36
If you don’t have full back up, you cannot take differential back up or transactional back up
True
37
Which back up is not applicable if the recovery is simple
Transactional log back up
38
What are the file extensions for Full back up, differential back up and transactional back up
Full back up ( *.BAK) Differential back up- (*.DIF) transactional back up (* .TRN)
39
Which back up is the mandatory back up
Full backup
40
Size of transaction log file recommendations if you are using a full recovery model
25% - if the whole size of the data file
41
Recommend size of transaction log file for simple recovery model is
10% of the database
42
Which recovery model capture everything except bulk operation
Bulk Logged recovery Model- it does not load them as individual so you can’t open it
43
Bulk logged recovery model is exactly like full but it ignores anything in bulk
True
44
File group is not applicable for the log file
True
45
When we create additional data file we cal if
Secondary data file You can store it under system file group( default) or you can create additional file group