The promise of AI isn’t in the algorithms, it’s in the data that feeds them. While enterprises race to deploy machine learning models and generative AI assistants, most discover the hard way that AI’s transformative potential lives or dies at the foundation: your data architecture. The difference between AI that delivers measurable business value and AI that disappoints isn’t the sophistication of your models. It’s whether you’ve built the right pipelines to fuel them.
This guide explains the multi-layered architecture—from Ingestion to Consumption—and the key AWS services (S3, Glue, Redshift, SageMaker, Bedrock) necessary to build cohesive, scalable data pipelines for modern AI applications. You’ll learn how to select the right services for each pipeline stage and architect systems that are ready for both today’s analytics and tomorrow’s autonomous AI agents.
AI is not just another technological wave: it’s a seismic shift redefining how enterprises create value. Those that will unlock its full potential are the ones with a strong, well-structured data foundation and the right level of maturity.
Building and consolidating such a platform with AWS services is essential to fully harness the power of AI and turn innovation into measurable business outcomes.
Erwan Simon
Cloud & Data Consultant
In this article, you’ll read:
Analytical vs. Operational Data
Successful AI architecture starts with understanding your data. The difference between operational and analytical data isn’t just theoretical—it determines which architectural patterns you choose, which services you use, and whether your AI initiative succeeds. Traditionally kept separate, these two types of data are now converging to meet the demands of modern AI, bringing both new challenges and opportunities to system design.
Operational Data
Operational data powers your organisation’s daily work. It’s the real-time, transactional information that executes business processes as they occur—tracking the current state of individual entities, such as a specific customer, purchase order, or inventory item. For example, when a customer places an order, operational data flows through point-of-sale, inventory, and shipping systems to complete that single transaction.
This data resides in Online Transaction Processing (OLTP) systems, such as relational databases (Amazon RDS) or NoSQL databases (like Amazon DynamoDB). SQL databases excel at ensuring consistency and reliability for structured data and complex queries, while NoSQL databases offer greater flexibility and scalability for handling large volumes of unstructured or rapidly changing data.
Analytical data
In contrast, analytical data fuels strategic decisions and insights. It’s historical—aggregating operational data over time across entire populations to reveal patterns, trends, and predictions that shape long-term strategy. Analytical data has been extracted, consolidated, cleaned, and transformed specifically for analysis. For instance, a retailer might use it to examine five years of sales patterns, forecast demand, or identify customer segments for marketing campaigns.
This data resides in Online Analytical Processing (OLAP) systems, such as data warehouses (Amazon Redshift) and data lakes (Amazon S3). These systems use specific data modelling techniques, such as the Kimball method, optimised for the large-scale reads and complex queries that analytical workloads require.
The following table provides a comparative analysis of these two fundamental data paradigms.
| Characteristic | Operational Data | Analytical Data |
| Purpose | Supports day-to-day business operations and immediate task execution. | Enables strategic decision-making, trend analysis, and forecasting. |
| Scope | Focuses on individual entities and transactions at a specific point in time. | Concerns populations of entities and their behaviour over extended periods. |
| Data Structure | Typically normalised, optimised for writes and updates (OLTP). Structure is driven by the domain. | Typically denormalised (e.g., star schema), optimised for reads and complex queries (OLAP). Structure is driven by analytical models. |
| Update Frequency | Real-time or near real-time, reflecting the most current state of reality. | Updated periodically (e.g., batch loads), reflecting historical data. |
| Typical Workload | High-throughput, low-latency reads and writes on individual records. | Complex, large-scale queries that scan and aggregate vast amounts of data. |
| Key Business Value | Operational efficiency, business process execution, and immediate customer interaction. | Strategic planning, business intelligence, market understanding, and predictive insights. |
| Example AWS Services | Amazon RDS, Amazon DynamoDB. | Amazon S3, Amazon Redshift, Amazon Athena. |
How AI and Real-Time Analytics are Blurring the Lines
The traditional separation between operational and analytical data is collapsing, primarily driven by the demands of AI. Whereas data once moved in nightly batches from operational systems to warehouses, AI now requires immediate access to both real-time operations and historical patterns.
Stream processing architectures treat data as continuous flows rather than static batches, enabling real-time analytical insights. AI and ML integration is the primary force behind this shift. Specifically, models trained on years of historical data now operate directly within operational workflows—fraud detection systems, for example, learn patterns from analytical data, then score live transactions in milliseconds to block fraud as it happens.
Furthermore, generative AI accelerates this convergence. Services like Amazon Bedrock let users query both operational dashboards and analytical reports through natural language. AI chatbots require real-time operational data, including current order status and inventory levels, to provide accurate responses. They also draw on historical patterns to understand context and predict needs.
Real-time processing is not a requirement for every use case. Implementing an architecture capable of handling real-time data involves significant operational overhead that must be justified by sufficient return on investment.
We recommend assessing the ROI and operational maturity before adopting real-time architectures. In many cases, micro-batch approaches (hourly processing) or near real-time processing prove sufficient to meet the requirements.
Erwan Simon
Cloud & Data Consultant
However, the convergence of analytical and operational use cases leads to increased requirements for analytical data reliability, particularly regarding data quality, in order to address the criticality challenges inherent to operational use cases.
Data Pipeline for AI on AWS
This architectural shift, where operational and analytical data must work as an integrated ecosystem, requires a fundamentally different approach to data pipelines. A data pipeline moves data from sources to destinations through a sequence of processing steps, transforming it into a state ready for analysis and machine learning.
For AI applications, this pipeline is your factory floor: where raw data becomes the high-quality features that power predictive models and generative AI.
A well-architected pipeline ensures data quality, automates repetitive tasks, and scales to handle enterprise volumes—making it the critical infrastructure that turns the promise of AI integration into reality.
The Modern Data Architecture: A Multi-Layered Approach
Modern AI data pipelines are dynamic, cyclical systems that function as multi-layered architectures: Ingestion, Storage, Processing and Transformation, Intelligence, and Consumption. These stages don’t simply run in sequence—they form feedback loops where later insights trigger earlier processes.
When a deployed model shows concept drift, it automatically kicks off retraining, cycling between Intelligence and Processing layers. This iterative nature demands architecture designed for orchestration, reproducibility, and continuous improvement—not just moving data from point A to point B.
Stage 1: Data Ingestion
Ingestion is your pipeline’s entry point, collecting raw data from diverse sources—structured databases, semi-structured logs and clickstreams, unstructured text, images, and audio. Two approaches define how data enters:
Batch ingestion moves data in large chunks at scheduled intervals, ideal when real-time updates aren’t critical—like daily CRM sales reports.
Real-time ingestion continuously receives data pushed from sources as it’s generated, essential for use cases demanding immediate action: IoT sensors, social media feeds, and financial transactions.
Stage 2: Storage
Data needs a durable, scalable home. Modern AWS architectures use two complementary components:
Data Lake: A centralised repository on Amazon S3 holding raw data in its native format—your single source of truth for all structured, semi-structured, and unstructured data. Its “schema-on-read” flexibility lets you store data without predefined structures, invaluable for exploratory analysis and AI development.
Data Warehouse: A structured repository like Amazon Redshift optimised for high-performance analytics. It stores cleaned, transformed data in specific schemas (like star schemas) for fast reporting and dashboards.
Stage 3: Data Processing and Transformation
This is the heart of your pipeline, where raw data becomes clean, reliable, and useful. Here, traditional ETL and modern ELT patterns converge, but for AI, the critical work is feature engineering—extracting measurable properties from raw data that improve model performance. This means tokenising text for NLP, creating time-based aggregations from clickstreams, or encoding categorical variables numerically. Indeed, quality feature engineering often impacts model performance more than algorithm choice itself.
Stage 4: The Intelligence Layer
This is where AI value is generated:
Model Training: Feature-engineered data trains ML models—selecting algorithms (XGBoost for classification, transformers for language) and teaching them to recognise patterns.
Model Inference: Deployed models predict on new data through real-time inference (on-demand, low-latency predictions) or batch inference (scheduled predictions on large datasets).
Generative AI and Agents: The modern evolution—leveraging Foundation Models for summarisation, content creation, and question-answering. AI Agents orchestrate complex, multi-step tasks, using FM reasoning to interact with data sources and tools to achieve goals.
Stage 5: Consumption and Action
Pipeline outputs—predictions, reports, dashboards—drive business value:
Business Intelligence: Interactive dashboards in Amazon QuickSight let users explore data and results. Also, Amazon has recently released Quick Suite for enterprise, consolidating analytics, autonomous agents, and automation capabilities in a unified workspace.
Reporting: Automated reports distributed to stakeholders.
Operational Integration: The most impactful outcome—feeding AI insights back into operations. For instance, churn predictions trigger retention offers in CRM systems. Product recommendations display in real-time on e-commerce sites. This closes the loop, turning analytical insights into automated operational action.
Production pipelines are dynamic systems, not static artefacts. They demand continuous monitoring, maintenance, and improvement—making orchestration and reproducibility non-negotiable design principles. Workflow management and automation aren’t optional; they’re core architecture components. Everything—data preparation scripts, infrastructure definitions, model artefacts, evaluation metrics—must be version-controlled and managed through CI/CD frameworks. This ensures reliability, governance, and the agility to adapt as business needs evolve.
AWS Services for the Analytical Data Pipeline
Building the analytical components of an AI data pipeline on AWS involves selecting from a rich ecosystem of purpose-built services. These services are not merely a collection of disparate tools; they are designed to integrate deeply, forming a cohesive architectural pattern known as the Lakehouse Architecture. This modern paradigm combines the flexibility and cost-effectiveness of a data lake with the performance and data management features of a data warehouse. At its heart is a central data lake on Amazon S3, which serves as a single source of truth, surrounded by a suite of specialised engines for data processing, querying, and machine learning.
Data Lake and Storage: Amazon S3 (The Foundation)
Amazon S3 is the cornerstone of modern AWS data architecture—a massively scalable object storage service functioning as your data lake’s central repository.
Click for more details: role, key features and usecase
Role: S3 stores and retrieves any amount of data from anywhere. It’s your landing zone for raw ingested data, storage for intermediate and processed datasets, and a repository for model artefacts and logs. Its ability to handle structured, semi-structured, and unstructured data makes it the ideal single source of truth.
Key Features:
- Industry-leading scalability (to exabytes), durability, and availability for enterprise AI workloads
- Native support for Apache Iceberg using S3 tables, enabling ACID transactions, schema evolution, and time travel capabilities on data lake storage
- Open table format compatibility (Iceberg, but also Delta Lake and Hudi), ensuring vendor-neutral data management and seamless interoperability across analytics engines
- Deep integration with AWS analytics and ML services (Glue, EMR, Athena, Redshift, SageMaker)
- Storage classes like S3 Intelligent-Tiering automatically optimise costs by moving data to cost-effective tiers based on usage patterns
Use Case:
- Cost-effective long-term storage for large, unpredictable datasets
- Foundation for enterprise data lakes storing all data types
- Default storage choice for AWS-based AI pipelines
Data Cataloguing and Transformation
Once data lands in S3, it needs cataloguing for discoverability and transformation for usability. AWS offers two services for different control and management needs.
AWS Glue: Serverless Data Integration and ETL
Glue is a fully managed, serverless service that automates data preparation for analytics and ML.
Click for more details: role, key features and usecase
Role: Glue discovers, prepares, and integrates data. It’s an ETL service connecting to diverse sources, transforming data, and loading it into destinations like S3, Redshift, or other databases.
Key Components:
- AWS Glue Data Catalog: Central metadata repository acting as a managed Hive metastore. Crawlers automatically scan S3 data, infer schemas, and populate the catalogue—making data discoverable by Athena and EMR without manual schema definition
- AWS Glue ETL Jobs: Serverless jobs running on managed Apache Spark or Python environments. Author jobs visually in Glue Studio or write custom Python/Scala scripts. Glue handles provisioning, configuration, and scaling
- AWS Glue crawlers create and update your Datalake’s tables metadata in your Glue Data Catalog.
Use Case:
- Building standardised, repeatable data preparation pipelines
- Recommended for most data integration and ETL workloads
- Ideal for users preferring serverless, low-management approaches
- Perfect for migrating from traditional ETL tools (Informatica, Talend)
Amazon EMR: Managed Big Data Frameworks
Amazon EMR is a managed cluster platform simplifying big data framework execution at scale.
Click for more details: role, key features and usecase
Role: EMR provides managed environments for open-source processing frameworks—Hadoop, Spark, Hive, Presto, Flink—designed for large-scale processing, interactive analytics, and ML.
Key Features:
- Maximum flexibility and control: choose EC2 instance types, customise software, SSH access for fine-grained tuning
- EMRFS provides optimised direct S3 access, treating the data lake as a native Hadoop file system
- Support for diverse big data frameworks beyond Glue’s capabilities
Use Case:
- Teams with deep Hadoop ecosystem expertise needing granular cluster control
- Migrating on-premises Hadoop or Spark workloads to Cloud
- Complex big data applications requiring frameworks beyond Glue
Choosing Between Glue and EMR
Use Glue for: Serverless ETL, standard integration tasks, teams prioritising ease of use and minimal overhead. Visual interface accessible to data analysts.
Use EMR for: Maximum flexibility, complex Hadoop migrations, diverse big data frameworks, and deep infrastructure customisation. Furthermore, EMR (including EMR Serverless) offers a more cost-effective solution compared to Glue Jobs.
While both offer serverless options, their philosophies differ. Glue is purpose-built for data integration, abstracting compute frameworks. In contrast, EMR is a managed platform for open-source frameworks, offering power at the cost of complexity.
Querying and Data Warehousing
With data processed and catalogued, make it available for analysis through serverless querying and high-performance warehousing.
Amazon Athena: Interactive, Serverless Querying on the Data Lake
Amazon Athena is a serverless query service enabling direct S3 data analysis using standard SQL.
Click for more details: role, key features and usecase
Role: Athena is your data lake lens. Run ad-hoc queries on S3 data without ETL processes to load databases first. It operates on “schema-on-read,” applying table structures (from Glue Data Catalog) at query execution.
Key Features:
- Serverless with zero infrastructure management
- Billing is volume-based, charging only for the data scanned at $5 per TB. economical for exploration and infrequent analysis. This makes it an economical choice for initial data exploration and analyses that are performed infrequently.
- Queries data in place without moving or transforming it
Use Case:
- Quick S3 data investigation before complex processing or warehouse loading
- Exploratory data analysis by data scientists and analysts
- Querying log files and validating datasets
Amazon Redshift: High-Performance, Petabyte-Scale Data Warehousing
Amazon Redshift is a fully managed, petabyte-scale data warehouse engineered for high-performance analytics and BI.
Click for more details: role, key features and usecase
Role: Redshift serves as your enterprise analytical core, delivering consistently fast query performance for complex workloads. It’s the destination for curated, structured data powering BI dashboards and critical reports.
Key Features:
- Massively Parallel Processing (MPP) architecture distributes data and queries across cluster nodes
- Columnar storage dramatically reduces I/O by reading only the required columns
- Redshift Spectrum queries exabytes in S3 without data loading
- Native SageMaker integration enables ML model training/deployment via SQL
Use Case:
- Powering dashboards and reports where speed and reliability are critical
- Enterprise-scale business intelligence
- Complex analytical querying requiring high performance
- Concurrent access to large structured data volumes
Athena vs. Redshift: Ad-Hoc vs. Enterprise Analytics
Data Structure: Athena queries any structure directly in S3. Conversely, Redshift performs best with structured data in its optimised storage (although Spectrum bridges this gap).
Performance: Redshift is typically faster for complex queries with large joins and aggregations. Athena excels at simple S3 scans.
Cost: Athena’s pay-per-query suits ad-hoc, unpredictable workloads. In comparison, Redshift’s provisioned pricing provides predictable costs for continuous, high-utilisation BI.
Management: Athena is entirely serverless. Meanwhile, Redshift requires cluster management (though Serverless option simplifies this).
These services complement each other in a Lakehouse architecture—Athena explores raw data in the lake, Redshift serves curated data for enterprise BI.
Machine Learning and MLOps: SageMaker AI
SageMaker AI is a fully managed service covering the entire ML lifecycle—build, train, and deploy models at any scale.
Click for more details: role, key features and usecase
Role: SageMaker AI is your primary intelligence layer, providing an integrated environment for data scientists and ML engineers to move seamlessly from data preparation to production deployment and monitoring.
Key Components:
- Data Preparation: SageMaker Studio (Jupyter-based IDE), Data Wrangler (visual data cleaning and feature engineering), Feature Store (centralised feature repository preventing training-serving skew)
- Model Training: Managed, scalable training jobs supporting TensorFlow, PyTorch, and distributed training for petabyte-scale datasets
- Model Deployment: Flexible options—real-time endpoints (low-latency), serverless inference (auto-scaling), batch transform (offline predictions)
- MLOps: SageMaker Pipelines (CI/CD for ML workflows from preparation to deployment), Model Registry (catalogue, version, and manage models with approval workflows)
Use Case:
- Production model deployment and monitoring
- End-to-end ML lifecycle management
- Codifying ML processes for automation and reproducibility
- Robust ML governance and versioning
Strategic Service Selection
Choosing analytical services reflects operational strategy. Serverless options (Glue, Athena) prioritise agility and reduced management, empowering teams to deliver insights quickly. Conversely, configurable services (EMR, provisioned Redshift) prioritise performance tuning and granular control—essential for mature teams managing mission-critical, high-volume workloads. Therefore, assess both technical requirements and operational maturity to recommend the right balance.
AWS Services for Operational Data and Real-Time AI
Operational systems capture real-time business events. In modern AI architecture, operational databases aren’t just passive data sources—they’re active participants in real-time AI workflows, directly interacting with intelligent agents.
Relational Databases: Amazon RDS
Amazon RDS is a managed service simplifying relational database setup, operation, and scaling in the cloud.
Click for more details: role, key features and usecase
Role: RDS provides managed environments for PostgreSQL, MySQL, MariaDB, Oracle, and SQL Server. It automates hardware provisioning, setup, patching, and backups—letting developers focus on applications.
Key Features:
- Automated administrative tasks (provisioning, patching, backups)
- Support for multiple popular database engines
- Transactional consistency and structured data models for OLTP workloads
Use Case:
- Master data and transactional records providing ground truth for analytical models
- Foundation for e-commerce, CMS, financial applications, CRMs
- Primary source of high-quality structured operational data for AI pipelines
NoSQL Databases: Amazon DynamoDB
Amazon DynamoDB is a fully managed, serverless NoSQL database delivering single-digit millisecond performance at any scale.
Click for more details: role, key features and usecase
Role: DynamoDB handles extreme scalability, high throughput, and predictable low latency, offloading distributed database operational burdens.
Key Features:
- Serverless with automatic scaling
- Single-digit millisecond performance at any scale
- DynamoDB Streams capture item-level changes for event-driven architectures
- Zero-ETL integrations with Redshift and SageMaker for near real-time analytics
Use Case:
- Real-time operational data feeding AI models without custom ETL
- Mobile backends, web-scale applications, gaming, ad tech, IoT
- Event-driven AI pipelines (profile changes triggering real-time recommendation updates)
Generative AI Services: The New Operational Engine
Managed generative AI services are transforming operational workloads. These services reason, generate content, and take real-time action—directly interacting with operational data stores.
Amazon Bedrock
Amazon Bedrock provides access to high-performing foundation models from leading AI companies through a unified API.
Click for more details: role, key features and usecase
Role: Bedrock simplifies generative AI integration by managing infrastructure for hosting and serving large models. It’s the core reasoning engine for AI-powered applications.
Key Features:
- Single API access to multiple foundation models (Anthropic, Cohere, Meta, Amazon)
- Private customisation through fine-tuning or Retrieval-Augmented Generation (RAG)
- Domain-specialised models using organisational data, reducing hallucinations
Use Case:
- Building AI applications without managing model infrastructure
- Generating marketing copy, summarising documents, writing code
- Answering complex questions by synthesising organisational data
Amazon Bedrock Agents
Bedrock Agents enable creation of AI agents executing complex, multi-step tasks.
Click for more details: role, key features and usecase
Role: Agents are the action-oriented component. They use FM reasoning to understand requests, break them into logical steps, and execute by interacting with systems, data sources, and APIs.
Key Features:
- Task orchestration using FM reasoning capabilities
- Knowledge Base retrieval implementing RAG patterns
- Action Groups (OpenAPI specifications) for external tool/API interaction
- Conversation memory for contextual interactions
Use Case:
- Autonomous multi-step workflows querying data warehouses and updating operational databases
- Bridging analytical insights to operational actions
- Natural language business task execution (e.g., “What was our top-selling product in the Northeast last quarter, and increase its London warehouse inventory by 10%”)
Also, AWS launched Amazon Bedrock AgentCore, a managed service designed to help organisations deploy AI agent prototypes into secure, scalable production environments.
The Evolving Role of Operational Databases
Amazon Bedrock Agents signal a fundamental shift. Operational databases are transitioning from passive data repositories to active, queryable endpoints that AI agents interact with programmatically and autonomously in real time. This creates new architectural requirements: operational systems need well-defined, robust, secure, agent-friendly APIs.
Data engineering responsibilities are expanding. The role now extends beyond building pipelines for model training to building and maintaining high-quality APIs and tools that populate AI agent toolboxes. This blurs lines between data engineering and software engineering, elevating data governance from controlling data access to managing what actions autonomous AI agents can perform on behalf of the organisation.
Architecting for Real-Time: Streaming Data Services
Modern AI applications require low-latency feedback loops where data moves between operational and analytical systems in real time. Streaming services form the high-speed nervous system of modern data architecture, ingesting and processing continuous event streams as they occur. AWS offers two enterprise-grade services: Amazon Kinesis and Amazon Managed Streaming for Apache Kafka (MSK). Choose based on your technology stack, skillset, and preference for AWS-native integration versus open-source compatibility.
Amazon Kinesis
Amazon Kinesis is a suite of fully managed services for collecting, processing, and analyzing real-time streaming data, developed as an AWS-native solution with deep service integration.
Click for more details: role, key features and usecase
Role: Kinesis builds end-to-end streaming data pipelines for real-time analytics and event-driven applications.
Key Components:
- Kinesis Data Streams: Core ingestion and transport service capturing terabytes per hour from hundreds of thousands of sources (application logs, clickstreams, IoT telemetry). Data stored durably across Availability Zones with concurrent multi-application consumption
- Kinesis Data Firehose: Simplest way to reliably load streaming data into S3, Redshift, and OpenSearch. Fully managed with automatic scaling. Performs on-the-fly transformations (JSON to Parquet/ORC) to simplify streaming ETL
Use Case:
- Tight integration with Lambda, Glue, and CloudWatch
- Cloud-native streaming applications built on AWS
- Serverless processing pipelines with minimal operational overhead
Amazon Managed Service for Apache Flink
Amazon Managed Service for Apache Flink is a fully managed service for processing and analysing streaming data using Apache Flink—an open-source framework for stateful computations over data streams with precisely-once processing semantics.
Click for more details: role, key features and usecase
Role:
Managed Service for Apache Flink enables complex stream processing and real-time analytics on continuously flowing data, transforming raw streams into actionable insights through sophisticated event-time processing, windowing, and stateful operations.
Key Components:
- Apache Flink Runtime: Fully managed Flink clusters with automatic scaling, built-in fault tolerance, and savepoint management for application state
- Flink SQL and Table API: Declarative stream processing using standard SQL for complex event processing, temporal joins, and pattern detection
- Stateful Processing: Managed state backends with automatic checkpointing to S3, enabling exactly-once processing guarantees and recovery from failures
- Integration Connectors: Native integration with Kinesis Data Streams, MSK (Kafka), S3, and other AWS services for seamless data ingestion and output
Use Case:
- Stream processing workloads requiring Apache Flink’s mature ecosystem and open-source flexibility
- Complex event processing requiring stateful computations (sessionization, aggregations over time windows)
- Real-time analytics with advanced stream transformations and enrichment
- Applications demanding exactly-once processing semantics and low-latency responses
Amazon Managed Streaming for Apache Kafka (MSK)
Amazon MSK is a fully managed service for building and running Apache Kafka streaming applications.
Click for more details: role, key features and usecase
Role: MSK provides highly available, secure, scalable Apache Kafka environments without managing infrastructure complexity, including ZooKeeper nodes for coordination.
Key Features:
- 100% open-source Apache Kafka compatibility
- Native Kafka APIs enable migration without code changes
- Works with Kafka ecosystem tools (Kafka Connect, Kafka Streams, third-party connectors)
- Handles provisioning, configuration, broker replacement, and patching
Use Case:
- Requiring specific open-source Kafka ecosystem features unavailable in Kinesis
- Existing investments in Apache Kafka (on-premises or other clouds)
- Teams with deep Kafka expertise
Why Both Services Exist:
Kinesis serves customers building AWS-native applications with simple, deeply integrated streaming. MSK addresses enterprises standardised on Apache Kafka that want AWS cloud benefits without re-architecting existing applications. This dual offering provides clear cloud paths for both cloud-native developers and lift-and-shift migrations.
Governance, Orchestration, and Visualisation
Functional AI pipelines need more than storage and processing. Enterprise-grade pipelines require governance, automation, and accessible business outputs. AWS provides services addressing these cross-cutting concerns—ensuring pipelines are secure, reliable, and deliver tangible value.
Data Governance and Security
As data volumes grow, managing access and ensuring compliance becomes critical. Without strong governance, data lakes devolve into “data swamps”—ungoverned, undocumented, untrustworthy repositories.
AWS Lake Formation
AWS Lake Formation simplifies building, securing, and managing data lakes.
Click for more details: role, key features and usecase
Role: Lake Formation is your centralized security and access control layer, providing single-point definition and enforcement of data access policies for S3 data.
Key Features:
- Fine-grained access control at database, table, column, and row levels
- Consistent policy enforcement across analytics and ML services (Athena, Redshift Spectrum, EMR, Glue)
- Tag-based access control using data classifications (e.g., “PII,” “Confidential”) instead of per-table policies—simplifying governance at scale
Use Case:
- Compliance and regulatory requirements require granular data access
- Technical security and access control for data lakes
- Centralised policy management for data engineers and administrators
Amazon DataZone
Amazon DataZone is a data management service improving discovery, sharing, and governance through a business lens. DataZone service moved to Sagemaker Unified Studio to become Sagemaker Catalog.
Click for more details: role, key features and usecase
Role: While Lake Formation handles technical access control, DataZone provides a business data catalog and collaboration portal—bridging technical assets and business users who need to find, understand, and use them.
Key Features:
- Business-centric organisation into Domains (e.g., “Finance,” “Marketing”) and use-case Projects
- Intuitive data discovery for non-technical users
- Generative AI automatically generates business descriptions and context for catalog assets—enhancing searchability and understanding
Use Case:
- Implementing data mesh and “data as a product” principles
- Business data discovery and usability for analysts, data scientists, and stakeholders
- Self-service data access and understanding
Lake Formation vs. DataZone:
Lake Formation addresses foundational technical security—a problem for data engineers. DataZone tackles business data discovery and usability—a problem for business users. DataZone’s emergence reflects an industry shift: as data lakes become commonplace, the primary bottleneck isn’t technical access but business context and discoverability. It’s AWS’s response to data mesh concepts, emphasising discoverable, understandable, self-service data consumption.
Workflow Orchestration: Amazon MWAA
Amazon Managed Workflows for Apache Airflow (MWAA) is a managed orchestration service using Apache Airflow to programmatically author, schedule, and monitor workflows. However, AWS Step Functions, a managed serverless orchestration service, delivers a lighter tool at a lower cost.
Click for more details: role, key features and usecase
Role: MWAA ensures tasks execute in the correct order, handling dependencies, retrying failures, and providing workflow monitoring and alerting.
Key Features:
- Managed Apache Airflow environment
- Code-based workflow definition using Directed Acyclic Graphs (DAGs)
- Automatic dependency management and task retry logic
- Integrated monitoring and alerting
Use Case:
- Production-ready pipeline automation with robust governance
- Orchestrating complex, multi-step data pipelines
- Example workflow: trigger Glue transformation job → on success, initiate SageMaker training → on completion, update Redshift table
The Evolution Toward Data Products
Investment in services like DataZone (AI-powered cataloguing) and QuickSight (natural language querying) underscores a significant trend: data engineering is increasingly intertwined with data product management. A pipeline’s ultimate value isn’t just technical functionality but its ability to deliver high-quality, well-documented, easily discoverable “data products” empowering the entire organisation. This elevates data teams from back-office infrastructure managers to proactive enablers of data-driven culture.
Synthesis: Reference Architectures and Recommendations
Bringing together the concepts and services discussed, this section presents two concrete reference architectures for common AI use cases on AWS. These blueprints illustrate how the various services integrate to form end-to-end solutions, followed by strategic recommendations for building a future-proof AI data strategy.
Reference Architecture 1: A Scalable Pipeline for Predictive Analytics
This architecture addresses a classic BI and ML use case: building a model to predict customer churn. It combines batch and streaming ingestion, robust data processing, a data warehouse for BI, and a complete MLOps lifecycle with Amazon SageMaker.
Use Case: A subscription-based company wants to proactively identify customers who are likely to cancel their service. The goal is to build a churn prediction model and provide business analysts with dashboards to explore churn drivers.
Architectural Flow:
Ingestion:
- Batch: Nightly extracts of customer profile and subscription data from an Amazon RDS database are ingested and stored in a “raw” zone in an Amazon S3 bucket.
- Streaming: Real-time customer activity data (e.g., website clicks, feature usage) is captured using Amazon Kinesis Data Streams and delivered to the same S3 raw zone via Amazon Kinesis Data Firehose.
Processing and Cataloguing:
- An Amazon MWAA workflow orchestrates the processing pipeline. It triggers an AWS Glue job on a daily schedule.
- The Glue job reads the batch and streaming data from the raw S3 zone, cleans and joins the datasets, and performs feature engineering (e.g., calculating metrics like “days since last login” or “number of support tickets”).
- The curated, feature-engineered data is written in the efficient Apache Parquet format to a “processed” zone in S3. The schema and partition information are registered in the AWS Glue Data Catalog.
Warehousing and Business Intelligence:
- The processed data in S3 is loaded into Amazon Redshift.
- Business analysts connect Amazon QuickSight to Redshift to build interactive dashboards that visualise churn rates, explore correlations, and analyse the effectiveness of retention campaigns.
Machine Learning Lifecycle (MLOps):
- The completion of the Glue job triggers an Amazon SageMaker Pipeline.
- Training: A training step in the pipeline uses the feature-engineered data from the processed S3 zone to train a churn classification model (e.g., XGBoost).
- Evaluation & Registration: The model’s performance is evaluated against a holdout dataset. If it meets the required accuracy threshold, the trained model artifact is versioned and registered in the SageMaker Model Registry.
Inference and Action:
- Batch Inference: A daily batch transform job is run using the registered model to score the entire active customer base, generating a churn probability for each customer. These scores are written back to S3 and loaded into Redshift and the operational CRM system.
- Real-Time Inference (Optional): The model can also be deployed to a SageMaker real-time endpoint. This allows operational systems to get an immediate churn score for a customer when they interact with customer service, enabling personalised retention offers.
Reference Architecture 2: A Real-Time RAG Pipeline with Generative AI
This architecture demonstrates a modern, generative AI-powered solution for building an intelligent assistant that can answer questions based on an organisation’s private knowledge base, leveraging the Retrieval-Augmented Generation (RAG) pattern.
Use Case: An enterprise wants to build a customer support chatbot that can provide accurate, context-aware answers to user queries by referencing its extensive library of technical manuals, product guides, and troubleshooting articles.
Architectural Flow:
Data Ingestion and Processing (Offline Pipeline):
- Storage: A corpus of unstructured documents (PDFs, HTML, Word documents) forming the knowledge base is uploaded to an Amazon S3 bucket.
- Chunking: An AWS Glue or Amazon SageMaker Processing job is run to parse these documents and split them into smaller, semantically meaningful chunks of text.
- Embedding: The text chunks are passed to a SageMaker endpoint hosting a text embedding model (e.g., a model from SageMaker JumpStart). This model converts each chunk into a numerical vector representation (an embedding).
- Indexing: These vector embeddings are stored and indexed in a specialised vector database, such as Amazon OpenSearch Service with the k-NN (k-Nearest Neighbours) plugin enabled. This offline pipeline is re-run whenever the knowledge base is updated.
Real-Time Inference and Generation (Online Flow):
- User Query: A user interacts with the chatbot, asking a question like, “How do I reset the firmware on product model X?”
- Query Embedding: The user’s question is sent to the same embedding model endpoint to be converted into a vector.
- Retrieval: This query vector is used to perform a similarity search against the index in Amazon OpenSearch Service. The service returns the top ‘k’ most relevant document chunks from the original knowledge base. This is the “Retrieval” step.
- Augmentation and Generation: The original user question and the retrieved text chunks (the “context”) are combined into a single prompt. This augmented prompt is sent to Amazon Bedrock.
- An Amazon Bedrock Agent receives the prompt and passes it to a foundation model (e.g., Anthropic’s Claude 3 Haiku). The model is instructed to generate a concise, natural language answer to the user’s question based only on the provided context. This is the “Generation” step, which is “Augmented” by the retrieved knowledge.
Operational Action (Optional):
- If the user’s issue is not resolved, they might say, “This didn’t work, please create a support ticket.”
- The Amazon Bedrock Agent recognises this intent. Using a pre-configured Action Group, it calls an external API that interacts with the company’s ticketing system (which could be backed by Amazon RDS or Amazon DynamoDB), automatically creating a new ticket with the context of the conversation. This seamlessly bridges the gap from information retrieval to operational action.
Recommendations and Future-Proofing Your AI Data Strategy
The design and implementation of an AI data pipeline is a strategic endeavour that has long-term implications for an organisation’s ability to innovate. Based on the architectural patterns and service capabilities analysed, the following core recommendations can guide the development of a robust, scalable, and future-proof data strategy on AWS:
Embrace the Lakehouse Architecture
Centralise all raw and processed data in Amazon S3 to create a single source of truth. Leverage the diverse ecosystem of purpose-built analytical engines (Athena, Redshift, EMR, SageMaker) that can operate directly on this data. This approach offers maximum flexibility, scalability, and cost efficiency.
Govern from Day One
Implement data governance as a foundational practice, not an afterthought. Use AWS Lake Formation to establish fine-grained technical access controls and secure the data lake from its inception. As the organisation matures, adopt Amazon DataZone to build a business-centric data catalogue that promotes self-service analytics and treats data as a discoverable, trustworthy product.
Orchestrate Everything as Code
A production pipeline is a critical piece of software. Treat it as such. Use robust orchestration services like Amazon MWAA or Amazon SageMaker Pipelines to define, schedule, and monitor workflows. Version control all pipeline components—from ETL scripts and infrastructure-as-code templates to model training code and feature definitions—to ensure reproducibility, reliability, and auditability.
Architect for an Agentic Future
The rise of AI agents that can autonomously interact with systems is the next frontier. This paradigm shift requires a proactive approach to system design. Begin designing operational systems and data stores with clean, well-documented, and secure APIs. The future of data engineering will involve not only preparing data for models but also preparing “tools” (APIs) for agents. The distinction between data engineering and software engineering will continue to blur, and organisations that build for this programmatic, agent-driven future will be best positioned to capitalise on the next wave of AI-powered automation.
Towards A Unified Data Experience
While these recommendations provide a solid foundation for building modern data platforms on AWS, it is worth noting that AWS itself has recognised the complexity inherent in its service-oriented approach. The proliferation of specialised services, whilst powerful, has historically created friction for data teams navigating the ecosystem.
Amazon Web Services has always favoured a modular architecture where each service evolves autonomously. This approach has created redundancies (e.g., AWS Glue Jobs vs EMR Serverless) and problematic navigation complexity for data professionals, unlike the unified interfaces offered by Databricks, Snowflake, or Dataiku.
The recent emergence of Sagemaker Unified Studio marks a strategic shift: AWS now offers a dedicated interface for data use cases, functioning as an intelligent portal to its entire ecosystem (Redshift, Athena, EMR, Glue, SageMaker AI, Bedrock, MWAA). The interface integrates a governance layer (Lake Formation, DataZone) via the Sagemaker Catalog and is accessible without going through the main AWS console.
This initiative represents an explicit acknowledgement by AWS of the limitations of its historical approach compared to integrated data platforms. Although still in development, this service could redefine AWS’s positioning in the data platform market and substantially alter the competitive dynamics of the sector.
Also read: Why a Clear AWS Data Strategy is Essential to AI Implementation

