AWS Glue runs ETL tasks in a serverless environment powered by Apache Spark. AWS Data Pipeline can also use alternative engines such as Hive or Pig. For ETL tasks that do not demand the use of Apache Spark, AWS Data Pipeline is likely to be the preferable choice.