# Storage

## Azure Key Vault

* To manage the encrption key, secret, etc
* The content of key vault will be replicated to a secondary region that defined by azure paired region

## Storage Account

### Types

#### Blob

* To store image ,video objects and generating url

#### File

* To used to create file share

### Authorization

#### Access Key

* To create the changeable key on account level

#### Share Access Signature

* To create signature on account or blob level with specific date range and specific permission scope

#### Azure Active Directory

* To access the storage based on the role

### Redundancy

#### Locally-redundant

* Copies of data on the same data center

#### Zone-redundant

* Copies of data on the different data center within the same region

#### Geo-redundant

* Copies of data on different data center which is in different region

### Access Tiers

#### Hot

* Lower access cost, Higher storage cost

#### Cold

* Middle&#x20;

#### Archive

* Opposite as hot tiers

### File Sync

* Allow multiple computer can edit, upload and delete files on the file storage by mapping the disks of computer and storage

## SQL Database

* SLA 99.995%
* To make use of features, such as automated backup, automated tuning

### Failover & Active geo replication

* Create the replica of the database and sync it
* If for any reason your primary database fails, you can initiate a geo-failover to any of your secondary databases. When a secondary is promoted to the primary role, all other secondaries are automatically linked to the new primary.

### Backup

* An essential part of any business continuity and disaster recovery strategy, because they help protect your data from corruption or deletion. You can perform the backup with different frequency
* Can perform point-in-time of a deleted database on the same server
* Can perform long-term retention,  backups can be saved in storage account up to 10 years

### Performance Insight & Automatic Tuning

* To inspect the performance of the sql query
* To tune the performance automatically or manually , such as : managing index

## Cosmos DB

* Fully managed NOSQL and relational database
* Can enable multi-region write and replicate data globally

## Redis Cache

* Managed redis service
