Database_Forensics Flashcards

CHFI certificate (54 cards)

1
Q

NAME?

A

is used for trusted connections

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

-e

A

is used to echo the input

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

NAME?

A

is used for column separation

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

Database and log file (MSSQL)

A

\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA*.MDF | *.LDF

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

DBCC BUFFER

A

Returns the buffer headers and pages from the SQL server buffer cache where the results are stored

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

DBCC DBINFO

A

Returns information related to the database metadata

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

DBCC DBTABLE

A

Returns structure of selected database table

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

dbcc loginfo and go

A

to obtain the VLF allocations for the moviescope database:

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

DBCC PAGE

A

Returns the data page structure of the selected database

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

DBCC PROCBUF

A

returns the contents of the SQL Server procedure buffer. Buffer contains SQL server cached executable statements such as stored procedures and SQL queries

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

DBCC SHOWFILESTATUS

A

Returns information related to the space occupied by the data files in an active database.

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

sp_helpdb moviescope and go

A

to determine the locations of the transaction log files associated with moviescope database (moviescope is the database for demonstration purposes)

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

sp_helpdb

A

command outputs the information related to a specific database.

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

SQL Server error logs

A

\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\LOG\ERRORLOG

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

Trace files

A

\Microsoft SQL Server\MSSQL14.MSSQLSERVER \MSSQL\ LOG\LOG_#.TRC

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

Identify the SQL server function that allows investigators to retrieve the active portion of a transaction log file, such as the target database object, specific columns, SPID, and date/time range.

A

fn_dblog ()

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

DBCC Commands

A

Database Consistency Checker commands may give the investigator valuable insight into what is happening within the Server system.

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

Pslist commands

A

displays elementary information about all the processes running on a system.

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

net session commands

A

Command is used for managing server computer connections

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

select * from sys.dm_exec_cached_plans

A

To view one row per plan attribute for the plan specified by the plan handle.

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

Select * from ::fn_dblog(NULL, NULL)

A

Displays the active portion of the transaction log file. Assigning NULL values imply that the start and end points for log sequence numbers (LSNs) are not specified.

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

select * from sys.dm_exec_cached_plans cross apply sys.dm_exec_sql_text(plan_handle)

A

Retrieve the SQL text of all cached entries.

23
Q

select * from sys.dm_exec_query_stats

A

To collect additional plan cache specifics from the database, like viewing the aggregate performance statistics.

24
Q

select * from sys.dm_exec_query_stats

A

To collect additional plan cache specifics from the database, like viewing the aggregate performance statistics.

25
Select * from ::fn_dblog(NULL, NULL)
Displays the active portion of the transaction log file. Assigning NULL values imply that the start and end points for log sequence numbers (LSNs) are not specified.
26
DBCC LOG(, )
command allows investigators to view and retrieve the active transaction log files for a specific database.
27
Offset in Row
In row data offset of modification
28
LOP_BEGIN_XACT
Indicates the beginning of a transaction
29
LOP_COMMIT_XACT
Indicates the end of a transaction
30
LOP_MODIFY_ROW
Indicates the type of transaction performed
31
RowLog Contents 1
Value of the row after modification
32
RowLog Contents 0
Value of the row before modification
33
Slot ID
On data page row location of record
34
Connection Pool
handles all the client connection needs such as user authentication, memory checks, thread processing, caches, etc.
35
MyISAM
Provides unlimited data storage, Well-known for storing and retrieving huge volumes of seldom-accessed archival or historical data
36
ARCHIVE
Provides unlimited storage limit in compressed format
37
BLACKHOLE
Allows systems to write data: however, these data are never saved
38
SQL Interface
User interface that accepts SQL syntax and transmits the results to the user.
39
Query Cache
Caches the query structure and query results that are unique to MySQL
40
Cache and Buffers
They ensure that the commonly used data are provided in an efficient way.
41
Parser
validates the SQL queries entered by a user
42
Query Optimizer
Excludes known-bad conditions in the query before executing the join expression
43
Error log (HOSTNAME.err)
It contains the information associated with the start-up and shutdown events as well as the errors.
44
General query log (HOSTNAME.log)
It contains logs regarding the client connections and activities
45
Relay log (HOSTNAMErelay-bin.n)
It contains the events that describe the changes that occurred in the database.
46
Master info file (master.info)
It is created by a replication slave server that contains the essential parameters used for connecting to the master slave.
47
lbdata1
lbdata1 data file stores the permanent table records of InnoDB
48
PID
The server's process ID (PID) file, which stores the MySQL server’s process ID
49
auto.cnf
file containing the server_uuid which is used to uniquely identify a server
50
[tablename].myd
Contains the table data of MyISAM Storage Engine
51
mysqldump
Take a backup of the database using
52
mysqlexport
To export metadata or data, or both from one or more databases
53
mysqlbinlog
To display the content of bin logs (mysql-bin.nnnnnn) in text format.
54
myisamlog
To process the MyISAM log file and perform recovery operation, display version information, etc., depending on the situation. The default operations of this utility include update(-u) and recovery(-r).