70-462 Study Notes Flashcards
Which system stored procedure is used to set the backup compression default for all databases on the server?
sp_configure
What must you use to insure parallel imports do not block each other?
Table Locks
Only perform a bulk import on tables using a table lock if the table does not have a ____.
Index
Using a page lock ensures import operations will not block each other (True or False)
False
Name a Pro and a Con to disabling constraints on a Table when setting Page Lock.
Pro - Imports will run quicker.
Con - May allow data to violate check constraints.
Which option is used to set the Thread Pool?
MAX WORKER THREADS
What value do you set MAX WORKER THREADS to in order to allow SQL Server to determine the size of the Thread Pool when the service is started.
MAX WORKER THREAD = 0
Which T-SQL must be executed when using advanced configuration options.
sp_configure ‘SHOW ADVANCED OPTIONS’,1
Which parallelism option determines the threshold at which a query is considered a long running query?
COST THRESHOLD FOR PARALLELISM
The Max Degree of Parallelism option determines…
The maximum number of parallel execution plans that can be used for a single query.
What two T-SQL commands can provide lock activity, including a list of currently active locks when data is retrieved?
sys.dm_tran_locks (dynamic management view)
sp_lock (system stored procedure)
Which two SQL tools can provide information about lock activity over time but not as a snapshot of current activity?
SQL Trace and SQL Profiler
Which Dynamic Management View returns information about tasks that are waiting for resources?
sys.dm_os_waiting_tasks
Which Dynamic Management View returns information about active transactions?
sys.dm_tran_active_snapshot_database_transactions
What T-SQL command using a DMV can you run to show the encryption key information for your current database?
SELECT * FROM sys.dm_database_encryption_keys
What tool is used to analyze the performance of database workloads and provides recommendations to add, remove, or modify physical design structures including clustered indexes, nonclustered indexes, indexed views, and partitioning?
Database Engine Tuning Advisor
Which property is used to limit the maximum size of a filegroup?
AUTOGROWTH property
What are the 3 components of IT?
Client Solutions: These include desk-top computers, laptops or notebooks, portable devices, and even telephones in Voice over IP implementations.
Network Infrastructure Solutions: These include switches, routers, and network communications services( such as DNS, DHCP, authentication services, and so on).
Information Storage Solutions: These include databases, file servers, and networked storage such as Network Attached Storage (NAS) and storage area networks (SANs).
What technology allows more than one physical server to be available for processing a single application?
Clustering
Name 6 tasks you can perform with the SQL Server Configuraion Manager (SSCM):
- Stop and start the SQL Server services
- Change service login information
- Enable or disable network protocols
- Configure aliases on client computers
- Enable or disable protocol encryption for client connections
- Enable or disable filestream support for a SQL Server instance
_____ allows you to perform queries against DNS servers in order to ensure that DNS is operating appropriately.
NSLOOKUP
____ provides a simple interface that is used to check whether a remote host is live on the network.
PING
____ is used to test each connection along the path to a destination.
TraceRT
____ not only tests the devices along the path, but it generates reports to help you determine network communications problems such as latency and intermittent problems.
PathPING
SQL Server Profiler
An Application that is used to monitor the activity taking place on a SQL Server instance. Can be used to monitor T-SQL transactions and deadlocks.
Alias
An Alternative name for a SQL Server Object that can be used to simplify object access.
What technology is Microsoft’s implementation of web-based enterprise management and may be used to monitor system health for SQL Server systems?
Windows Management Instrumentation (WMI)
What SQL Server tool is used to configure the SQL Server services?
SQL Server Configuration Manager
What SQL Server tool can be used to capture the SQL requests coming into SQL Server and save then to a trace file?
The SQL Server Profiler
What tool can you use to build complex SQL Server Integration Services packages?
SQL Server Data Tools (SSDT)
Is the SQL Server Management Studio installed separately for each instance or once for all instances?
SSMS is a server-level object and is installed once for all instances.
What are the four System Databases?
Master DB, MSDB, Model DB, and tempdb
What are the five most commonly configured database properties?
Autogrowth Recovery model Compatibility level Auto shrink Restrict access
What are the three types of Recovery models?
Simple
Bulk-logged
Full
What are the three options for the Restrict Access database property?
MULTI_USER
SINGLE_USER
RESTRICTED_USER
Which Restrict Access option allows only administrator and Database Owner access to the database when set?
RESTRICTED_USER
What must you create to specify the file which a table should be stored in a multifile database?
multiple filegroups
What RAID level provides stripe sets for performance gains but does not provide for parity-based fault tolerance?
RAID 0 provides striping
What level of RAID provides mirroring for fault tolerance?
RAID 1 provides mirroring
What recovery model will only minimally log a BCP operation?
Bulk-logged recovery
What recovery model does not retain the transactions long term in the transaction log for any type of transaction?
Simple
What can you create to generate a point-in-time capture of the data in a database?
A database Snapshot
What system database is used as a non-permanent location for data during large data volume operations when the server has insufficient memory for in-memory storage?
tempdb database
You must create a database on a SQL server instance. You can place the data files and log files on the E: or F: physical drive. Where should you place the log file if you place the data file on the F: drive?
Place the log file on the E: drive.
What is the primary benefit of using multiple files to store a database in a single filegroup?
Data striping across the files for increased performance.
filegroup
A logical collection of one or more files used to store database table data.
RAID
Redundant Array of Independent Disks (RAID) is used to provide improved performance or storage fault tolerance.
What index types are supported in SQL Server 2012?
Clustered Nonclustered Spatial Partitioned XML Filtered Columnstore
Covering Index
A Special multicolumn index used to cover frequently executed queries.
What three methods can be used to defragment indexes?
Dropping and re-creating the index
Rebuild the index
Reorganize the index
At what percentage of fragmentation does Microsoft recommend reorganizing an index?
5 - 30 % fragmentation. Above 30%, the index should be rebuilt.
How is a table stored when no clustered index exists on the table?
As a heap
You have enabled compression for a table that has nonclustered indexes. Will the nonclustered indexes automatically be compressed?
No. Each nonclustered index must be enabled for compression individually.
What is a Nonclustered Index?
An Index that is stored separately from the data table within the same database. Used to improve query results when non-key columns are used in WHERE clauses.
What is a View?
A stored SELECT statement that is used to simplify access to table data. They may also improve performance.
What is XML?
The Extensible Markup Language. A portable data description language supported by SQL Server.
What are the four primary steps to creating a SSIS package?
- Define Connection Managers.
- Define the Data ETL Objects
- Testing
- Save and Execute
To configure a SSIS project to run in 32-bit mode, which configuration property option must be set to False?
Run64BitRuntime option.
What are the six security protection levels that can be used with SSIS packages to protect sensitive data?
Do Not Save Sensitive Encrypt All Data With Password Encrypt Sensitive Data with Password Encrypt All Data with User Key Encrypt Sensitive Data with User Key Rely On Server Storage
What is the TDE Architecture hierarchy?
The TDE is made up of the Service Master Key (SMK) which encrypts the Database Master Key (DMK) which encrypts the Database Encryption Key(DEK) which finally encrypts the data.
What are the steps for implementing TDE?
- Use master;
CREATE MASTER KEY ENCRYPTION BY PASSWORD = ‘’; - CREATE CERTIFICATE SrvrCert WITH SUBJECT = ‘Server Certificate’;
- Use ;
CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_128 ENCRYPTION BY SERVER CERTIFICATE SrvrCert; - ALTER DATABASE SET ENCRYPTION ON;
What system procedure would you use to evaluate the benefits of compression on a given object?
sp_estimate_data_compression
Which protection level is available only when saving packages in a SQL Server?
Rely on Server Storage protection level.
What can you use to create a plan for the backup and maintenance of a database from within SSMS?
Maintenance Plan Wizard.
Where are the full-text catalogs used by full-text indexing stored in SQL Server?
They are stored inside the SQL Server database.
When implementing row compression for int data types, how is the data stored?
The space required to store the information is used in 1-byte increments. The least amount used will be 1 byte and the maximum amount will be 4 bytes, which is the standard size of an int column.
Cube
Multi-dimensional objects within OLAP systems that allow you to view a data value from three or more dimensions.
Data mart
A small data warehouse, typically created for a department or a group within a department.
Full-text index
A special index that allows for faster searches against text data columns. Search features provided include word forms and plurality.
Transparent Data Encryption (TDE)
Allows for the encryption of data stored in SQL Server databases.
What are the types available for creating SQL Server Job Step Tasks?
ActiveX Script Operating System Powershell Replication SQL Server Analysis Services SQL Server Intergration Services Packlage T-SQL Commands
You want to ensure that a single table exists in a database at a remote location. What SQL Server 2012 component should you employ?
Replication
You want to perform a DBCC check automatically against a database, and in the same task set you want to export data to a file. What do you need to create?
A SQL Server job
What does the Maintenance Plan Wizard create to implement a database maintenance plan?
An SSIS package
You want the operator named Fred to receive a pop-up message on his computer when a specific job completed. What notification option should you employ?
NET SEND
What kind of alert should you create for watch for table integrity problems in a SQL Server Database>
SQL Event alert
What function within SSMS allows you to enable WMI monitoring from within a graphical interface?
SQL Agent Alerts
Other than WMI monitoring, what other events can a SQL Agent Alert monitor>
Performance events and SQL Server events.
What windows Server tool includes the System Monitor control and allows for the capture of data collector sets?
The Performance and Reliability Monitor.