Module 6
Module 6
Number of Spindles
1. What are the commonly known physical components of a hard disk that affect the
storage layer’s performance?
a. {{53 -}} - that can only spin at a certain speed when reading a piece of data.
b. {{54}} - that can only move at a certain speed when reading a piece of data.
2. How does adding or reducing the number of spindles affect storage performance?
a. Adding more disks {{55 - - - - - - - - - - - -}}
3. What are the demands that need to be considered and met by a DBA when designing
the storage layer’s disk requirements?
a. The {{56 - - - - - - - -}}
b. The {{57 -}}
4. What is the rule of thumb when it comes to the trade off between capacity of a disk and
the number of disks?
a. {{58 - - - - - - - - - - - - -}} disks will outperform {{59 - - - - - - - - - - - - - - -}} disk.
RAID Disks
Content already covered earlier: Module 4
Due for recap especially the consideration section
Storage Spaces
1. When was this feature introduced?
a. {{60 - - - - - - -}} to create {{61 - - - - - - - - - - - - - - - - - - - - - - - -}}.
2. How are storage spaces created?
a. Storage pool: create a storage pool by {{62 - - - - - - - - - - - - - - - - - - - - - - -}}
b. Storage spaces: create {{64 - - - - - - - - - - - -}} from {{65 - - - - - - - - - - - - - - - - -
-}}.
i. One or more can be created from storage pool
3. What formats of hard disk and solid state disks are supported for the creation of storage
pools?
a. Difference Between SAS, SATA, SCSI and ATA
b. {{66}}
c. {{67}}
d. {{68}}
e. {{69}}
4. What is the advantage of using SAS and SATA over IDE & SCSI
a. Data is transmitted as {{70 - - - - - - - - -}} rather than as multiple parallel data
streams.
b. By wrapping multiple bits into packets SAS and SATA are able to move more
data as a single stream faster.
c. SCSI and ATA cannot operate in the same environment like SAS & SATA do.
d. SAS is faster than SSD
e. SAS SSD exists
5. How can storage tiers be implemented within storage pools.
a. {{78}} can be used as {{74 - - - - - - -}} for {{75 - - - - - - -}} - more expensive.
b. {{77}} can be used to store{{76 - - -}} as it is cheaper.
c. Move frequently accessed data to {{79 - - - - - - - - - - -}}
6. Resilience levels for storage pools
a. Mirroring
i. How does it work?
1. {{71 - - - - - - - - - - - - - - - - - - -}} like {{80}}.
ii. What are the advantages of this level?
1. Offers {{81 - - - - - - - - - - - - - - - - - - - - - - -}}.
2. Offers {{82 - - - - - - - - - - - -}}e.
iii. What is the main disadvantage of this resilience level?
1. {{83 - - - - - - - - - -}}
b. Parity
i. How does it work?
1. Write a{{84 - - - - - - - - - - - - - - - - -}} all the disks, along with {{85 -
- - -}}
2. Parity is smaller than a RAID 5 set.
ii. What are the advantages of this level?
1. Uses {{86 - - - -}} better than the Mirroring resilience level.
2. Provides good {{87 - - - - -}}.
iii. What is the main disadvantage of this resilience level?
1. {{88 - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
c. Simple
i. How does it work?
1. {{89 - - - - - - - - - - - -}}, similarly to {{90}}.
ii. What are the advantages of this level?
1. Provides the most {{91 - - - - - - - - - -}}.
2. Provides{{92 - - - - - -}}
iii. What is the main disadvantage of this resilience level?
1. {{93 - - - - - - - - - - - - - - - - - - - - -}}
Tempdb Storage
Recap Considerations for Tempdb in Module 4 ✔
NB: SMB Shares that cannot be used for SQL Server storage
1. {{137 - - - - - - -}} e.g \\servername\share-name\c$ , \\servername\share-name\d$
2. {{138 - - - -}} e.g. \\127.0.0.1\share-name
3. {{139 - - - - - - -}}
a. Provide permanent access to drives on remote hosts - mounted
4. What kind of data cannot be stored on SMB shares?
a. FIlestream data
Steps to follow
a. Tutorial: Use Azure Blob storage service with SQL Server 2016 - SQL Server
b. Create an {{207 - - - - - - -}}
c. {{209 - - - -}} to the account
d. Create & Apply {{210 - - - - -}}
i) Contains{{211 - - - - - - - - - - - - -}}
e. Generate a {{212 - - - - - - - - - - - - -}}) for {{213 - - - - - -}}
i) Grant limited access to data with shared access signatures (SAS) - Azure
Storage
ii) {{214 - -}}that points to {{215 - - - - - -}}and includes a {{216 - - - - - - - - - - - - - - - -
- - - - - - - -}}
f. Create a credential on the required SQL Server instance
USE master
CREATE CREDENTIAL {{217 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -}}] -- this name must match{{218 - - - - - -}}, start with {{219}} and must not
contain {{220 - - - - - - - - -}}.
WITH {{221 - - - - - - - - - - - - - -}} -- this is a mandatory string and do not
change it.
, {{222}} ={{223 - - - - - - - - -}} -- this is the {{224 - - - - - - - - - - -}}
GO
CREATE CREDENTIAL
[https://<mystorageaccountname>.blob.core.windows.net/<mystorageconatinern
ame>]
WITH IDENTITY = ‘SHARED ACCESS SIGNATURE’
SECRET = ‘sas query params here’
g. Create database with data and log file in the container
CREATE DATABASE [database_name]
ON (Name={{226 - - - - - - -}} FILENAME=[{{225 - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -}}])
LOG ON (name={{227 - - - - -}} FILENAME=[{{228 - - - - - - - - - - - - - - - - - - - - - -
- - - - - -}}])
Lesson 4: Stretch Database
Stretch Database - SQL Server Stretch Database
1. What is this feature used for?
a. {{232 - - - - - - -}} and {{233 - - - - -}} of {{234 - - - - - - -}} to {{235 -}}.
b. Split data such that {{236 - - - - -}} data is kept on {{237 -}} and {{238}} data is
kept on {{239 - - - - - - - - - - - - - -}}.
2. What is the benefit of the stretch database to the on-premises storage?
a. It {{240 - - - - - - - - - - - - -}} for {{241 - - - - - - - - - - - - - - -}} as they are smaller.
3. How are backups handled differently when using stretch databases?
a. Backups of {{243 - - - - - - - - - -}} therefore {{244 - - - - -}}
b. Data on {{245 -}} is{{246 - - - - - - - - -}}.
4. How is the availability of the historical data impacted when using a stretch database?
a. The cold, historical data is {{247 - - - -}} for {{248 - - - - - - - - - - - - - - -}}.
Data Security
1. What level of access to the Azure linked server extended to other parties and services?
a. The linked server can only be accessed by{{272 - - - - - - -}}.
b. This means it is not possible for a user{{273 - - - - - - - - - - - - - - - - - - - - - - - - -}}.
2. What is the impact of enabling a database for stretch databases on the database’s and
respective tables permissions?
a. The local database {{274 - - - - - - - - - - - - - - - - -}} and {{275 - - - -
-}}because{{276 - - - - - - - - - - -}} through the local server.
b. A user’s permissions r{{277 - - - -}} regardless of {{278 - - - - - - - - - - - -}}.