Skip to main content
XenonStack

Big Data Engineering

XenonStack Blog AWS Data Lake Analytics: Which Service Fits Which Job

and | Published | Updated

AWS Data Lake Analytics: Which Service Fits Which Job
15:56

Key takeaway

  • Which AWS service fits which data lake job? Compare S3, Glue, Lake Formation, Athena, Flink, OpenSearch, Redshift and EMR, with security and cost checks.

An AWS data lake is Amazon S3 for storage, the AWS Glue Data Catalog for metadata, AWS Lake Formation for access control, and a set of query and processing engines that read the same data in place. The analytics choice is therefore mostly a matching exercise: Amazon Athena for ad-hoc SQL, Amazon Managed Service for Apache Flink and Amazon Data Firehose for streams, Amazon OpenSearch Service for log and search workloads, Amazon Redshift for warehousing and Amazon EMR for open-source big data frameworks.

This guide is the service-selection view for CIOs, CDOs and data architects. For the architecture side, read our post on the AWS data lakehouse, and for zones, catalogue and lineage controls read governed data lake architecture and controls. Here we cover which AWS service does which job, what has been renamed or changed, and what to check on security and cost.

What is an AWS data lake and what sits around it?

A data lake is a central repository that holds data from many sources in its raw form, whether structured, semi-structured or unstructured, so that it can be shaped later for the question being asked. On AWS the repository is Amazon S3, and AWS lists data lakes among its S3 use cases alongside archive, backup and big data analytics. S3 on its own only stores objects. The lake becomes usable when a catalogue describes the data, permissions control who sees it, and an engine queries it.

That gives four layers: storage (S3), catalogue (AWS Glue Data Catalog), governance (AWS Lake Formation) and compute (Athena, Redshift, EMR, Flink and others). Because the engines read the same S3 data through the same catalogue, you can add or swap an engine without copying the data.

Video: what a data lake is and why enterprises build one.

Which AWS service fits which analytics job?

Start from the job, not the service. The table maps each common job to the AWS service built for it, when it fits, and what to know about its current status.

Two-column diagram mapping analytics jobs to AWS services: ad-hoc SQL to Athena, streams to Flink and Data Firehose, logs and search to OpenSearch Service, warehouse and big data to Redshift and EMR.
JobAWS serviceWhen it fitsCurrent status and note
Store raw and curated dataAmazon S3Any volume of structured and unstructured data, in place for several enginesChoose a storage class to match access pattern (see below)
Catalogue and ETLAWS GlueDiscover schemas with crawlers, run serverless ETL, keep one metadata storeServerless; the Data Catalog is read by Athena, EMR and Redshift Spectrum
Govern accessAWS Lake FormationDatabase, table, column, row and cell permissions across enginesAugments IAM; audit through AWS CloudTrail
Ad-hoc SQL on S3Amazon AthenaAnalysts and BI tools querying the lake without serversServerless; you pay for the queries you run
Streaming analyticsAmazon Managed Service for Apache FlinkContinuous processing of streams, time-series metrics, real-time dashboardsFlink applications in Java, Scala, Python or SQL
Streaming deliveryAmazon Data FirehoseLoad streams into S3, Iceberg tables, Redshift or OpenSearch without writing consumersFully managed; can batch, compress and encrypt before delivery
Log, search and operational analyticsAmazon OpenSearch ServiceLog analytics, application monitoring, clickstream analysisSupports OpenSearch and legacy Elasticsearch OSS up to 7.10
Data warehousingAmazon RedshiftPetabyte-scale warehouse; Redshift Spectrum queries S3 without loading itFully managed data warehouse
Open-source big dataAmazon EMRTeams that need Hadoop, Spark, Flink or similar frameworksManaged cluster platform; formerly Amazon Elastic MapReduce

How do storage, catalogue and governance work in an AWS data lake?

Amazon S3 and storage classes

S3 stores any amount of data and replicates it across multiple servers within AWS data centres, and general purpose buckets can store objects redundantly across multiple Availability Zones. The archive classes differ sharply in retrieval, so the old line that Glacier retrieves within five minutes no longer describes the options. S3 Glacier Instant Retrieval gives millisecond access, Glacier Flexible Retrieval takes minutes to hours, and Glacier Deep Archive takes hours, with objects in the last two restored before use. S3 Intelligent-Tiering suits data with unknown or changing access patterns and charges a small monthly monitoring fee instead of retrieval fees.

AWS Glue Data Catalog and crawlers

AWS Glue is a serverless data integration service. Its crawlers infer schemas from data in S3 and add them to the Data Catalog, a central metadata repository that Athena, EMR and Redshift Spectrum can query. Glue also runs ETL and ELT jobs on a serverless Spark engine, with scheduling, triggers and sensitive data detection. Data quality rules are a separate topic, covered in automating data quality with AWS Glue.

AWS Lake Formation permissions

Lake Formation provides its own grant and revoke permission model that augments IAM. Controls apply at database, table, column, row and cell level and are enforced across Athena, Redshift Spectrum, EMR, AWS Glue and Amazon Quick. LF-Tags let a few logical tags manage permissions on many resources, and hybrid access mode lets you adopt Lake Formation one use case at a time without disrupting existing users. Access attempts are recorded in AWS CloudTrail. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, which is the layer to plan once agents start querying the lake.

How do interactive, streaming, operational and warehouse analytics differ?

Interactive analytics with Amazon Athena

Athena analyses data directly in S3 using standard SQL, and AWS describes it as serverless with no infrastructure to manage and payment only for the queries you run. It also runs Apache Spark code through notebooks and APIs. Athena is usually the first engine to add, because it needs no cluster and BI tools can connect to it. See Athena with QuickSight for the visualisation side. For teams that want business users to ask questions of enterprise data in plain language, AgentAnalyst lets teams ask questions of enterprise data in plain language and get real-time insights.

Streaming analytics with Managed Service for Apache Flink and Data Firehose

Amazon Managed Service for Apache Flink runs Flink applications for streaming ETL, time-series analytics and real-time dashboards, and handles provisioning, scaling and checkpoints. Amazon Data Firehose is the simpler route when the aim is delivery rather than processing: it loads streams into S3, Apache Iceberg tables, Redshift or OpenSearch, and scales automatically. Our post on batch and real-time ingestion for a data lake covers the pipeline side.

Operational analytics with Amazon OpenSearch Service

Operational analytics means searching, filtering and aggregating logs and clickstream data. Amazon OpenSearch Service is the managed service for this, with ingestion from S3, Kinesis, DynamoDB and CloudWatch Logs. Earlier versions of this post called it Amazon Elasticsearch Service, but AWS documentation now names it Amazon OpenSearch Service. It supports both OpenSearch and legacy Elasticsearch OSS up to version 7.10, and AWS recommends upgrading to the latest OpenSearch version.

Warehousing with Amazon Redshift and Redshift Spectrum

Amazon Redshift is a fully managed, petabyte-scale data warehouse. Redshift Spectrum queries structured and semi-structured files in S3 without loading them into Redshift tables, and several clusters can query the same S3 dataset without separate copies. Use Redshift when you need warehouse-style concurrency and modelled tables, and keep raw data in S3. The Redshift and QuickSight guide has more, and data warehouse vs data lake vs data mesh helps with the wider decision.

Open-source processing with Amazon EMR

Amazon EMR is a managed cluster platform for big data frameworks such as Apache Hadoop and Apache Spark, and AWS lists HBase, Presto and Flink as well. It fits teams with existing Spark or Hadoop code, or workloads that need framework-level control. If SQL on S3 covers the need, Athena or Glue avoids running clusters.

What has changed since older AWS data lake guides?

Older guidanceCurrent position
Amazon Elasticsearch Service (the name used in earlier versions of this post)AWS documentation now names Amazon OpenSearch Service, supporting OpenSearch and legacy Elasticsearch OSS up to 7.10
Amazon Glue (earlier wording)AWS Glue, a serverless data integration service
Kinesis Data Firehose (earlier wording)AWS documentation now names Amazon Data Firehose, with Apache Iceberg tables as a destination
Glacier retrieves within five minutesThree archive classes with millisecond, minutes-to-hours and hours retrieval
Macie detects attacksMacie discovers sensitive data in S3 and flags bucket exposure; Amazon GuardDuty is the service AWS points to for malicious activity
Pay only for queries, not storageAthena is pay per query, but S3 storage, Glue, Redshift and other services carry their own charges
QuickSight as a standalone nameAmazon Quick now includes QuickSight capabilities

What do security, governance and cost need?

Encryption is on by default: since 5 January 2023 all new objects uploaded to S3 are encrypted with SSE-S3 at no extra cost. For more control over keys, SSE-KMS integrates AWS Key Management Service, letting you view separate keys, edit key policies and follow key use in CloudTrail. Changing a bucket's default to SSE-KMS does not re-encrypt existing objects. Amazon Macie uses machine learning and pattern matching to find sensitive data in S3 and to report public or shared buckets, so run it before opening a lake to analysts.

For cost, the main lever in Athena is the amount of data scanned. Partitioning restricts what each query scans, which AWS says improves performance and reduces cost. In our own delivery work, raw log queries without partitioning were flagged as likely to be expensive, so partition by the columns people filter on, usually date, before opening the lake to wide use. For agent-driven access, Elixir Govern (formerly AgentGRC) keeps autonomous agent actions inside policy, with the audit trail risk teams need.

In what order should an enterprise adopt AWS data lake analytics?

  1. Land and catalogue. Put data in S3, run Glue crawlers and agree naming and partitioning conventions.
  2. Govern early. Set Lake Formation permissions and LF-Tags, enable CloudTrail audit and run Macie on the buckets.
  3. Add Athena. Give analysts SQL access and measure data scanned per query.
  4. Add streaming only where latency matters. Use Data Firehose for delivery and Managed Service for Apache Flink for processing.
  5. Add Redshift or EMR when a workload proves it needs them. Concurrency-heavy reporting suggests Redshift; framework-specific code suggests EMR.
  6. Prepare for agents. Decide which decisions AI agents may make on lake data and what context and policy they depend on.

When is an AWS data lake the wrong choice?

A lake adds a catalogue, permissions and several engines to operate. If your data is small, structured and used by one reporting team, a warehouse alone is simpler. If you run mostly on another cloud, the cross-cloud movement and the separate governance model may outweigh the benefit; our Azure data lake guide covers that platform. Keep streaming services for use cases that genuinely need low latency, and avoid adding EMR clusters for work Athena or Glue can do. For help with the build, see our AWS managed services and Amazon Web Services solutions pages.

Before you decide which engines to add, the useful exercise is to map the decisions your teams and agents will take on lake data. To map one such decision, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is the difference between an AWS data lake and a data warehouse?

A data lake on S3 keeps raw and curated data in open formats for several engines. Amazon Redshift is a petabyte-scale data warehouse for modelled tables, and Redshift Spectrum can query S3 data without loading it, so the two are often used together.

Which AWS service should I start with for querying a data lake?

Amazon Athena is the usual start. It queries S3 with standard SQL, is serverless and charges for the queries you run, so there is no cluster to size.

What is the current AWS service for log search and operational analytics?

Amazon OpenSearch Service, which earlier versions of this post called Amazon Elasticsearch Service. It supports OpenSearch and legacy Elasticsearch OSS up to version 7.10, and AWS recommends upgrading to the latest OpenSearch version.

How do I control who can see data in an AWS data lake?

Use AWS Lake Formation. It adds database, table, column, row and cell permissions on top of IAM, enforced across Athena, Redshift Spectrum, EMR, AWS Glue and Amazon Quick, with audit through CloudTrail.

How can I reduce Athena query cost?

Partition data by commonly filtered columns. AWS states that when a query filters on the partition key, Athena scans only that partition, which improves performance and reduces cost.

What's next?

Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.

Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue