A company is migrating an on-premises Microsoft SQL Server database to Amazon RDS for SQL Server. The database uses SQL Server Agent jobs for ETL processes. After migration, the company needs to continue running these jobs. What is the MOST efficient way to manage these jobs in the AWS cloud?
Trap 1: Install SQL Server Agent on an Amazon EC2 instance and connect to…
SQL Server Agent cannot connect to RDS for SQL Server from an EC2 instance; RDS does not support SQL Server Agent.
Trap 2: Use the AWS Schema Conversion Tool (AWS SCT) to convert the jobs to…
AWS SCT is for schema conversion, not for job migration, and the target is SQL Server, not PostgreSQL.
Trap 3: Use AWS Database Migration Service (AWS DMS) tasks to replicate the…
AWS DMS does not migrate SQL Server Agent jobs; it only migrates data.
- A
Recreate the jobs as AWS Lambda functions and trigger them with Amazon CloudWatch Events.
AWS Lambda can run ETL jobs and be scheduled via CloudWatch Events, replacing SQL Server Agent.
- B
Install SQL Server Agent on an Amazon EC2 instance and connect to RDS.
Why wrong: SQL Server Agent cannot connect to RDS for SQL Server from an EC2 instance; RDS does not support SQL Server Agent.
- C
Use the AWS Schema Conversion Tool (AWS SCT) to convert the jobs to PostgreSQL functions.
Why wrong: AWS SCT is for schema conversion, not for job migration, and the target is SQL Server, not PostgreSQL.
- D
Use AWS Database Migration Service (AWS DMS) tasks to replicate the jobs.
Why wrong: AWS DMS does not migrate SQL Server Agent jobs; it only migrates data.