0% found this document useful (0 votes)
16 views

Module 6

The document discusses storage performance options for SQL Server including I/O performance, workloads, wait statistics, number of spindles, RAID disks, and Storage Spaces. Storage Spaces allows creating storage pools from disks and provisioning storage volumes from pools with options for redundancy.

Uploaded by

andrew.ouko.254
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Module 6

The document discusses storage performance options for SQL Server including I/O performance, workloads, wait statistics, number of spindles, RAID disks, and Storage Spaces. Storage Spaces allows creating storage pools from disks and provisioning storage volumes from pools with options for redundancy.

Uploaded by

andrew.ouko.254
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Module 6: Database Storage Options

Lesson 1: SQL Server Storage Performance


I/O Performance
1. I/O performance has a direct impact on the overall performance of SQL Server.
What is the overall objective when designing and implementing the storage layer?
a. To deliver {{1 - - - - - - - -}} for {{2 - - - - - - - - - - - - - -}}.
2. What is the overall two part process for a complete write of data to the database?
a. Modification: {{3 - - - - - - - - - - - - - -}}.
b. Completion: {{4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}.
i. A delay in writing to the transaction log file leads to undesirable
performance of SQL Server and applications using the database.
ii. Write is only considered completed once {{5 - - - - - - - - - - - - - - -}}
3. When designing the storage for the SQL Server etstate, it is important to consider the
potential workloads.
a. 1. What is a Transactional Workload
b. Workload Prioritization
4. What are two types of extremities in terms of workloads to consider?
a. {{6}} heavy
b. {{7}} heavy
c. read/write split
5. What are the characteristics of OLTP workloads? (Sports Car)
a. Transaction Frequency: {{8 - - - - - -}}
b. Sensitivity to: {{9 -}}
c. Size of payloads: {{10 - - - -}}
d. Read workload characteristic: {{11 - - - - - - - -}}
e. Write workload characteristic: {{12 - - - - - - - - - - - -}}
6. What are the characteristics of OLAP workloads? (Large Freight Truck)
a. Transaction Frequency: {{13 - - - - -}}
b. Sensitivity to: {{14 - - - - - - - - - - -}}
c. Size of payloads: {{15 - - - -}}
d. Read workload characteristic: {{16 - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
e. Write workload characteristic: {{17 - - - - - - -}}
7. Getting an idea of the potential workloads for a new instance is not straightforward,
however, what DMO can be used to understand the workload of an existing instance adn
what kind of information does it return?
a. DMV: {{18 - - - - - - - - - - - - -}}
b. Information:{{19 - - - - - - - - - - - - - - - - - - - -}}
Reviewing Wait Statistics
1. What is the purpose of reviewing wait statistics when it comes to SQL Server?
a. To gain an insight on {{20 - - - - - - - -}} based on {{21 - - - - - - - - - - - - - - -}}.
2. In a multithreaded application, threads share resources e.g.
a. {{22}}
b. {{23}}
c. {{24}}
3. What guides the access of resources by thread?
a. {{25 - - - - - -}} of the thread
4. DMVs that can be used to access wait statistics (sys.dm_os_[])
a. Sys.dm_os_waiting_tasks shows;
i. {{26 - - - - - - - - - - - - - - - - -}}
ii. {{30 - -}} for a task
1. Common SQL Server Wait Types
iii. {{29 - - - -}} for a task
iv. {{31 - - - - - - -}} is waiting for
b. Sys.dm_os_wait_stats shows;
i. {{32 - - - - - - -}} for {{33 - - - -}}
c. Sys.dm_exec_session_wait_stats
i. Return {{34 - - - - - - - - - - - - - - - - - - -}} but filtered for {{35 - - - - - - - - - -
-}}.
ii. sys.dm_exec_session_wait_stats (Transact-SQL) - SQL Server
5. Relevant wait types for investigating performance of the storage system
a. Page IO Latch Waits
i. What is the naming convention for these wait types?
1. They are {{36 - - - - - - - - - -}}
ii. What resources is a task waiting for with this wait type?
1. A task is waiting to {{37 - - - - - - - - - - - - - - - - - - - -}}, so it has to
be {{38 - - - - - - - - - - - - -}}.
iii. What does a high wait time for PAGEIOLATCH potentially show?
1. There is a {{39 - - - - - - - - - - - - -}}.
2. The I/O subsystem is slow to {{40 - - - - - - - - - - -}}.
b. WRITELOG
i. What resources is a task waiting for with this wait type?
1. Task is waiting for a{{41 - - - - - - - - - - - -}} to {{42 - - - - - -}}.
ii. What causes this wait type to increase?
1. {{43 - - - - - - - - - - - - - - - - -}} is performing poorly.
c. LOGBUFFER
i. What does this wait type indicate?
1. A task is waiting for {{44 - - - - - - - - - - - - - -}} while {{46 - - - - - - - -
- - - - - - -}}
d. ASYNC_IO_COMPLETION
i. What does this wait type indicate?
1. The task is waiting for {{47 - - - - - - - - - - - - - - - - - - - - - -}} to
complete.
ii. Examples of operations that cause these types of waits?
1. {{48 - - - - - - - - - - - - - - -}}
2. {{49 - - - - - - - - -}}
e. IO_COMPLETION (transaction log)
i. What does this wait type indicate?
1. The task is waiting for {{50 - - - - - - - - - - - - - - - - - - - - - - - - - - -
-}} to complete.
ii. Examples of operations that cause these types of waits?
1. {{51 - - - - - - - - - - - - - - - - - - - - - - -}}
2. {{52 - - - - - - - - - - - - - - - - - - - - - - - - -}}

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 - - - - - - - - - - - - - - - - - - - - -}}

Configuring Storage Pools and Storage Spaces


1. Process flow for using storage spaces on a single Windows Server.
a. Create {{94 - - -}}
i. {{97 - - - - - - - -}}
b. Create {{95 - - - - - - - - - - -}}
i. {{98 - - - -}}
c. Create {{96 - - - - - - - - - - - - - - - -}}
i. {{99 - - - - - - - - - - - - -}}

Data and Log Storage


Recap How data is stored in Module 4 ✔

Tempdb Storage
Recap Considerations for Tempdb in Module 4 ✔

Other Storage Options

Network Attached Storage


1. What is the main rationale for using this storage option?
a. {{100 - - - - - - - - -}}
2. Why is it not recommended for use by SQL Server?
a. It rarely offers{{101 - - - - - - -}} required by SQL Server as it is limited by;
i. {{102 - - - - - - -}}
ii. {{103 - - - - - - - - -}}
3. Does NAS have RAID support?
a. {{104 - - - - - - - - - - - - - - - - -}}

Direct Attached Storage


1. What is it?
a. Traditional storage solution where {{105 - - - - - - - - - - - - - - - - - - - - - -}}
2. What is the primary advantage offered by this storage solution?
a. When combined with{{108 - - - - - - -}}, this solution offers {{107 - - - - -}}and {{106
- -}}.
3. What are the limitations of using this kind of storage?
a. The storage cannot be {{110 - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
b. It is difficult to {{111 - -}}
4. How can the expansion issue of DAS be resolved?
a. Using {{112 - - - - - - - - - - - - - - - - - - - - -}}

Storage Area Network


1. What is this?
a. Separate network that is {{113 - - - - - - - - - - - - - - - - - - - - - - -}}
2. Advantages of using a SAN
a. {{114}}
b. {{115 -}}
c. {{116 -}}
d. Can achieve the same performance as{{117}}
3. Disadvantages of using a SAN
a. {{118 - - - - - - - -}}
b. {{119 - - - - -}} than a DAS
c. Might require {{120 - - - - - - - - - - -}}to manage a SAN in a large organisation.
4. What are the two formats of SAN and their primary advantage?
a. Channel name: advantage
b. {{121 - - - - - - - - - - - - -}}
c. {{122 - - - - - - - - - - - - -}}
Lesson 2: SMB Fileshare
What is SMB Fileshare?
1. Key terms
a. What is NetBIOS (Network Basic Input/Output System)? - Definition from
WhatIs.com
b. What is Server Message Block Protocol (SMB protocol)? - Definition from
WhatIs.com
c. CIFS vs SMB: What's the Difference?
d. OSI Model: What Is The OSI Model?
i. Application
1. HTTP, SMTP protocols
2. Only layer that directly interacts with data from the user
ii. Presentation
1. Translating data that is encoded differently by the myriad of
communicating devices into syntax that the application layer can
understand.
2. Translation, encryption and compression
3. SSL, TLS
iii. Session
1. Opening and closing connections
2. Checkpoints
iv. Transport
1. Segment creation & Segment Assembly
a. Break down the data into segments or assemble the data
from segments
2. Error control - detection and retransmission on the receiving end
3. Flow control - rate of communication. For networks of different
speeds.
4. Error and Flow control for inter network communication
v. Network
1. Facilitates data transfer between different networks
a. Inter network communication
2. Segments → Packets & Packet Assembly
3. Routing - determine best path
vi. Data Link
1. Data transfer between two devices on the same network
2. Packets → Frames
3. Error & Flow control for intra-network communication (remember
transport does this for inter network)
vii. Physical
1. Physical equipment involved in the data transfer
2. Devices communicating must agree on a signalling convention to
distinguish the 1s and 0s.
e. TCP/IP Model
i. Application
1. Application
2. Presentation
3. Session
ii. Transport
1. Transport
iii. Internet
1. Network
iv. Link/Network Access Layer
1. Data Link
2. Physical
f. SSL in the OSI and TCP/IP model
i. https://i.stack.imgur.com/ksR9v.jpg
ii. https://i.stack.imgur.com/BUkY5.jpg
2. Definition
a. Network protocol (an agreed way of communicating) developed initially for the
Windows 95 operating system for {{123 - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
b. Application layer protocol that is designed to read and write files to a remote
host.
3. What are SMB Fileshares?
a. Resources on remote hosts made available via SMB.
4. What is it used to share traditionally?
a. {{124}}
b. {{125 -}}
c. {{126 - - -}}
d. Other resources on the network
5. What is the naming convention of SMB files?
a. {{127}}
6. What are the minimum versions of WIndows to use with this technology?
a. {{128 -}}
b. {{129 - - - - - -}}

Benefits of SMB Fileshare


1. How does it compare to fibre channel storage solutions?
a. Improvements in the {{131 - - - - - -}} and {{132 - - -}} make SMB rival the
performance of {{141 - - -}} solutions at a fraction of the {{142}}
2. What are some of the administration gains of using SAN over DAS?
a. Migration: {{133 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
b. Redundancy: {{134 - - - - - - - - - - - - - - - - - - - -}}
c. Storage mapping: {{136 - - - - - - - - - - - - - - - - - - - - - - -}}
d. Administration: {{135 - - - - - - - - - - - - - - - - - -}}
3. What is the prerequisite for using SMB storage on SQL Server?
a. Understand Those Confusing Windows 7 File/Share Permissions
b. {{143 - -}} and {{144 - - - - -}} must be granted {{145 - - - - -}} and {{146}}
permissions.
4. How are databases configured to use SMB Fileshares created differently from the norm?
a. Instead of using a {{147 - - - - - - - -}} to specify {{231 - - - - - - - - - - - -}},
databases created using SMB use {{148 - - - - - -}}
5. Write down an example of a full UNC path
a. {{149 - - - - - - - -}}
6. Advantages of SMB over SAN
a. SMB FIleshare is easy to manage
b. Moving databases is a simple detach/attach operation.
c. SMB file share is cost effective.

CREATE DATABASE Statement


CREATE DATABASE [database_name]
{{150 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
LOG {{151 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
GO

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

Lesson 3: SQL Server Storage in Microsoft Azure


What are SQL Server Data Files in Azure?
1. What format are data files for databases created in Microsoft Azure stored as?
a. Microsoft azure {{155 - -}}
2. What is the extent of support for this format of storage?
a. Supported by {{156 - - - - - -}} and {{157 - - - - - - - - - - - - -}} natively.
3. What are some of the benefits of using this type of technology?
a. Facilitates {{159 - - - - - - - - - - - - - - - - - - -}} to simplify the provision of database
storage.
b. Facilitates {{160 - - - - - - - - - -}} between machines.
4. What is the process flow using SQL Server data file in Azure?
a. Account: {{161 - - - - - - - - - - - - - - - - - - - - -}}
b. Access: {{164 - - - - - - - - - - - - -}} for accessing the container, {{165 - - - - - - - - -
- - - - -}} and then {{166 - - - - - -}}.
5. What are the size specifications for storing page blobs inside the storage container?
a. Page Blob max size:{{167}}
b. Max container count: {{168 - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
c. Total size for containers: {{169 - - - - - - - - - - - - - - - - - - - - - - -}}

Benefits of SQL Server Data Files in Microsoft Azure


Introduction to Azure Storage - Cloud storage on Azure
1. Migration
a. {{170 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
b. Client applications: {{171 - - - - - - - - - - - - - - - - -}}
2. Separation of concern for compute and storage nodes
a. What are compute nodes, I/O nodes, and storage nodes?
b. There is a separation of concern such that {{172 - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - -}}.
c. What is the benefit realised by this separation of concern architecture?
i. A failure to a compute node .{{174 - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -}}
1. Simply{{175 - - - -}} and {{176 - - - - - - - - - - - - - - -}}
3. Simple disaster recovery
a. When a SQL Server instance on {{177 - - -}} or {{178 - - - -}} fails,{{229 - - - - - - - -
- - - - - - - -}} and {{230 - - - - - - - - - - - - - - - - - - - - -}}.
4. Security
a. How can encryption and the separation of concern for storage and compute
nodes be used to enhance database security?
i. {{180 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -}}
b. How is the data on the cloud encrypted?
i. Using {{152 - - - - - - - - - - - - - - - - - - - -}} stored in {{153 - - - -}} of the
{{154 - - - - - - -}}
ii. Transparent Data Encryption (TDE) - SQL Server
c. How does this architecture help in the event of compromised data storage
credentials?
i. The {{181 - - - - -}}needed to create the {{182 - - - - - - - -}} is{{183 - - - - - -
- - - - - - - - - - - -}}.
5. Backup strategy
a. {{185 - - - - - - - - - - - - - - - -}} create backups.
Choosing a storage account and performance tier
1. Azure storage service uses accounts of two types
a. General Purpose Accounts
i. Blob containers
1. Scalable {{188}} store that can store{{186 - - - - - - - - - - - - - -}}
e.g. {{187 - - - - - - - - - - - - - - - - - - - - - - - - -}}.
ii. Tables
1. Introduction to Table storage - Object storage in Azure
2. Contain {{189 - - - - - - - - - - - -}} - {{190}}NO SQL databases
iii. Queue Storage
1. Store for {{191 - - - - - - - - - - - - - - - - - - - -}} by other Azure
components/functions.
2. Queues can be upto {{192}} size and contain {{193 - - - - - - -}}
iv. File Shares
1. {{194 - - - - - - - - - - - - - - - - - - - - -}} that can be accessed by
{{195 - - - - - - - - - - - -}} using {{196 - - - - -}}.
2. Distinguished from corporate file shares as they allow for {{197 - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
v. Virtual Machine Disks
1. Specialised blobs that store {{198 - - - - - - - - - - - - - - - - - - - - - - -
- - - -}}
b. Blob Storage Accounts
i. Allows for {{199 - - - - - - - - - - - - - - - - - - -}}
ii. Understanding block blobs, append blobs, and page blobs - Azure
Storage
1. Block blobs - efficient large blob storage that is divided into blocks
2. Append blobs - like block blobs but adds blocks to the end of the
blob when the blob is modified. It does not allow for update or
deletion operations on blocks. It does not expose its blocks’ IDs.
c. What types of Blobs are used to store SQL Server data files in Azure?
i. {{200 - -}}
d. What type of account and container should be used to store sql server data files?
i. {{202 - - - -}} account with a {{203}} container.
e. Why is a Blob Storage Account type not used to store SQL Server data files?
i. It only supports {{205 - - - - - - - -}} but not {{206 - -}}.

Implementing SQL Server Data Files in Azure

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 - - - - - - - - - - - - - - -}}.

Stretch Database Architecture


1. What happens under the hood of SQL Server when you enable stretch for a database?
a. SQL Server creates {{249 - - - - - - - -}} that uses {{251 - - - - - - - - - - - - - - - - -}}.
2. How about when enabled for a table?
a. It provides {{252 - - - - - - - - - - - - - - - - - - - - - - - -}} and {{253 - - - - - - - - - - - - - -
- - - - - - - - -}}.
3. How are queries run against a database with Stretch database enabled?
a. Queries are issued to {{254 - - - - - - - - - - - - - - -}}.
b. {{262 - - - - - -}} query which is shown in {{259 - - - - - - - - -}} as a {{260 - - - - - -
-}}.
c. The query is then run against {{255 - - - - - - - - - - - - - - - - - - - - -}}
4. How does Stretch Database affect the performance of queries?
a. Although the query operation is {{263 - -}} from the user, there is an increase in
{{261 - - - - - - - - - - - - -}}.

Stretch Database Security


1. What option must be enabled before using Stretch Database on an instance?
a. Enable the {{264 - - - - - - - - - - - - - - - - - -}}
2. How is this option enabled?
a. Using the {{265 - - - - - - - - - - - - - - - - -}} stored procedure.
3. What are the permissions and credentials required to enable a database for Stretch
Database?
a. The user must have the {{267 - - - - -}} permission and provide {{268 - - - - - - - - -
- - - - - - - - - - - - - - - - -}}.
4. How is a table enabled for Stretch Database?
a. The table must belong to{{269 - - - - - - - - - - - - - - - - -}}
5. What privileges are required to enable a table for stretch databases?
a. Any user with the {{270}} privileges can {{271 - - - - - - - - - - - - - - - -}}

Limitations for using Stretch Database

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 - - - - - - - - - - - -}}.

Stretch Database Advice on Data Migration Assistant


1. What does the Data Migration Assistant (3.3) assist in when dealing with the stretch
database?
a. Overview of Data Migration Assistant (SQL Server) - SQL Server
b. Identify tables and {{281 - - - - - - - - - - - - - - - - - - - - - -}}
c. Identify any issues {{280 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}}
2. Steps for analysing the compatibility for a database.
a. Start the {{282 - - - - - - - - - - - - - - - -}}
b. Add a new{{283 - - - - - - -}}
c. Set the source as {{285 - -}}
d. Set the target as {{286 - - - - - -}}
e. Tick the options for{{287 - - - - - - - - - - -}} and {{288 - - - - - - -}}
f. Enter the {{289 - - -}} name and provide the {{290 - - - - - - - -}} as well as the
{{291 - - - - - -}}.
g. Click connect, select all the databases to be analysed and then add
h. Click Start Assessment and you will be asked to login to Azure.
3. After the Stretch Database Advisor has finished its analysis, the results show;
a. The database size {{294 - -}}
b. The number of tables{{293 - - - - - - - - - - - -}}
c. The detailed nested results that show details of {{292 - - - - - - - - - - - - - - - - - - -
-}}.

Implementing a Stretch Database


Enable Stretch Database for a database - SQL Server Stretch Database
1. Using SSMS;
a. Benefit:{{295 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -}}
b. Wizard: use the{{297 - - - - - - - - - - -}} wizard to;
i. Create a {{296 - - - - - -}}
ii. Identify {{298 - - - - - - - -}}
iii. Configure the {{299 - - - - - - - - - -}}.
c. After implementing a stretch database, how can it be monitored?
i. {{300 - - - - - - - - -}}
ii. What information does it provide?
1. Information on {{301 - - - - - - - - - - - - - -}}
2. {{302 - - - -}} status
d. What is the prerequisite for disabling the stretch database feature on a table it is
enabled on already?
i. {{303 - - - - - - - - - - - - - - - - - -}} otherwise you will lose any data in the
stretch table.
2. Using TSQL
a. What is the prerequisite of using a Stretch database on individual tables?
i. The feature must{{304 - - - - - - - - - - -}}
b. What permissions are mandatory for enabling stretch database?
i. {{305 - - - - -}} permissions
c. Steps
i. {{306 - - - - - - - - - - -}} server where data{{307 - - - - - - - - - - - - - - - - -}}
ii. Create a new firewall rule on the Azure server, to {{308 - - - - - - - - - - - - -
- - - - - - - - - - - -}}.
iii. To configure a database for stretch database it must have a database
master key.
1. What is its purpose?
a. Secure {{309 - - - -}}s that Stretch Database uses to {{310 -
- - - - - - - - - - -}}.
2. Statement
a. CREATE MASTER KEY ENCRYPTION BY
PASSWORD='<password>';
b. CREATE MASTER KEY (Transact-SQL) - SQL Server
c. Create a Database Master Key - SQL Server
iv. Before you enable a database for stretch database, you must provide a
credential.
1. Why?
a. It is used for {{311 - - - - - - - - - - - - - - - - - - - - - - -}}
2. Statement
a. CREATE DATABASE SCOPED CREDENTIAL
<db_scoped_credential_name> WITH IDENTITY =
'<identity>' , SECRET = '<secret>' ;
b. CREATE DATABASE SCOPED CREDENTIAL (Transact-
SQL) - SQL Server
3. What permission is required to run this command?
a. ALTER ANY credential
v. To configure a database for stretch database,
1. Which command is run?
a. {{312 - - - -}}
2. Command
a. ALTER DATABASE [db_name] SET
REMOTE_DATA_ARCHIVE=ON (server = ‘servername’,
credential=’database_scoped_credential_name’)
3. Sever name
a. Provide the fullname of the server e.g.
i. <stretchdatabasesevername>.database.windows.n
et

You might also like