Service · Analytics · Builds on SAA-C03
Amazon EMR
Run Spark on EMR on EC2, Serverless or EKS, with Spot task nodes, and choose EMR or Glue.
You know from Solutions Architect Associate
- EMR runs Spark, Hadoop and Hive on managed clusters.
- Task nodes can use Spot Instances. Data lives in S3.
- EMR Serverless and EMR on EKS remove the cluster.
EMR on EC2
- You manage
- Cluster and nodes
- Pick it when
- Custom stack, tuning, Spot
EMR Serverless
- You manage
- Only the job
- Pick it when
- Spark with no cluster
EMR on EKS
- You manage
- Kubernetes cluster
- Pick it when
- You already run Kubernetes
| Option | You manage | Pick it when |
|---|---|---|
| EMR on EC2 | Cluster and nodes | Custom stack, tuning, Spot |
| EMR Serverless | Only the job | Spark with no cluster |
| EMR on EKS | Kubernetes cluster | You already run Kubernetes |
What it is
EMR on EC2 gives a cluster you configure: instance types, Spark settings, bootstrap actions and libraries. EMR Serverless runs Spark jobs with no cluster: you submit a job to an application and pay for the resources it uses. EMR on EKS runs Spark on an existing Kubernetes cluster. All three read and write S3.
What it is
On EC2, instance fleets let you list several instance types and mix On-Demand and Spot with a target capacity, so EMR can fill the cluster even when one Spot pool runs dry. Keep the primary and core nodes On-Demand and put Spot on task nodes, because losing a task node costs only time. EMR Studio is a notebook environment where data scientists write Spark code and attach it to a cluster or to Serverless.
What it is
Choose Glue when the job is a standard transform and you want the least operations. Choose EMR when you need other engines (Hive, Presto, Flink), custom libraries, tuning of Spark settings, an existing Hadoop or Spark codebase or long interactive sessions, or when Spot task nodes cut the cost of a very large job.
Remember
- EMR on EC2: full control of the cluster. Serverless: no cluster. On EKS: reuse Kubernetes.
- Instance fleets mix instance types and Spot with On-Demand.
- Spot for task nodes. On-Demand for primary and core nodes.
- EMR Studio: notebooks for Spark development.
- Glue for standard serverless ETL. EMR for custom stacks, tuning and cost at scale.
On the exam
- “Custom Spark libraries and fine-grained tuning on a very large job” points to Amazon EMR.
- “Run Spark with no cluster to manage, and not on Glue” points to EMR Serverless.
- “Lower the cost of a large Spark job” points to Spot Instances on EMR task nodes.
In this task · 1.2
Glue ETL
DataBrew
EMR
Data Wrangler
SageMaker Processing
Athena
Feature Store
- Transforming streaming data
- Feature engineering techniques
- Embedding models for text and image
- Text pre-processing and tokenization
- Preparing documents for RAG
- Masking, redaction and anonymization
- Data for fine-tuning, continued pre-training and distillation