All Products
Search
Document Center

Key Management Service:Instance selection

Last Updated:Mar 31, 2026

Key Management Service (KMS) offers three tiers: free default keys, paid software key management instances, and paid hardware key management instances. Default keys come in two forms — service keys and customer master keys (CMKs).

Use the following sections to identify the right tier for your needs.

Choose your instance type

Answer these questions to narrow down your options:

QuestionSoftware instanceHardware instance
Do you need to encrypt data in self-managed applications?对对
Do you need secret lifecycle management?对对
Do you need FIPS 140-2 Level 3 compliance?错对
Do you need higher QPS (up to 8,000) via a dedicated gateway?错对
Do you need key backup management?对错

Common recommendations:

  • Server-side encryption for Alibaba Cloud services only — Default keys (service key or CMK) are free and sufficient.

  • Custom application encryption or secret management — Use a software key management instance. It supports asymmetric keys, bring your own key (BYOK), secret lifecycle management, and multi-account sharing.

  • Strict compliance or high-throughput requirements — Use a hardware key management instance for Federal Information Processing Standard (FIPS) 140-2 Level 3 validation and dedicated gateway queries per second (QPS) up to 8,000. Hardware instances require purchasing two hardware security modules (HSMs).

Full comparison

对 Supported. 错 Not supported.

CategoryItemDefault keySoftware key management instanceHardware key management instanceReferences
Service keyCMK
BillingBilling methodFreeFreeSubscription or pay-as-you-goSubscription or pay-as-you-go. Requires purchasing two HSMs. For more information, see Billing of KMS.Overview
ScenariosServer-side encryption in Alibaba Cloud services对对对对Scenarios
Data encryption in self-managed applications错错对对
Secret lifecycle management错错对对
FIPS 140-2 Level 3 compliance错错错对
QuotaComputing performance (symmetric encryption and decryption)1,000 QPS. Upgrade not supported.1,000 QPS. Upgrade not supported.Shared gateway: 1,000 QPS, upgrade not supported. Dedicated gateway: 1,000, 2,000, or 4,000 QPS; upgrades supported.Shared gateway: 1,000 QPS, upgrade not supported. Dedicated gateway: 2,000, 4,000, 6,000, or 8,000 QPS; upgrades supported.Performance quotas
Number of keysOne service key per Alibaba Cloud service per region (per account)One CMK per region per account1,000–100,0001,000–100,000
Number of secretsNot supportedNot supported0–100,0000–100,000
Network endpoint typePublic network and virtual private cloud (VPC) networkPublic network and VPC networkPublic network and VPC networkPublic network and VPC networkRegions and endpoints
ManagementMulti-account resource sharing错错对对Share a KMS instance across multiple Alibaba Cloud accounts
Backup management错错对错Backups
Security audit对对对对Use ActionTrail to query KMS events
Key managementKey specificationsAliyun_AES_256Aliyun_AES_256Symmetric: Aliyun_AES_256. Asymmetric: RSA_2048, RSA_3072, EC_P256, EC_P256K.Symmetric: Aliyun_AES_256, Aliyun_AES_192, Aliyun_AES_128. Asymmetric: RSA_2048, RSA_3072, RSA_4096, EC_P256, EC_P256K.Overview of key management
Import of external key material (BYOK)错对对对Import key material into a symmetric key and import key material into an asymmetric key
Key rotation对 Requires a value-added plan.对 Requires a value-added plan.对 Symmetric keys only. Asymmetric keys not supported.错Configure key rotation
Scheduled key deletion错对对对Schedule a key deletion task
Key deletion protection错对对对Enable key deletion protection
Key alias对对对对Manage key aliases
Key tag对对对对Tag management
Cryptographic operationsData encryption and decryption对对对对Alibaba Cloud SDK
Signature generation and verification错错对对Alibaba Cloud SDK
Secret managementSecret creation错错对对Secret management
Secret deletion错错对对
Secret rotation错错对对
Secret tag错错对对
Secret value retrieval错错对对Secret client, Secret JDBC client, and RAM secret plug-in