

# 資料模式
<a name="a-sus-data-patterns"></a>

**Topics**
+ [SUS 4 如何利用資料存取和使用模式，來支持您的永續性發展目標？](w2aac19c15c11b5.md)

# SUS 4 如何利用資料存取和使用模式，來支持您的永續性發展目標？
<a name="w2aac19c15c11b5"></a>

實作資料管理實務來減少支援工作負載所需的佈建儲存，以及使用它的必要資源。了解您的資料，並使用最能支援資料業務價值及其使用方式的儲存技術和組態。當需求減少時，將資料循環到效率較高、效能較低的儲存，並刪除不再需要的資料。 

 最佳實務： 

# SUS04-BP01 實作資料分類政策
<a name="sus_sus_data_a2"></a>

 將資料分類，以了解其對業務成果的重要性。使用此資訊來判斷何時可將資料移動到更節能的儲存，或是可以安全刪除它。 

 **若未建立此最佳實務，暴露的風險等級：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  判斷資料的分佈、保留和刪除需求。 
+  對磁碟區和物件使用標記，來記錄用於判斷其管理方式的中繼資料，包括資料分類。 
+  定期稽核您的環境是否有未標記和未分類的資料，並對資料進行適當的分類和標記。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [資料分類程序](https://docs.aws.amazon.com/whitepapers/latest/data-classification/data-classification-process.html) 
+  [使用 AWS 雲端 以支援資料分類](https://docs.aws.amazon.com/whitepapers/latest/data-classification/leveraging-aws-cloud-to-support-data-classification.html) 
+  [標記來自 AWS Organizations 的政策](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html) 

# SUS04-BP02 使用支援資料存取和儲存模式的技術
<a name="sus_sus_data_a3"></a>

 使用最能支援您的資料存取和儲存方式的儲存類型，以在支援工作負載的同時，也將佈建的資源降至最低。例如，固態裝置 (SSD) 比磁性磁碟機更耗能，只應用於活躍資料使用案例。針對不常存取的資料，使用節能的存檔類別儲存。 

 **若未建立此最佳實務，暴露的風險等級：** 中 

## 實作指引
<a name="implementation-guidance"></a>
+  監控您的資料存取模式。 
+  根據存取模式將資料遷移至適當的技術。 
+  將存檔資料遷移到專為該用途設計的儲存。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [Amazon EBS 磁碟區類型](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) 
+  [Amazon EC2 執行個體存放區](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) 
+  [Amazon S3 智慧型分層](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering.html) 
+  [使用 Amazon S3 儲存類別](https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage-class-intro.html) 
+  [什麼是 Amazon CloudWatch？](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) 
+  [什麼是 Amazon Glacier？](https://docs.aws.amazon.com/amazonglacier/latest/dev/introduction.html) 

 **相關影片：** 
+  [AWS 上資料湖的架構模式](https://www.youtube.com/watch?v=XpTly4XHmqc&ab_channel=AWSEvents) 

# SUS04-BP03 使用生命週期政策來刪除不需要的資料
<a name="sus_sus_data_a4"></a>

 管理所有資料的生命週期並自動執行刪除時間表，將工作負載的總儲存需求降至最低。 

 **若未建立此最佳實務，暴露的風險等級為：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  為所有資料分類類型定義生命週期政策。 
+  設定自動生命週期政策以強制執行生命週期規則。 
+  刪除不使用的磁碟區和快照。 
+  根據生命週期規則，在適用的情況下彙總資料。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [Amazon ECR 生命週期政策](https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html) 
+  [Amazon EFS 生命週期管理](https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html) 
+  [Amazon S3 智慧型分層](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering.html) 
+  [使用 AWS Config 規則 評估資源](https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config.html) 
+  [在 Amazon S3 上管理儲存生命週期](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) 
+  [AWS Elemental MediaStore 中的物件生命週期政策](https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle.html) 

 **相關影片：** 
+  [Amazon S3 生命週期](https://www.youtube.com/watch?v=53eHNSpaMJI&ab_channel=AmazonWebServices) 

# SUS04-BP04 將區塊儲存中的過度佈建降至最低
<a name="sus_sus_data_a5"></a>

 若要最小化總佈建儲存，請建立具有適合工作負載之大小分配的區塊儲存。使用彈性磁碟區，隨著資料成長擴展儲存，無需調整連接到運算資源的儲存大小。定期檢閱彈性磁碟區，並縮減過度佈建的磁碟區以符合目前的資料大小。 

 **若未建立此最佳實務，暴露的風險等級為：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  監控資料磁碟區的使用率。 
+  使用彈性磁碟區和受管區塊資料服務，以在持久性資料增長時自動分配額外的儲存空間。 
+  設定資料磁碟區的目標使用率水準，並調整超出預期範圍的磁碟區大小。 
+  根據資料調整唯讀磁碟區的大小。 
+  將資料遷移到物件存放區，避免從區塊儲存的固定磁碟區大小佈建多餘容量。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [Amazon EBS 彈性磁碟區](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modify-volume.html) 
+  [Amazon FSx 文件](https://docs.aws.amazon.com/fsx/index.html) 
+  [什麼是 Amazon CloudWatch？](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) 
+  [什麼是 Amazon Elastic File System？](https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html) 

# SUS04-BP05 移除不需要或多餘的資料
<a name="sus_sus_data_a6"></a>

 必要時才複製資料，將消耗的總儲存空間降至最低。使用在檔案和區塊層級刪除重複資料的備份技術。限制獨立磁碟冗餘陣列 (RAID) 組態的使用，除非需要滿足服務水準協議 (SLA)。 

 **若未建立此最佳實務，暴露的風險等級：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  使用可在區塊和物件層級刪除重複資料的機制。 
+  使用這樣的備份技術：可在區塊、檔案和物件層級進行增量備份和刪除重複資料。 
+  只有在需要滿足 SLA 時，才使用 RAID。 
+  集中日誌和追蹤資料、刪除重複的日誌項目，並建立根據需要微調詳細程度的機制。 
+  僅在合理的情況下才預先填入快取。 
+  建立快取監控和自動化，據以調整快取大小。 
+  推送工作負載新版本時，從物件存放區和邊緣快取移除過時的部署和資產。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [Amazon EBS 快照](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) 
+  [變更 CloudWatch Logs 中的日誌資料保留](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#SettingLogRetention) 
+  [Amazon FSx for Windows File Server 上的重複資料刪除](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/using-data-dedup.html) 
+  [Amazon FSx for ONTAP 的功能，包括重複資料刪除](https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/what-is-fsx-ontap.html#features-overview) 
+  [使 Amazon CloudFront 上的檔案無效](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html) 
+  [使用 AWS Backup 來備份和還原 Amazon EFS 檔案系統](https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html) 
+  [什麼是 Amazon CloudWatch Logs？](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html) 
+  [在 Amazon RDS 上使用備份](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html) 

 **相關範例：** 
+  [實驗室：使用 Amazon Redshift 資料共用來優化資料模式](https://wellarchitectedlabs.com/sustainability/300_labs/300_optimize_data_pattern_using_redshift_data_sharing/) 

# SUS04-BP06 使用共用檔案系統或物件儲存體存取通用資料
<a name="sus_sus_data_a7"></a>

 採用共用儲存和單一真實來源，避免資料重複並降低工作負載的總儲存需求。需要時才從共用儲存體擷取資料。分離未使用的磁碟區以使更多資源可用。 

 **若未建立此最佳實務，暴露的風險等級：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  當資料有多個取用者時，將資料遷移到共用儲存體。 
+  需要時才從共用儲存體擷取資料。 
+  根據您的使用模式刪除資料，並實施存留時間 (TTL) 功能來管理快取資料。 
+  將磁碟區與未積極使用它們的用戶端分開。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [Amazon FSx](https://aws.amazon.com/fsx/) 
+  [快取策略](https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/Strategies.html) 
+  [什麼是 Amazon Elastic File System？](https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html) 
+  [什麼是 Amazon S3？](https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html) 

# SUS04-BP07 將跨網路的資料移動降到最少
<a name="sus_sus_data_a8"></a>

 使用共用儲存，並從區域資料存放區存取資料，將支援工作負載資料移動所需的總網路資源降至最低。 

 **若未建立此最佳實務，暴露的風險等級：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  盡可能將資料存放至接近消費者的位置。 
+  對區域性使用的服務進行分區，以便將區域專屬的資料存放在使用它的區域內。 
+  透過網路複製變更時，在區塊層級進行複製，而不要在檔案或物件層級進行。 
+  在透過網路移動資料之前先壓縮資料。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [優化您的 AWS 永續性架構，第 III 部分：聯網](https://aws.amazon.com/blogs/architecture/optimizing-your-aws-infrastructure-for-sustainability-part-iii-networking/) 
+  [AWS 全球基礎設施](https://aws.amazon.com/about-aws/global-infrastructure/) 
+  [Amazon CloudFront 主要功能，包括 CloudFront Global Edge Network](https://aws.amazon.com/cloudfront/features/) 
+  [壓縮 Amazon OpenSearch Service 中的 HTTP 請求](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/gzip.html) 
+  [使用 Amazon EMR 進行中間資料壓縮](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-output-compression.html#HadoopIntermediateDataCompression) 
+  [將壓縮的資料檔案從 Amazon S3 載入至 Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/dg/t_loading-gzip-compressed-data-files-from-S3.html) 
+  [使用 Amazon CloudFront 提供壓縮檔案服務](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html) 

# SUS04-BP08 僅在難以重新建立時才備份資料
<a name="sus_sus_data_a9"></a>

 為了將儲存消耗降至最低，僅備份具有業務價值或需要滿足合規要求的資料。檢查備份政策，並在復原案例中排除沒有價值的暫時性儲存。 

 **若未建立此最佳實務，暴露的風險等級：** 低 

## 實作指引
<a name="implementation-guidance"></a>
+  使用資料分類來確定需要備份的資料。 
+  排除可以輕鬆重建的資料。 
+  從備份排除暫時性資料。 
+  排除資料的本機副本，除非從共同位置還原資料所需的時間不符合服務水準協議 (SLA) 的要求。 

## 資源
<a name="resources"></a>

 **相關文件：** 
+  [使用 AWS Backup 來備份和還原 Amazon EFS 檔案系統](https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html) 
+  [Amazon EBS 快照](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html) 
+  [在 Amazon Relational Database Service 上使用備份](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html) 