# Amazon EMR

Cloud service · AWS. Updated 2026-11-12. Page: https://blowstack.com/tools/cloud-services-hub/amazon-emr

> Amazon EMR is a managed AWS service for large-scale data processing with frameworks like Hadoop and Spark, offering petabyte-scale analytics on a scalable infrastructure at a lower cost than owning Hadoop clusters.

Practice exams covering Amazon EMR: [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [DEA-C01 AWS Certified Data Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate), [MLA-C02 AWS Certified Machine Learning Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate), [SCS-C03 AWS Certified Security - Specialty](https://blowstack.com/practice-exams/aws-certified-security-specialty), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate), [SAP-C03 AWS Certified Solutions Architect - Professional](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional).

## 7 key features of Amazon EMR

1. **Big Data Framework Management**: EMR simplifies launching, terminating, and managing big data frameworks like Apache Hadoop or Spark, handling setup, configuration, and optimization.
2. **Diverse Data Processing**: Supports various big data frameworks beyond Hadoop and Spark, like HBase, Presto, and Flink, with pre-configured or customizable settings.
3. **Scalability and Resource Management**: Automatically scales the underlying cluster, managing tasks like patching and monitoring, and offers auto-scaling to match workload demands.
4. **Cost Efficiency**: Provides a pay-as-you-go model, reducing costs compared to on-premises deployments, with options for Spot and Reserved Instances to further save expenses.
5. **Data Accessibility**: Facilitates easy access and processing of data from storage solutions like Amazon S3 and databases such as DynamoDB.
6. **Security Features**: Offers encryption, network isolation with Amazon VPC, and integrated identity management with AWS IAM to ensure data security and compliance.
7. **Deployment Flexibility**: Features like EMR on EKS for Kubernetes integration and EMR on Outposts for on-premises data processing, along with a Serverless mode, provide flexible deployment options.

## Where Amazon EMR is used

1. **Data Transformation and Preprocessing**: EMR is often used to clean, transform, and prepare large datasets for analysis. Organizations use it to run ETL (extract, transform, load) jobs to organize data into structured formats, making it easier to analyze and obtain insights.
2. **Log Analysis**: EMR processes and analyzes log data from web and mobile apps using frameworks like Hive, Pig, and Spark, enabling deep insights into user behavior and system performance.
3. **Data Warehousing**: Companies build data warehouses on EMR, ingesting and structuring data from diverse sources for business intelligence and reporting.
4. **Machine Learning Workflows**: Utilizing Spark MLlib and Hadoop MapReduce, EMR supports data preprocessing, model training, and evaluation for machine learning.
5. **Genomic Research**: Life science organizations leverage EMR for genomic sequencing and analysis, handling large-scale datasets in research.
6. **Fraud Detection**: Financial institutions analyze transaction data on EMR to identify fraud and suspicious activities, leveraging its scalability for large-scale data analysis.
7. **IoT Analytics**: EMR processes sensor data from IoT devices, supporting predictive maintenance and smart city applications through data transformation and analysis.
8. **Website Analytics**: By processing website logs and activity data, EMR aids companies in understanding customer behavior and optimizing conversions.

## How Amazon EMR is priced

- **Amazon EMR on Amazon EC2**: You pay for the EMR service as well as the underlying EC2 instances and any attached EBS volumes. These charges are billed per second with a one-minute minimum. EC2 pricing options include On-Demand, one-year and three-year Reserved Instances, Capacity Savings Plans, and Spot Instances. Spot Instances are spare EC2 capacity available at up to a 90% discount compared to On-Demand prices.
- **Amazon EMR on Amazon EKS**: If you are running EMR on Amazon EKS (Elastic Kubernetes Service), you pay for the EKS cluster resources and EMR charges. EMR pricing is based on the vCPU and memory resources requested for the pods running your jobs, measured from the start of the EMR application image download until the pod terminates and rounded up to the nearest second.
- **Amazon EMR on AWS Outposts**: Provides an on-premises option. Pricing includes EMR service charges as well as EC2 instance and Outpost hardware costs.
- **Amazon EMR Serverless**: You pay for aggregate worker vCPU, memory, and storage resources from the time workers are ready to run your workload until they stop, rounded up to the nearest second with a one-minute minimum. Workers configured to start at application startup are billed until the application stops or remains idle. With custom images, billing begins when EMR Serverless starts downloading the image.
- **Amazon EMR WAL**: Amazon EMR WAL charges for usage as EMR-WAL-WALHours, writes as WriteRequestGiB, and reads as ReadRequestGiB.
- **Public IPv4 Address Charges**: Standard public IPv4 address charges apply to IPv4 addresses used with EMR on EC2 clusters, EMR on EKS clusters, and EMR Serverless applications.

## Services Amazon EMR works with

- **[Amazon S3](https://blowstack.com/tools/cloud-services-hub/amazon-s3)**: Amazon EMR uses Amazon S3 for data storage and to store EMR logs and bootstrap actions.
- **[Amazon EC2](https://blowstack.com/tools/cloud-services-hub/amazon-ec2)**: Amazon EMR provisions a cluster of Amazon EC2 instances to run big data frameworks and applications.
- **[AWS Glue](https://blowstack.com/tools/cloud-services-hub/aws-glue)**: Amazon EMR integrates with AWS Glue for data cataloging and schema management.
- **[Amazon CloudWatch](https://blowstack.com/tools/cloud-services-hub/amazon-cloudwatch)**: Amazon EMR integrates with Amazon CloudWatch to monitor and log metrics and events from EMR clusters.
- **[Amazon Athena](https://blowstack.com/tools/cloud-services-hub/amazon-athena)**: Amazon EMR clusters running Apache HBase can expose their tables to Athena through the Athena HBase connector. This lets users query HBase data with SQL and combine it with other federated data sources.
- **[Amazon Aurora](https://blowstack.com/tools/cloud-services-hub/amazon-aurora)**: Amazon EMR can use an Aurora MySQL-compatible database as an external Hive metastore. Keeping metadata outside the cluster allows successive EMR clusters to reuse the same table definitions.
- **[Amazon Corretto](https://blowstack.com/tools/cloud-services-hub/amazon-corretto)**: Amazon EMR includes Amazon Corretto as a Java runtime for its big-data applications. The Corretto and Java versions available depend on the EMR release and application.
- **[Amazon DataZone](https://blowstack.com/tools/cloud-services-hub/amazon-datazone)**: Amazon EMR Spark jobs can publish lineage events to Amazon DataZone using OpenLineage integration. These events connect processing jobs with their input and output datasets in the data catalog.
- **[Amazon DocumentDB (with MongoDB compatibility)](https://blowstack.com/tools/cloud-services-hub/amazon-documentdb-(with-mongodb-compatibility))**: Amazon EMR Spark jobs can read and write Amazon DocumentDB collections through the MongoDB Spark Connector. This supports distributed transformations of document data without implementing individual database API calls in each job.
- **[Amazon DynamoDB](https://blowstack.com/tools/cloud-services-hub/amazon-dynamodb)**: Amazon EMR includes a DynamoDB connector for accessing DynamoDB tables from Hadoop and Hive workloads. Jobs can analyze table contents, export them to S3, or load processed results back into DynamoDB.
- **[Amazon Elastic Block Store (Amazon EBS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-block-store-(amazon-ebs))**: Amazon EMR can attach EBS volumes to cluster instances for application data, HDFS storage, and processing spill space. Instance groups and fleets can specify volume types, sizes, and volumes per instance.
- **[Amazon Elastic Container Registry (Amazon ECR)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-container-registry-(amazon-ecr))**: Amazon EMR on EKS and EMR Serverless can use custom container images stored in Amazon ECR. These images package job dependencies, libraries, and runtime customizations.
- **[Amazon Elastic Kubernetes Service (Amazon EKS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-kubernetes-service-(amazon-eks))**: Amazon EMR on EKS runs EMR Spark workloads in namespaces on EKS clusters. EMR virtual clusters associate job submission and management with those Kubernetes namespaces.
- **[Amazon EventBridge](https://blowstack.com/tools/cloud-services-hub/amazon-eventbridge)**: Amazon EMR publishes events for changes such as cluster and step states, while EMR Serverless publishes application and job-run state changes. EventBridge rules can route these events to notification or workflow targets.
- **[Amazon FSx](https://blowstack.com/tools/cloud-services-hub/amazon-fsx-(for-all-types))**: Amazon EMR clusters can mount FSx for Lustre file systems using Lustre clients installed on the cluster nodes. Spark and Hadoop workloads can use the shared file system for high-throughput access to processing data.
- **[Amazon Keyspaces (for Apache Cassandra)](https://blowstack.com/tools/cloud-services-hub/amazon-keyspaces-(for-apache-cassandra))**: Amazon EMR Spark jobs can access Amazon Keyspaces through the Spark Cassandra Connector, with TLS and the appropriate authentication configuration. This enables distributed reads, transformations, and writes against Keyspaces tables.
- **[Amazon Kinesis Data Streams](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-streams)**: Amazon EMR provides Spark connectivity to Kinesis Data Streams for streaming analytics. Spark jobs can consume records from stream shards and continuously transform or aggregate incoming events.
- **[Amazon Managed Service for Prometheus](https://blowstack.com/tools/cloud-services-hub/amazon-managed-service-for-prometheus)**: Amazon EMR Serverless can send Spark application metrics to an Amazon Managed Service for Prometheus workspace through its Prometheus monitoring configuration. These metrics support monitoring application execution and resource usage.
- **[Amazon Managed Streaming for Apache Kafka](https://blowstack.com/tools/cloud-services-hub/amazon-managed-streaming-for-apache-kafka)**: Amazon EMR applications can use Kafka connectors to consume from and produce to Amazon MSK topics. Spark Structured Streaming jobs can process Kafka events using the cluster's configured network access and authentication.
- **[Amazon Managed Workflows for Apache Airflow (Amazon MWAA)](https://blowstack.com/tools/cloud-services-hub/amazon-managed-workflows-for-apache-airflow-(amazon-mwaa))**: Amazon EMR workloads can be orchestrated by MWAA using Airflow's EMR operators and sensors. DAGs can create clusters, submit steps or serverless jobs, wait for completion, and clean up resources.
- **[Amazon OpenSearch Service](https://blowstack.com/tools/cloud-services-hub/amazon-opensearch-service)**: Amazon EMR Spark and Hadoop jobs can use OpenSearch connectors to read index data and write processing results to OpenSearch Service. For example, a batch job can transform raw records into documents for search and visualization.
- **[Amazon QuickSight](https://blowstack.com/tools/cloud-services-hub/amazon-quicksight)**: Amazon EMR clusters can serve as QuickSight data sources through supported query engines such as Hive, Presto, and Spark. QuickSight can query the cluster to build datasets and dashboards.
- **[Amazon RDS](https://blowstack.com/tools/cloud-services-hub/amazon-rds)**: Amazon EMR can store its Hive metastore in an external RDS database rather than on the cluster's primary node. This preserves table metadata when a cluster terminates and allows compatible clusters to share it.
- **[Amazon Redshift](https://blowstack.com/tools/cloud-services-hub/amazon-redshift)**: Amazon EMR includes Spark integration for reading and writing Amazon Redshift data, with S3 used to stage bulk transfers. Redshift can also load supported output files directly from EMR cluster hosts using its EMR COPY source.
- **[Amazon SageMaker](https://blowstack.com/tools/cloud-services-hub/amazon-sagemaker)**: Amazon EMR clusters can be attached to supported SageMaker notebook environments for interactive Spark and Hive work. Data scientists can submit distributed processing from notebooks while EMR provides the execution cluster.
- **[Amazon SageMaker Data Wrangler](https://blowstack.com/tools/cloud-services-hub/amazon-sagemaker-data-wrangler)**: Amazon EMR can supply data to SageMaker Data Wrangler through supported Hive or Presto connections. Users can query cluster-managed datasets and import the results into data preparation flows.
- **[Amazon Simple Queue Service (Amazon SQS)](https://blowstack.com/tools/cloud-services-hub/amazon-simple-queue-service-(amazon-sqs))**: The legacy EMRFS consistent view feature could send S3 consistency-error notifications to an SQS queue. This integration applies to older EMR configurations that use consistent view, which is no longer needed for S3's strong consistency.
- **[Amazon VPC](https://blowstack.com/tools/cloud-services-hub/amazon-vpc)**: Amazon EMR clusters run in VPC subnets and use security groups to control traffic to and between nodes. EMR Serverless can also attach application workers to a VPC to access private resources.
- **[AWS Auto Scaling](https://blowstack.com/tools/cloud-services-hub/aws-auto-scaling)**: Amazon EMR supports rule-based automatic scaling of instance groups through Application Auto Scaling. Scaling policies use CloudWatch alarms to add or remove cluster capacity in response to workload conditions.
- **[AWS CloudFormation](https://blowstack.com/tools/cloud-services-hub/aws-cloudformation)**: Amazon EMR resources can be provisioned with CloudFormation, including clusters, instance groups and fleets, security configurations, studios, and serverless applications. Templates can define repeatable processing environments and their supporting resources.
- **[AWS CloudTrail](https://blowstack.com/tools/cloud-services-hub/aws-cloudtrail)**: Amazon EMR API activity is recorded by CloudTrail for auditing. Events identify actions such as creating a cluster, adding steps, or terminating resources, along with the requesting identity.
- **[AWS Config](https://blowstack.com/tools/cloud-services-hub/aws-config)**: AWS Config can record supported Amazon EMR resource configurations and evaluate them with compliance rules. For example, the EMR block-public-access rule checks whether the account's public-access protection is enabled.
- **[AWS Data Pipeline](https://blowstack.com/tools/cloud-services-hub/aws-data-pipeline)**: Amazon EMR clusters and steps can be scheduled through Data Pipeline using EMR resource and activity definitions. A pipeline can launch a processing cluster, execute work, and terminate the cluster afterward.
- **[AWS Directory Service](https://blowstack.com/tools/cloud-services-hub/aws-directory-service)**: Amazon EMR's Kerberos integration can establish a cross-realm trust with an Active Directory domain, including AWS Managed Microsoft AD. Directory users can then authenticate to supported applications on the cluster.
- **[AWS IAM Identity Center (AWS Single Sign-On)](https://blowstack.com/tools/cloud-services-hub/aws-iam-identity-center-(aws-single-sign-on))**: Amazon EMR can authenticate users with IAM Identity Center and propagate their identities to supported data-access integrations. Lake Formation or S3 Access Grants can then authorize access using those identities.
- **[AWS Identity and Access Management (IAM)](https://blowstack.com/tools/cloud-services-hub/aws-identity-and-access-management-(iam))**: Amazon EMR uses IAM service roles, instance profiles, and job runtime roles to control resource management and data access. IAM policies also determine who can create clusters, submit jobs, and use EMR Studio.
- **[AWS Key Management Service (AWS KMS)](https://blowstack.com/tools/cloud-services-hub/aws-key-management-service-(aws-kms))**: Amazon EMR can use KMS keys in encryption configurations for supported local storage and S3 data access. EMR Serverless also supports customer-managed keys for supported application data encryption.
- **[AWS Lake Formation](https://blowstack.com/tools/cloud-services-hub/aws-lake-formation)**: Amazon EMR can enforce Lake Formation permissions when supported processing engines access governed tables in the Glue Data Catalog. Runtime roles or propagated user identities determine which tables, columns, and rows a job may access.
- **[AWS Outposts](https://blowstack.com/tools/cloud-services-hub/aws-outposts)**: Amazon EMR can run supported cluster configurations on Outposts, bringing managed big-data processing to on-premises infrastructure. Supported releases can access local S3 on Outposts data through the Hadoop S3A connector.
- **[AWS PrivateLink](https://blowstack.com/tools/cloud-services-hub/aws-privatelink)**: Amazon EMR supports interface VPC endpoints for private access to supported EMR APIs. Clients can manage clusters or submit supported workloads without sending API traffic through an internet gateway.
- **[AWS Resource Groups and Tag Editor](https://blowstack.com/tools/cloud-services-hub/aws-resource-groups-and-tag-editor)**: Amazon EMR clusters support resource tags that can be managed with Tag Editor and used in tag-based resource groups. Teams can organize processing clusters by project, owner, or environment.
- **[AWS Secrets Manager](https://blowstack.com/tools/cloud-services-hub/aws-secrets-manager)**: Amazon EMR supports Secrets Manager for credentials used by features such as LDAP authentication and supported external Hive metastore configurations. Secrets can be referenced by configuration instead of embedding passwords directly in cluster settings.
- **[AWS Security Token Service (AWS STS)](https://blowstack.com/tools/cloud-services-hub/aws-security-token-service-(aws-sts))**: Amazon EMR uses STS to obtain temporary credentials for assumed roles, including job runtime roles and EMRFS role mappings. These credentials let jobs access authorized AWS resources without storing long-lived access keys.
- **[AWS Service Catalog](https://blowstack.com/tools/cloud-services-hub/aws-service-catalog)**: Amazon EMR Studio can use Service Catalog products as administrator-approved cluster templates. Studio users can provision clusters from these templates while administrators constrain the available configurations.
- **[AWS Step Functions](https://blowstack.com/tools/cloud-services-hub/aws-step-functions)**: Amazon EMR has optimized Step Functions integrations for creating clusters, submitting and waiting for steps, changing capacity, and terminating clusters. Step Functions also supports orchestrating EMR Serverless and EMR on EKS job runs.
- **[AWS Systems Manager](https://blowstack.com/tools/cloud-services-hub/aws-systems-manager)**: Amazon EMR cluster instances can be managed through Systems Manager when the SSM Agent, instance permissions, and network connectivity are configured. Session Manager provides shell access without opening inbound SSH, while Run Command can execute administrative commands across nodes.

## What is Amazon EMR

Amazon EMR (Elastic MapReduce) is a cloud service provided by Amazon Web Services (AWS) that simplifies the processing and analysis of large volumes of data. It integrates with various open-source frameworks, notably Apache Hadoop and Apache Spark, but also supports others like Apache Hive and Presto, enabling a wide range of data processing tasks, from batch processing to real-time analytics.

At its core, EMR facilitates the setup, management, and scaling of data processing clusters in the cloud. Users can quickly provision as many or as few resources as needed, scaling the computing capacity to meet the demands of their data processing jobs. This flexibility helps optimize costs, as users only pay for the resources they consume.

EMR service quotas can overlap: some apply to specific APIs, while account-level quotas also constrain the aggregate API request rate and bucket replenishment rate. Increasing a specific quota may therefore leave requests subject to account-level throttling.

EMR applications can run on EMR clusters with Amazon EC2 instances, on AWS Outposts, on Amazon EKS, or with EMR Serverless.

EMR clusters can be persistent or transient. Persistent clusters run until you shut them down and suit interactive analysis and data warehousing; transient clusters automatically shut down after processing a job flow and suit periodic processing tasks.

EMR is fault tolerant for node failures and continues job execution if a node goes down. It provisions a new node when a core node fails, but does not replace nodes if all nodes in the cluster are lost. It also integrates seamlessly with other AWS services, such as Amazon S3 for storage, Amazon RDS and Amazon DynamoDB for database services, and Amazon CloudWatch for monitoring and logging, making it a versatile choice for comprehensive data analytics pipelines.

For Apache HBase applications on EMR on EC2, Amazon EMR WAL provides a durable managed storage layer for write-ahead logs that outlives the cluster.

Security in EMR is robust, offering features like encryption in transit and at rest, network isolation using Amazon VPC, and integrated identity management with AWS IAM. This ensures that data is not only processed efficiently but also kept secure from unauthorized access.

Overall, Amazon EMR provides a comprehensive, scalable, and cost-effective solution for processing vast amounts of data, making it a popular choice for organizations looking to leverage big data analytics without the overhead of managing traditional on-premises data centers.

## Concepts related to Amazon EMR

- [Schema Evolution](https://blowstack.com/tools/cloud-concepts-hub/schema-evolution): Schema evolution is the controlled modification of data structures over time while managing compatibility between existing data, producers, and consumers.
- [Transport Layer Security](https://blowstack.com/tools/cloud-concepts-hub/transport-layer-security): Transport Layer Security is a cryptographic protocol that protects network communications through encryption, integrity checking, and endpoint authentication.
- [Checkpointing](https://blowstack.com/tools/cloud-concepts-hub/checkpointing): Checkpointing is the practice of durably saving processing progress and any required execution state so work can resume from a known recovery point.
- [Columnar Storage](https://blowstack.com/tools/cloud-concepts-hub/columnar-storage): Columnar storage organizes data by column rather than by complete row, allowing analytical workloads to read and compress selected fields efficiently.
- [Data Skew](https://blowstack.com/tools/cloud-concepts-hub/data-skew): Data skew is an uneven distribution of data or data-processing work across partitions, tasks, or nodes in a distributed system.
- [Event-Time Processing](https://blowstack.com/tools/cloud-concepts-hub/event-time-processing): Event-time processing transforms and aggregates data according to when events occurred rather than when a processing system receives or handles them.
- [Relational Joins](https://blowstack.com/tools/cloud-concepts-hub/relational-joins): Relational joins combine rows from two datasets according to a matching condition, usually involving shared keys.
- [Broadcast Joins](https://blowstack.com/tools/cloud-concepts-hub/broadcast-joins): Broadcast joins replicate a small join input to participating workers so each worker can join it locally with its portion of a larger input.
- [Data Deduplication](https://blowstack.com/tools/cloud-concepts-hub/data-deduplication): Data deduplication identifies repeated representations of the same information and removes or consolidates them according to defined matching and retention rules.
- [Data Locality](https://blowstack.com/tools/cloud-concepts-hub/data-locality): Data locality is the placement of data and the workloads that use it close together to reduce network movement, latency, and transfer costs.
- [Distributed Processing](https://blowstack.com/tools/cloud-concepts-hub/distributed-processing): Distributed processing divides computational work across multiple networked machines that coordinate to produce a result.
- [Key Salting](https://blowstack.com/tools/cloud-concepts-hub/key-salting): Key salting adds a controlled extra value to a key so that records sharing a hot key can be distributed across multiple processing or storage partitions.
- [Null Handling](https://blowstack.com/tools/cloud-concepts-hub/null-handling): Null handling is the explicit detection, interpretation, and treatment of missing or unknown values during data processing.
- [Optimistic Concurrency Control](https://blowstack.com/tools/cloud-concepts-hub/optimistic-concurrency-control): Optimistic Concurrency Control lets concurrent operations proceed independently and validates their assumptions before committing changes.
- [Predicate Pushdown](https://blowstack.com/tools/cloud-concepts-hub/predicate-pushdown): Predicate pushdown is a query optimization that moves filtering closer to the data source so fewer records reach later processing stages.
- [Repartitioning](https://blowstack.com/tools/cloud-concepts-hub/repartitioning): Repartitioning redistributes data among processing or storage partitions to change parallelism, balance workloads, or align data with downstream operations.
- [SQL Joins](https://blowstack.com/tools/cloud-concepts-hub/sql-joins): SQL joins combine rows from tables or other relational inputs according to a matching condition and rules for retaining unmatched rows.
- [Vectorization](https://blowstack.com/tools/cloud-concepts-hub/vectorization): Vectorization expresses operations over arrays or batches of values so optimized execution engines can process them with less per-element overhead.
- [Window Functions](https://blowstack.com/tools/cloud-concepts-hub/window-functions): Window functions calculate values across related rows while preserving each row in the query result.
- [Windowed Aggregation](https://blowstack.com/tools/cloud-concepts-hub/windowed-aggregation): Windowed aggregation computes summaries over bounded groups of events, typically defined by time, so continuously arriving data can become usable metrics and machine-learning features.
- [Algorithmic Complexity](https://blowstack.com/tools/cloud-concepts-hub/algorithmic-complexity): Algorithmic complexity describes how an algorithm’s resource requirements grow as the size of its input increases.
- [Analytics](https://blowstack.com/tools/cloud-concepts-hub/analytics): Analytics is the systematic examination of data to answer questions, identify patterns, and support decisions.
- [Apache Parquet](https://blowstack.com/tools/cloud-concepts-hub/apache-parquet): Apache Parquet is an open, column-oriented binary file format designed for efficient storage and analytical processing of structured and nested data.
- [Batch Processing](https://blowstack.com/tools/cloud-concepts-hub/batch-processing): Batch processing collects data into bounded groups and processes each group as a job rather than handling every record immediately as it arrives.
- [Binning](https://blowstack.com/tools/cloud-concepts-hub/binning): Binning converts numerical values into discrete intervals so machine learning models can use ranges rather than exact measurements.
- [Class Resampling](https://blowstack.com/tools/cloud-concepts-hub/class-resampling): Class resampling changes how frequently examples from each target class appear during training to reduce the effects of class imbalance.
- [Data Partitioning](https://blowstack.com/tools/cloud-concepts-hub/data-partitioning): Data partitioning divides a dataset into smaller subsets using defined rules so that storage, ingestion, processing, and queries can operate on manageable portions of the data.
- [Data Shuffling](https://blowstack.com/tools/cloud-concepts-hub/data-shuffling): Data shuffling is the random reordering of records to reduce unintended ordering effects during dataset preparation and machine learning training.
- [Exception Handling](https://blowstack.com/tools/cloud-concepts-hub/exception-handling): Exception handling is the controlled detection and management of runtime failures so a program can recover, release resources, or terminate with useful diagnostic information.
- [Feature Engineering](https://blowstack.com/tools/cloud-concepts-hub/feature-engineering): Feature engineering is the process of creating, transforming, and selecting input variables so machine learning models can learn useful patterns from data.
- [Generators](https://blowstack.com/tools/cloud-concepts-hub/generators): Generators are resumable routines that produce a sequence of values on demand instead of constructing the entire sequence in memory.
- [JDBC](https://blowstack.com/tools/cloud-concepts-hub/jdbc): JDBC (Java Database Connectivity) is a standard Java API for connecting to databases, executing SQL, and processing results through database-specific drivers.
- [Joins](https://blowstack.com/tools/cloud-concepts-hub/joins): Joins combine records from two or more datasets using a condition that defines how the records relate.
- [Lemmatization](https://blowstack.com/tools/cloud-concepts-hub/lemmatization): Lemmatization maps inflected word forms to their dictionary form, or lemma, using linguistic rules, vocabulary, and sometimes grammatical context.
- [Min-Max Scaling](https://blowstack.com/tools/cloud-concepts-hub/min-max-scaling): Min-Max Scaling is a feature transformation that uses minimum and maximum reference values to linearly map numeric data to a chosen range, commonly 0 to 1.
- [Mutual TLS](https://blowstack.com/tools/cloud-concepts-hub/mutual-tls): Mutual TLS is a TLS configuration in which both communicating peers authenticate each other with digital certificates while encrypting data in transit.
- [ORC File Format](https://blowstack.com/tools/cloud-concepts-hub/orc-file-format): ORC File Format is an open, columnar binary format that stores typed data with compression and statistics for efficient analytical processing.
- [Parallel Processing](https://blowstack.com/tools/cloud-concepts-hub/parallel-processing): Parallel processing divides work into tasks that execute simultaneously across multiple processing resources to reduce completion time or increase throughput.
- [Random Sampling](https://blowstack.com/tools/cloud-concepts-hub/random-sampling): Random sampling selects observations from a defined population using chance rather than their position, convenience, or an engineer’s judgment.
- [Schema on Read](https://blowstack.com/tools/cloud-concepts-hub/schema-on-read): Schema on read is an approach that applies a schema when data is read or queried rather than requiring the storage layer to enforce that schema when data is written.
- [Stratified Sampling](https://blowstack.com/tools/cloud-concepts-hub/stratified-sampling): Stratified sampling divides a population into defined, nonoverlapping groups and randomly selects records from each group to create a sample.
- [Tree Data Structures](https://blowstack.com/tools/cloud-concepts-hub/tree-data-structures): Tree data structures organize nodes into an acyclic hierarchy of parent–child relationships for efficient navigation, searching, and transformation.
- [Unsupervised Learning](https://blowstack.com/tools/cloud-concepts-hub/unsupervised-learning): Unsupervised learning is a machine learning approach that discovers patterns or structure in data without predefined target labels.

## Amazon EMR exam questions

Real practice exam questions on Amazon EMR, with the correct answer and its explanation.

### Question 1 (CLF-C02)

**Question:**

A research company processes large datasets each night using existing Apache Hadoop MapReduce and Apache Spark applications on an on-premises cluster. The company wants to move this processing to AWS, retain these frameworks without rewriting the applications for a different processing engine, and reduce the effort required to provision and manage the cluster. Which AWS service is the best fit?

**Correct answer:** Amazon EMR

**Explanation:** Amazon EMR provides managed big data processing environments that support frameworks including Apache Hadoop and Apache Spark. It can run the company's existing applications while simplifying cluster provisioning, management, and scaling.

### Question 2 (MLA-C02)

**Question:**

An advertising company receives ad impressions and clicks in two separate streaming sources. Each impression contains an impression_id, impression_time, and campaign attributes. Each click contains the corresponding impression_id and a click_time. Both timestamps represent when the activity occurred.

An ML engineer must enrich clicks with campaign attributes only when the click occurred between the impression_time and 30 minutes after the impression_time. Either stream can arrive out of order. The company wants to use its existing Spark Structured Streaming code, configure a 10-minute event-time watermark delay for each stream, and automatically remove join state that can no longer produce eligible matches as both streams advance.

Which solution meets these requirements?

**Correct answer:** Run the application on Amazon EMR. Apply 10-minute watermarks to impression_time and click_time before an inner join. Join on impression_id and require click_time to be at least impression_time and no later than impression_time plus 30 minutes.

**Explanation:** Spark Structured Streaming on Amazon EMR supports stream-stream joins with event-time watermarks and time-range conditions. Watermarks on both inputs, combined with this bounded timestamp relationship, let Spark determine when retained records can no longer produce eligible matches and clean up state on both sides as event time advances.

### Question 3 (SAP-C03)

**Question:**

A manufacturer is designing a nightly analytics pipeline that uses Amazon EMR on EC2 to transform 4 TB of equipment measurements. The transformed results must be loaded into tables in an existing provisioned Amazon Redshift cluster in a private VPC. The EMR jobs can produce either Parquet or CSV output.

The company's standard deployment places EMR clusters in a separate analytics VPC in the same AWS Region. However, the company permits workload-specific EMR clusters in the Redshift VPC. Security policy requires intermediate results to remain in the EMR cluster's HDFS until they are loaded into Redshift; staging the results in Amazon S3 or another service is prohibited. The solution must load the output in parallel without a custom data-transfer application.

Which design meets these requirements?

**Correct answer:** Deploy the EMR cluster in the Redshift VPC. Write the transformed results as multiple CSV files in HDFS, and run Redshift COPY using the EMR cluster as the source after configuring the required permissions and network access.

**Explanation:** Redshift COPY can load text files in parallel directly from EMR HDFS, including CSV files. Placing EMR in the Redshift VPC also satisfies the same-VPC and same-Region requirements. No intermediate staging service or custom transfer application is necessary.

### Question 4 (DEA-C01)

**Question:**

A company creates temporary Amazon EMR clusters on Amazon EC2 to run Spark SQL batch jobs. The jobs query external tables whose data is stored in Amazon S3. Different clusters must share the same table definitions and partition metadata, and metadata changes made by one cluster must be available to subsequent clusters after that cluster terminates. Currently, each cluster uses its default cluster-local Hive metastore. The company does not want to provision or maintain a database server for metadata storage.

Which solution meets these requirements with the least operational overhead?

**Correct answer:** Configure every cluster to use the AWS Glue Data Catalog as its Hive metastore, and grant the cluster runtime roles the required Data Catalog permissions.

**Explanation:** Amazon EMR can use the AWS Glue Data Catalog as an external Hive metastore for Spark SQL. The catalog persists independently of cluster lifecycles and lets multiple clusters access shared table definitions and partitions without maintaining a database server.

### Question 5 (SCS-C03)

**Question:**

A financial services company launches short-lived Amazon EMR clusters on Amazon EC2 to process sensitive records with Hadoop and Spark. An audit finds that encrypting the input data in Amazon S3 and the clusters' EBS volumes does not protect HDFS block transfers and Spark shuffle traffic between nodes. The company wants to encrypt these transfers by using EMR-managed configuration, without maintaining custom bootstrap scripts or modifying individual jobs. Its internal certificate authority can issue certificates that cover the clusters' internal DNS names.

Which solution should a security engineer implement?

**Correct answer:** Create an EMR security configuration that enables in-transit encryption with the PEM certificate provider. Supply an Amazon S3 ZIP archive containing the required PEM certificate, private key, and trusted certificate bundle. Grant the EC2 instance profile access to the archive, and specify the security configuration when launching each cluster.

**Explanation:** An EMR security configuration can enable in-transit encryption for supported Hadoop and Spark communications, including HDFS data transfers and Spark shuffle traffic. The PEM provider obtains the required certificate material from a ZIP archive in S3. Certificates must satisfy EMR requirements, including appropriate coverage of node DNS names, and the EC2 instance profile needs permission to retrieve the archive. The security configuration is selected when the cluster is created.

### Question 6 (SAA-C03)

**Question:**

A financial services company operates an Amazon EKS cluster with established namespace isolation, pod admission policies, and automated worker-node scaling. The company needs to run Apache Spark jobs that deduplicate transaction records, join them with reference data, and write curated datasets to Amazon S3. Security policy requires all transformation compute to run as pods in a designated namespace of the existing EKS cluster so that the cluster's admission policies apply. The company wants to minimize the effort required to configure and maintain the Spark runtime.

Which solution best meets these requirements?

**Correct answer:** Create an Amazon EMR virtual cluster associated with the designated EKS namespace. Submit the Spark jobs through Amazon EMR on EKS and configure their execution role for access to the S3 datasets.

**Explanation:** Amazon EMR on EKS runs Spark workloads as pods in an existing EKS cluster. An EMR virtual cluster maps to an EKS namespace, allowing the company to use its existing Kubernetes controls while using an AWS-managed Spark runtime.

## Practice Amazon EMR in a full exam

Questions on Amazon EMR in each practice exam, with every answer option and an explanation for each:

- [DEA-C01](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate): 50 questions
- [MLA-C02](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate): 9 questions
- [SAA-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate): 5 questions
- [SAP-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional): 4 questions
- [SCS-C03](https://blowstack.com/practice-exams/aws-certified-security-specialty): 2 questions
- [CLF-C02](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner): 1 question

## Learn Amazon EMR in lessons

14 short lessons on Amazon EMR in 6 certification courses.

- CLF-C02: Amazon EMR: managed big data processing (Premium), https://app.blowstack.com/lessons/amazon-emr-managed-big-data-processing-clf-c02
- MLA-C02: Amazon EMR vs AWS Glue: choosing a Spark processing service (Premium), https://app.blowstack.com/lessons/amazon-emr-vs-aws-glue-choosing-a-spark-processing-service-mla-c02
- SAP-C03: Amazon EMR and AWS Glue: choosing a processing platform (Premium), https://app.blowstack.com/lessons/amazon-emr-and-aws-glue-choosing-a-processing-platform-sap-c03
- DEA-C01: Amazon EMR: storage for processing workloads (Premium), https://app.blowstack.com/lessons/amazon-emr-storage-for-processing-workloads-dea-c01
- SCS-C03: Amazon EMR: inter-node encryption in transit (Premium), https://app.blowstack.com/lessons/amazon-emr-inter-node-encryption-in-transit-scs-c03
- SAA-C03: Amazon EMR and AWS Glue: choosing a processing service (Premium), https://app.blowstack.com/lessons/amazon-emr-and-aws-glue-choosing-a-processing-service-saa-c03
