CLOUD CONCEPT

Analytics

Analytics is the systematic examination of data to answer questions, identify patterns, and support decisions.

Cloud Concepts Hub →

What is Analytics

Analytics turns raw records, events, and measurements into useful information through querying, aggregation, statistical analysis, and visualization. In the cloud, managed storage and processing services let engineers analyze changing data volumes without building every infrastructure component themselves.

Analytics helps organizations understand what happened, investigate why it happened, and make better-informed decisions. Its inputs can include application logs, sales transactions, website events, sensor readings, and operational metrics. Its outputs might be a SQL query result, a dashboard, a report, or a signal that triggers further investigation. For example, a retailer could combine order records with website events to measure conversion rates and identify where customers abandon purchases.

A cloud analytics workflow usually involves collecting data, storing it, preparing it, analyzing it, and presenting the results. Preparation includes correcting data types, removing duplicates, handling missing values, and joining records from different sources. Extract, transform, load, or ETL, transforms data before loading it into a destination. Extract, load, transform, or ELT, loads data first and performs transformations in the destination. A data catalog records metadata such as table definitions and locations so tools and users can discover and interpret datasets.

Storage and query choices depend on the workload. A data lake commonly stores varied datasets in object storage, often retaining original data alongside curated versions. A data warehouse provides a managed analytical environment optimized for queries such as aggregations and joins across large datasets. A lake is not automatically clean or well governed, and a warehouse is not simply an application database with more capacity. Analytical processing typically scans and summarizes many records, while transaction processing emphasizes short reads and writes that support application operations.

Batch analytics processes accumulated data on a schedule, such as calculating yesterday's revenue each morning. Streaming analytics processes continuously arriving events to provide fresher results, such as detecting a sudden increase in failed payments. Streaming introduces concerns including late events, duplicates, processing delays, and recovery after failures. Choose a freshness target that the business actually needs: a daily financial report does not necessarily justify the complexity and expense of a continuously running pipeline.

Cloud services implement different parts of this workflow. In AWS exam scenarios, Amazon Athena is associated with serverless SQL queries over data in Amazon S3, while Amazon Redshift is associated with data warehousing. AWS Glue supports data integration and cataloging, Amazon EMR supports frameworks such as Apache Spark, Amazon Kinesis Data Streams collects streaming records for consumers, and Amazon QuickSight provides business intelligence dashboards. These roles are complementary; collecting a stream is not the same as analyzing it, and displaying a chart does not prepare its underlying data.

Important trade-offs include cost, query latency, data freshness, concurrency, and operational effort. Columnar formats such as Parquet and suitable partitioning can reduce the data scanned by analytical queries. Serverless execution reduces infrastructure management but does not guarantee low cost or fast queries: inefficient scans, repeated transformations, and excessive dashboard refreshes still consume resources. Engineers should also validate completeness and accuracy, define metrics consistently, restrict access to sensitive records, and apply retention policies. Analytics does not inherently require machine learning, and a correlation in a dashboard does not establish causation.

Key aspects of Analytics

Effective analytics combines clear questions, reliable data preparation, suitable processing, cost-aware design, and governance to produce trustworthy answers.

Question-driven analysis

Start with a decision or measurable question, then identify the required datasets and calculations. Define metrics such as revenue or active users consistently so different reports do not produce conflicting answers.

Data preparation and discovery

Clean, transform, and catalog data before relying on results. Validate schemas, handle duplicates, and document dataset ownership and meaning.

Workload-appropriate processing

Choose batch processing for scheduled summaries and streaming processing when fresh results justify the additional complexity. Query engines, warehouses, and distributed processing frameworks address different workload patterns.

Separation of storage and analysis

Many cloud architectures retain datasets in durable storage while using separate compute services to process them. This allows multiple analysis tools to reuse data, but requires attention to formats, access permissions, and compatibility.

Performance and cost management

Use appropriate file formats, partitioning, aggregation, and compute sizing to control scan volume and execution time. Measure actual query patterns rather than assuming managed or serverless services are automatically inexpensive.

Governance and trustworthy results

Apply least-privilege access, encryption, retention rules, and data-quality checks throughout the pipeline. Track data origins and transformations so engineers can investigate unexpected results.

Cloud services for Analytics

An analytics architecture can store source data in Amazon S3, use AWS Glue to catalog and prepare it, and use Amazon Athena for exploratory SQL queries. Amazon Redshift can support a warehouse-centered approach for recurring analytical workloads, while Amazon EMR can run distributed processing jobs when Spark or similar frameworks fit the requirements. Amazon Kinesis Data Streams supplies continuously arriving events to processing applications, and Amazon QuickSight presents prepared results through dashboards. These services are not all required in every solution: choose components according to data volume, freshness requirements, query patterns, governance needs, and operating cost.

Amazon Athena image Amazon Athena

Amazon Athena provides serverless, interactive SQL querying, commonly over data stored in Amazon S3. It suits ad hoc analysis without provisioning a query cluster; file layout, compression, and partitioning influence performance and scan-based query costs.

Open Amazon Athena →
Amazon Redshift image Amazon Redshift

Amazon Redshift is a managed data warehouse for analytical SQL workloads, including aggregations and joins across large datasets. Provisioned and serverless options support workloads such as recurring reporting and business intelligence.

Open Amazon Redshift →
AWS Glue image AWS Glue

AWS Glue provides data integration capabilities for discovering, preparing, and transforming datasets. Its Data Catalog stores metadata that analytical services can use to locate and interpret tables.

Open AWS Glue →
Amazon EMR image Amazon EMR

Amazon EMR runs big-data processing frameworks such as Apache Spark for large-scale transformations and analysis. It is relevant when engineers need distributed processing frameworks and control over application code and execution settings.

Open Amazon EMR →
Amazon Kinesis Data Streams image Amazon Kinesis Data Streams

Amazon Kinesis Data Streams collects and retains streaming records for applications that process continuously arriving events. Consumer applications perform the analysis; the stream itself does not create business metrics or dashboards.

Open Amazon Kinesis Data Streams →
Amazon QuickSight image Amazon QuickSight

Amazon QuickSight provides business intelligence capabilities for creating visualizations and interactive dashboards from connected datasets. It presents analytical results to users rather than replacing data ingestion, transformation, or storage.

Open Amazon QuickSight →