SQL EXAM Flashcards

(51 cards)

1
Q

What does the Acronym SSMS stand for?

A

SQL Server Management Studio

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

SQL Server provides various tools that are used for different purposes. Choose the tools that
apply to SQL Server?

A

 system installation
 auditing
 configuration
 performance tuning

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

Microsoft SQL Server Authentication Choose between the two authentication types

A

 Windows Authentication

 SQL Authentication

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

SQL Server Management Studio comprises several different components that are used for the
authoring, administration, and management of the overall system. The following are the main
components used for these tasks:

A

 Registered Servers
 Object Explorer
 Query Editor
 Solution Explorer

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

When you open SQL Server Management Studio, it displays the Connect to Server dialog box
which allows you to specify the necessary parameters to connect to a server.

T/F

A

True

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

Registered Servers is represented as a pane that allows you to maintain connections of
servers that are not yet configured.

T/F

A

False

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

The Object Explorer pane contains a tree view of the system database objects in a server.

T/F

A

False

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

You can dock or hide each of the panes of SQL Server Management Studio. By right-clicking
the title bar at the top of the corresponding pane.

T/F

A

True

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

The difference between the Hide and Auto Hide options is that the Hide option removes the
pane from view in SQL Server Management Studio, while Auto Hide collapses the pane to the
side panel.

T/F

A

True

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

The Object Explorer pane appears on the ________, while the Object Explorer Details
tab appears on the right side of SQL Server Management Studio. (The Object Explorer Details
tab displays information about the currently selected node of Object Explorer.)

A

Left

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

You can create a new database by using Object Explorer or the Transact-SQL language.

T/F

A

True

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

In SQL Server Management Studio right-click your database and select Tasks > Generate Scripts

T/F

A

True

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

In SQL Server Management Studio right-click your database and select Tasks > Generate Scripts

T/F

A

True

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

What is Query Editor used for?

A

Create and run scripts containing Transact-SQL statements

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

The master database contains all of the system level information for SQL Server – all of the logins,
linked servers, endpoints, and one other function you are required to choose below

A

system-wide configuration settings

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

The model database is used as the ___________ for all databases created on an instance of SQL
Server.

A

Template

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

The msdb database is used by SQL___________ for scheduling alerts and jobs and by other features
such as SQL Server Management Studio, Service Broker and Database Mail.

A

Server Agent

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

TempDB is a system database in Microsoft SQL Server used as a store of internal objects, , , and
what else. Choose the answers below

A

 row versions
 temporary tables
 work tables
 indexes

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

When you create a primary key, SQL Server automatically creates an index based on
the ___________columns

A

key

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

The primary key consists of one or more columns whose data contained within is used to uniquely
identify each row in the__________________ .

A

Table

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

In order to be a primary key, several conditions must hold.

T/F

22
Q

A foreign key is a set of one or __________________ columns in a table that refers to the
primary key in another table.

23
Q

This command CREATE TABLE Orders will create what in the New Query dialog box

A

Create orders table

24
Q
In the command below what does this mean?
CREATE TABLE Orders
(
 OrderId int NOT NULL PRIMARY KEY,
 OrderNo int NOT NULL,
A

Means in the OrderID, the Primary key cannot be empty and in the OrderNo cannot be at 0

25
In the command below what does the comma (,) mean at the end of the line OrderNo INT Not Null,
End of the line in a script
26
An SQL server profiler is a tool for _____________________________ in MS SQL Server.
tracing, recreating, and troubleshooting problems
27
In SQL Database scripting what does VARCHAR(255) mean?
Can have upto 255 characters
28
TempDB is a system database in Microsoft SQL Server used as a store of internal objects, , , and what else. Choose the best answers below
 row versions  temporary tables  work tables  indexes
29
What does Integer mean when creating a script to build a database
Numbers
30
Which command is correct to create a database in SQL server express?
Create Database SQL
31
When you import and Excel Spreadsheet which option should you take below?
Import flat file
32
What happens when you import an excel file the isn’t a .csv file?
It uploads unreadable characters
33
Is it possible to grant and deny access to s database at the SQL level? T/F
True
34
Microsoft SQL Server Experts recommend shrinking the database monthly and this will improve performance. T/F
True
35
Choose the best practice recommendations when backing up SQL databases
 Backups should be run automatically daily |  Backups are a very critical activity in the administration of DBMS
36
When adding users in SSMS which options are available in the configurtation of users?
 Enforce Password Policy |  Enforce Password Expiration
37
Which database roles in the choices below?
 db_owner  db_datawriter  db_datawriter
38
Choose the SQL Database reports SSMS provides below
 Disks  Disk Usage by Table  All Transactions
39
Why are vulnerability assessment reports important?
to protect and secure the database
40
You have a critical databse that you need to know who has access at all times. In addition, get reports on who is logging into the database. Which option is the best to make sure you are aware of any users logging into the database.
Both failed and successful logins
41
When restoring a database, which extension is required to make the backup function?
.bak
42
What does autogrow means in database technology?
Database will automatically grow provided there is enough disk space
43
When dealing with SQL Server agent which options you can choose from? Choose the answers below?
 Stop  Start  Restart
44
What does this ; symbol mean when you’re making a script in SQL
End of the script
45
What is Objects explorer used for?
Object Explorer is a tree view of all the database objects in a server.
46
Registered servers are ones of the SQL Server Management Studio's hidden gems
Using registered server, DBA gets the ability to execute SQL Query on multiple servers.
47
The Solution Explorer pane in Microsoft SQL Server Management Studio provides containers called projects for managing items such as
 database scripts  data connections  queries  files
48
Database engine tuning advisor is inbuilt tool which comes with Microsoft SQL server management studio which helps in analyzing required indexes, statistics, partitioning, strategy and
physical design structure for performance improvement
49
Checking SQL Server with Policy-Based Management. Policy-Based Management, a feature of SQL Server, is a flexible tool that can help DBAs manage one or more SQL Server instances.
It's used for monitoring and enforcing a standard set of policies for SQL Server throughout an organization.
50
The Solution Explorer pane in Microsoft SQL Server Management Studio provides containers called projects for managing items such as
 database scripts  data connections  queries  files
51
Which of the following are the management tasks that you can perform by using SQL Server Management studio:
>Create databases without using Transact-SQL >Modify databases without using Transect-SQL >Manage tables without using Transect-SQL >Generate and execute SQL statements