Unit 7 Flashcards

1
Q

Which statement do you use to transfer a database object from one schema to another?

A

ALTER SCHEMA

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

A user who’s granted the EXECUTE object permission can execute what?

A

a stored procedure or function

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

The highest level at which you can grant permissions is the ________________ level.

A

server

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

With the ALTER LOGIN statement, you can

A

enable or disable a login ID

change the name for a login ID

change the default database or language

all of the above

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

Which statement can you use to create a user-defined database role?

A

CREATE ROLE

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

Users who are involved in the administration of the server are typically assigned to one of the ________________ roles that are built into SQL Server.

A

fixed server

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

The entities that can be secured on a server are called

A

securables

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

To allow users to log on using either type of authentication, you need to set the SQL Server authentication to ________________ mode.

A

mixed

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

Each of the outcomes listed below is a result of executing the following script except for one. Which one?

CREATE ROLE ExampleRole;
ALTER ROLE db_datareader ADD MEMBER ExampleRole;
GRANT INSERT,UPDATE
   ON Vendors
   TO ExampleRole;
DENY INSERT
  ON Vendors
  TO ASmith;
ALTER ROLE ExampleRole ADD MEMBER ASmith;

By being assigned to the role ExampleRole, a user would be granted INSERT and UPDATE permission to the Vendors table and SELECT permission to all user tables.

The user named ASmith is granted UPDATE permission to the Vendors table and SELECT permission to all user tables.

By being assigned to the role db_datareader, a user would be granted INSERT and UPDATE permission to the Vendors table and SELECT permission to all user tables.

The user named ASmith can’t be granted INSERT permission to the Vendors table by being assigned to the role ExampleRole.

A

By being assigned to the role db_datareader, a user would be granted INSERT and UPDATE permission to the Vendors table and SELECT permission to all user tables.

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

Where would you go to create, modify, or delete logins using the Management Studio?

A

the Security folder for the server

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

Which of the following statements creates a login ID for a Windows user named AliceJackson in a domain named Sales?

A

CREATE LOGIN [Sales\AliceJackson] FROM WINDOWS;

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

You can use the GRANT statement to give users permission to use each of the following items except for one. Which one?

A

all the objects in a database

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

All of the following statements about application roles are true except for one. Which one?

An application role is activated by executing a stored procedure.

Unlike a standard database role, an application role can contain only one member.

Once a connection activates the application role, its security profile changes from that of the login ID to that of the application role.

Once a connection activates an application role, its security profile can only be changed back to that of the login ID if a cookie is created when the role was activated.

A

Unlike a standard database role, an application role can contain only one member.

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

To log on to SQL Server using your Windows login ID, you use ________________ authentication.

A

Windows

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

To log on to SQL Server using your SQL Server login ID, you use ________________ authentication.

A

SQL Server

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

Which option can you use to make SQL Server prompt the user for a new password the first time the login ID is used?

A

MUST_CHANGE

17
Q

Before you can delete a user-defined server role, you must

A

delete all of its members

18
Q

The dbcreator role

A

is intended for those users who need to be able to work with database objects

lets members create, alter, and drop databases

allows new members to be added to the role

Correct
all of the above

19
Q

The users, groups, logins, and roles that have access to a server are called

A

principals

20
Q

Which of the following statements creates a database user in the current database from the SQL Server login ID for TomBrown?

A

CREATE USER TomBrown;

21
Q

Which of the following statements creates a SQL Server login ID for a user named TomBrown with the password ‘abc123XYZ’.

A

CREATE LOGIN TomBrown WITH PASSWORD = ‘abc123XYZ’;

22
Q

Which statement is true about the DENY and REVOKE statements?

A

A denied permission can’t be granted by role membership, but a revoked permission can

23
Q

A user who’s granted the REFERENCES object permission can do what?

A

create objects that refer to the object

24
Q

After you create a schema, you can create any object within that schema by

A

qualifying the object name with the schema name