An enterprise needs to replicate changes from an on-premises Microsoft SQL Server instance to a target Amazon Aurora PostgreSQL DB cluster using AWS DMS. The SQL Server instance has Transparent Data Encryption (TDE) enabled. The migration team has already converted the database schema using the AWS Schema Conversion Tool (AWS SCT). To achieve a near-zero downtime cutover, the AWS DMS task must run with ongoing replication (CDC) enabled while keeping the source database encrypted.
What must the migration team configure to enable the AWS DMS replication task to decrypt and read the source transaction logs during CDC?
- AConfigure the AWS DMS source endpoint to use the MS-REPLICATION method, which reads change data directly from the system tables decrypted in-memory by the SQL Server engine.
- Export the TDE certificate and private key from the SQL Server source, import them into the AWS DMS certificate store, and associate the certificate ARN with the source endpoint.Cevap
- CDisable Transparent Data Encryption (TDE) on the source SQL Server database before starting the replication task, as AWS DMS does not support CDC on encrypted databases.
- DStore the TDE certificate in AWS Secrets Manager encrypted with the AWS-managed KMS key `aws/secretsmanager`, and reference the secret ARN in the source endpoint's extra connection attributes.
Cevap
Export the TDE certificate and private key from the SQL Server source, import them into the AWS DMS certificate store, and associate the certificate ARN with the source endpoint.
To perform ongoing replication (CDC) from an on-premises Microsoft SQL Server source database that has Transparent Data Encryption (TDE) enabled, AWS DMS must have access to the certificate and private key used to encrypt the database. This allows AWS DMS to decrypt the transaction logs during replication. The migration team must export the TDE certificate and private key, import them into the AWS DMS certificate store, and associate the certificate ARN with the source endpoint. In addition, the DMS user must have the necessary permissions (such as `db_owner` or `sysadmin` role) to access the transaction logs.
Adım Adım Çözüm
Anahtar Kavram
AWS DMS CDC replication from a TDE-encrypted Microsoft SQL Server source requires importing the TDE certificate and private key into the AWS DMS certificate store and associating it with the source endpoint.