<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AKSHARANETHRA NP</title>
    <description>The latest articles on DEV Community by AKSHARANETHRA NP (@aksharanethra_np_e411e388).</description>
    <link>https://dev.to/aksharanethra_np_e411e388</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4125468%2Fefa20fb1-c088-4fc9-83e9-28acf1c184b2.png</url>
      <title>DEV Community: AKSHARANETHRA NP</title>
      <link>https://dev.to/aksharanethra_np_e411e388</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aksharanethra_np_e411e388"/>
    <language>en</language>
    <item>
      <title>Exploring Serverless Data Analytics on AWS(Athena)</title>
      <dc:creator>AKSHARANETHRA NP</dc:creator>
      <pubDate>Wed, 16 Sep 2026 03:44:59 +0000</pubDate>
      <link>https://dev.to/aksharanethra_np_e411e388/exploring-serverless-data-analytics-on-awsathena-1226</link>
      <guid>https://dev.to/aksharanethra_np_e411e388/exploring-serverless-data-analytics-on-awsathena-1226</guid>
      <description>&lt;h1&gt;
  
  
  Akshara Meets Athena: Exploring Serverless Data Analytics on AWS
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;code&gt;aws&lt;/code&gt; &lt;code&gt;amazonathena&lt;/code&gt; &lt;code&gt;cloudcomputing&lt;/code&gt; &lt;code&gt;sql&lt;/code&gt; &lt;code&gt;s3&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In this blog, I explore Amazon Athena, a serverless AWS service that allows us to query data stored in Amazon S3 using SQL. I also demonstrate it using a Stranger Things dialogue dataset.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Cloud computing provides many services for storing and analyzing data without requiring users to maintain physical infrastructure.&lt;/p&gt;

&lt;p&gt;One such service is &lt;strong&gt;Amazon Athena&lt;/strong&gt;, a serverless interactive query service from AWS. It allows users to analyze data stored in &lt;strong&gt;Amazon S3 using standard SQL&lt;/strong&gt;, without setting up or managing database servers.&lt;/p&gt;

&lt;p&gt;In this blog, I will explain what Amazon Athena is, why it was created, how it works, its key features, advantages and limitations. I will also demonstrate a practical use case using a Stranger Things dialogue dataset stored in Amazon S3.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is Amazon Athena?
&lt;/h2&gt;

&lt;p&gt;Amazon Athena is a &lt;strong&gt;serverless query service&lt;/strong&gt; that allows users to run SQL queries directly on data stored in Amazon S3.&lt;/p&gt;

&lt;p&gt;Unlike a traditional database, there is no need to create a database server before analyzing the data.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;stranger_things_dialogue&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Athena processes the query and returns the results without requiring us to manage the underlying servers.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Was Amazon Athena Created?
&lt;/h2&gt;

&lt;p&gt;Organizations often store large amounts of data in Amazon S3. However, storing data in S3 alone does not provide a convenient way to perform SQL-based analysis.&lt;/p&gt;

&lt;p&gt;A traditional approach could look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;S3 → Database → SQL Query → Results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This requires additional infrastructure.&lt;/p&gt;

&lt;p&gt;Athena provides a simpler approach:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;S3 → Amazon Athena → SQL Query → Results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes it possible to analyze S3 data without provisioning or maintaining database infrastructure.&lt;/p&gt;




&lt;h2&gt;
  
  
  How Does Amazon Athena Work?
&lt;/h2&gt;

&lt;p&gt;The working process is simple:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Data is stored in an Amazon S3 bucket.&lt;/li&gt;
&lt;li&gt;Metadata about the data is defined using a table.&lt;/li&gt;
&lt;li&gt;Athena uses the AWS Glue Data Catalog to store metadata.&lt;/li&gt;
&lt;li&gt;The user writes an SQL query.&lt;/li&gt;
&lt;li&gt;Athena reads the required data from S3.&lt;/li&gt;
&lt;li&gt;The query results are displayed and can be stored in S3.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Architecture
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                Student / User
                      |
                      | SQL Query
                      ↓
              +---------------+
              | Amazon Athena |
              +---------------+
                      |
                      ↓
             AWS Glue Data Catalog
                  (Metadata)
                      |
                      ↓
                +-----------+
                | Amazon S3 |
                |           |
                | CSV Data  |
                +-----------+
                      |
                      ↓
                Query Results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Figure: Basic Amazon Athena architecture&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Serverless
&lt;/h3&gt;

&lt;p&gt;Athena is serverless, so there is no need to provision or manage servers.&lt;/p&gt;

&lt;p&gt;This allows developers and students to focus on analyzing data instead of managing infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. SQL-Based Queries
&lt;/h3&gt;

&lt;p&gt;Athena supports SQL, which makes it easy to query datasets using familiar commands such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt;
&lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Direct S3 Integration
&lt;/h3&gt;

&lt;p&gt;Athena can query data directly from Amazon S3.&lt;/p&gt;

&lt;p&gt;The original dataset can remain in S3 instead of being moved into a separate database.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Multiple Data Formats
&lt;/h3&gt;

&lt;p&gt;Athena supports several data formats, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CSV&lt;/li&gt;
&lt;li&gt;JSON&lt;/li&gt;
&lt;li&gt;Parquet&lt;/li&gt;
&lt;li&gt;ORC&lt;/li&gt;
&lt;li&gt;Avro&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Scalable Analytics
&lt;/h3&gt;

&lt;p&gt;Athena can be used to analyze datasets ranging from small files to large data lakes without manually managing servers.&lt;/p&gt;




&lt;h2&gt;
  
  
  College / Student Use Case 🎓
&lt;/h2&gt;

&lt;p&gt;Amazon Athena can be useful for college projects and departmental data analysis.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: Student Activity Analysis
&lt;/h3&gt;

&lt;p&gt;Suppose a college stores student activity data in S3:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;student_id
department
activity
timestamp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Athena could be used to analyze the data using SQL.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;activity_count&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;student_activity&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;department&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This could help generate department-wise activity reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  AIML Project Use Case
&lt;/h3&gt;

&lt;p&gt;For an AIML student project, datasets can be stored in S3 and analyzed using Athena before being used for machine learning.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Dataset
   ↓
Amazon S3
   ↓
Amazon Athena
   ↓
Data Analysis
   ↓
Machine Learning
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  My Practical Example
&lt;/h2&gt;

&lt;p&gt;For my hands-on demonstration, I used a &lt;strong&gt;Stranger Things dialogue dataset&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The dataset was downloaded from Kaggle and extracted on an Amazon EC2 instance.&lt;/p&gt;

&lt;p&gt;The extracted files included:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;episodes.csv
stranger_things_all_dialogue.csv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I then uploaded the dataset to my Amazon S3 bucket.&lt;/p&gt;

&lt;p&gt;The S3 location was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;s3://akshara-s3-15-09-2026/stranger-things/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The files were successfully uploaded using the AWS CLI.&lt;/p&gt;




&lt;h2&gt;
  
  
  Querying the Dataset with Athena
&lt;/h2&gt;

&lt;p&gt;After creating the appropriate Athena table, I can query the dataset using SQL.&lt;/p&gt;

&lt;h3&gt;
  
  
  Retrieve Sample Records
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;stranger_things_dialogue&lt;/span&gt;
&lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This retrieves the first 10 records from the dataset.&lt;/p&gt;

&lt;h3&gt;
  
  
  Count Dialogue Records
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;total_dialogues&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;stranger_things_dialogue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This calculates the total number of dialogue records.&lt;/p&gt;

&lt;h3&gt;
  
  
  Filter by Season
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;stranger_things_dialogue&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;season&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This retrieves dialogue records from Season 1.&lt;/p&gt;

&lt;h3&gt;
  
  
  Group by Character
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="nb"&gt;character&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;dialogue_count&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;stranger_things_dialogue&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="nb"&gt;character&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;dialogue_count&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows us to analyze the number of dialogue records associated with each character.&lt;/p&gt;




&lt;h2&gt;
  
  
  Advantages
&lt;/h2&gt;

&lt;h3&gt;
  
  
  No Server Management
&lt;/h3&gt;

&lt;p&gt;There is no need to create or maintain database servers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Easy to Use
&lt;/h3&gt;

&lt;p&gt;Users familiar with SQL can start querying data quickly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cost Efficient for Suitable Workloads
&lt;/h3&gt;

&lt;p&gt;Athena follows a serverless pricing model and charges primarily based on the amount of data scanned by queries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Works Well with Data Lakes
&lt;/h3&gt;

&lt;p&gt;Athena is well suited for analyzing data stored in Amazon S3.&lt;/p&gt;

&lt;h3&gt;
  
  
  Flexible
&lt;/h3&gt;

&lt;p&gt;It supports different data formats and integrates with other AWS services.&lt;/p&gt;




&lt;h2&gt;
  
  
  Limitations / Things to Consider
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Cost
&lt;/h3&gt;

&lt;p&gt;Because pricing is related to the amount of data scanned, inefficient queries on large datasets can increase costs.&lt;/p&gt;

&lt;p&gt;Using partitioning and efficient formats such as Parquet can help reduce unnecessary data scanning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Complexity
&lt;/h3&gt;

&lt;p&gt;Basic queries are simple, but advanced workloads may require knowledge of SQL, data formats and data organization.&lt;/p&gt;

&lt;h3&gt;
  
  
  Not a Transactional Database
&lt;/h3&gt;

&lt;p&gt;Athena is primarily designed for analytics. It is not intended to replace a traditional database for applications requiring frequent transactional operations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Security
&lt;/h3&gt;

&lt;p&gt;Access to S3 and Athena resources should be controlled using appropriate AWS IAM permissions. Sensitive data should also be protected using suitable S3 security configurations.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Amazon Athena provides a simple way to perform SQL-based analytics on data stored in Amazon S3.&lt;/p&gt;

&lt;p&gt;In my practical demonstration, I uploaded a Stranger Things dialogue dataset to S3 and explored how Athena can be used to query and analyze the data using SQL.&lt;/p&gt;

&lt;p&gt;The complete workflow can be summarized as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Dataset
   ↓
Amazon S3
   ↓
AWS Glue Data Catalog
   ↓
Amazon Athena
   ↓
SQL Query
   ↓
Query Results
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Amazon Athena demonstrates how cloud computing can make data analytics &lt;strong&gt;serverless, scalable and easier to manage&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For students, it is also a useful service for learning how &lt;strong&gt;S3-based data lakes and cloud analytics&lt;/strong&gt; work.&lt;/p&gt;




&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/athena/" rel="noopener noreferrer"&gt;Amazon Athena Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/s3/" rel="noopener noreferrer"&gt;Amazon S3 Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/glue/latest/dg/components-overview.html" rel="noopener noreferrer"&gt;AWS Glue Data Catalog Documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>aws</category>
      <category>amazonathena</category>
      <category>s3</category>
    </item>
    <item>
      <title>Amazon Athena: Querying S3 Data Using SQL | A Hands-on AWS Guide</title>
      <dc:creator>AKSHARANETHRA NP</dc:creator>
      <pubDate>Tue, 15 Sep 2026 16:41:53 +0000</pubDate>
      <link>https://dev.to/aksharanethra_np_e411e388/amazon-athena-querying-s3-data-using-sql-a-hands-on-aws-guide-32i0</link>
      <guid>https://dev.to/aksharanethra_np_e411e388/amazon-athena-querying-s3-data-using-sql-a-hands-on-aws-guide-32i0</guid>
      <description>&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;When working with large datasets in the cloud, analyzing data often requires setting up databases, servers, or data warehouses. Amazon Athena provides a simpler approach.&lt;/p&gt;

&lt;p&gt;Amazon Athena is a serverless interactive query service that allows users to analyze data directly from Amazon S3 using standard SQL.&lt;/p&gt;

&lt;p&gt;In this tutorial, we will:&lt;/p&gt;

&lt;p&gt;Upload a dataset to Amazon S3&lt;br&gt;
Create a database in Amazon Athena&lt;br&gt;
Create a table for the dataset&lt;br&gt;
Query the data using SQL&lt;br&gt;
View and analyze the query results&lt;/p&gt;

&lt;p&gt;For this demonstration, the Stranger Things Dialogue Dataset is used.&lt;/p&gt;

&lt;p&gt;What is Amazon Athena?&lt;/p&gt;

&lt;p&gt;Amazon Athena is a serverless query service provided by AWS that allows users to run SQL queries directly on data stored in Amazon S3.&lt;/p&gt;

&lt;p&gt;Athena does not require:&lt;/p&gt;

&lt;p&gt;Dedicated servers&lt;br&gt;
Database installation&lt;br&gt;
Infrastructure management&lt;br&gt;
Database provisioning&lt;/p&gt;

&lt;p&gt;You simply point Athena to your data in S3 and use SQL to query it.&lt;/p&gt;

&lt;p&gt;Basic Architecture&lt;br&gt;
              User&lt;br&gt;
                |&lt;br&gt;
                ↓&lt;br&gt;
        Amazon Athena&lt;br&gt;
                |&lt;br&gt;
             SQL Query&lt;br&gt;
                |&lt;br&gt;
                ↓&lt;br&gt;
        Amazon S3 Dataset&lt;br&gt;
                |&lt;br&gt;
                ↓&lt;br&gt;
           Query Result&lt;/p&gt;

&lt;p&gt;Athena uses the AWS Glue Data Catalog to store information about databases and tables, while the actual data remains in Amazon S3.&lt;/p&gt;

&lt;p&gt;Why Use Amazon Athena?&lt;/p&gt;

&lt;p&gt;Athena is useful when you need to analyze data stored in S3 without creating and maintaining a traditional database.&lt;/p&gt;

&lt;p&gt;Key advantages&lt;br&gt;
Serverless – No servers to manage&lt;br&gt;
SQL-based – Uses familiar SQL syntax&lt;br&gt;
Direct S3 querying – Data can remain in S3&lt;br&gt;
Scalable – Handles large datasets&lt;br&gt;
Pay-per-query – Charges are based primarily on the amount of data scanned&lt;br&gt;
Easy integration – Works with other AWS analytics services&lt;br&gt;
Prerequisites&lt;/p&gt;

&lt;p&gt;Before starting, you need:&lt;/p&gt;

&lt;p&gt;An AWS account&lt;br&gt;
An S3 bucket&lt;br&gt;
A dataset stored in S3&lt;br&gt;
Access to Amazon Athena&lt;br&gt;
Basic knowledge of SQL&lt;/p&gt;

&lt;p&gt;For this demonstration, the S3 bucket used is:&lt;/p&gt;

&lt;p&gt;akshara-s3-15-09-2026&lt;/p&gt;

&lt;p&gt;The dataset is stored under:&lt;/p&gt;

&lt;p&gt;s3://akshara-s3-15-09-2026/stranger-things/&lt;/p&gt;

&lt;p&gt;The uploaded files are:&lt;/p&gt;

&lt;p&gt;episodes.csv&lt;br&gt;
stranger-things-dialogue-dataset.zip&lt;br&gt;
stranger_things_all_dialogue.csv&lt;/p&gt;

&lt;p&gt;Note: In Athena, we will query the CSV file rather than the ZIP file.&lt;/p&gt;

&lt;p&gt;Step 1: Upload the Dataset to Amazon S3&lt;/p&gt;

&lt;p&gt;The dataset was first downloaded from Kaggle and extracted on an Amazon EC2 instance.&lt;/p&gt;

&lt;p&gt;The extracted files were:&lt;/p&gt;

&lt;p&gt;episodes.csv&lt;br&gt;
stranger_things_all_dialogue.csv&lt;/p&gt;

&lt;p&gt;They were then uploaded to S3 using the AWS CLI:&lt;/p&gt;

&lt;p&gt;aws s3 cp . s3://akshara-s3-15-09-2026/stranger-things/ --recursive&lt;/p&gt;

&lt;p&gt;To verify the uploaded files:&lt;/p&gt;

&lt;p&gt;aws s3 ls s3://akshara-s3-15-09-2026/stranger-things/&lt;/p&gt;

&lt;p&gt;The output confirmed that the files were successfully uploaded.&lt;/p&gt;

&lt;p&gt;Step 2: Open Amazon Athena&lt;br&gt;
Sign in to the AWS Management Console.&lt;br&gt;
Search for Athena.&lt;br&gt;
Open Amazon Athena.&lt;br&gt;
Select the appropriate AWS Region.&lt;/p&gt;

&lt;p&gt;You will be taken to the Athena Query Editor.&lt;/p&gt;

&lt;p&gt;Screenshot:&lt;br&gt;
Add screenshot of Amazon Athena Query Editor here.&lt;/p&gt;

&lt;p&gt;Step 3: Configure the Query Result Location&lt;/p&gt;

&lt;p&gt;Athena needs an S3 location where it can store the results of SQL queries.&lt;/p&gt;

&lt;p&gt;In the Athena Query Editor:&lt;/p&gt;

&lt;p&gt;Open Settings.&lt;br&gt;
Find Query result location.&lt;br&gt;
Specify an S3 path.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;s3://akshara-s3-15-09-2026/athena-results/&lt;br&gt;
Save the configuration.&lt;/p&gt;

&lt;p&gt;The query results generated by Athena will be stored in this location.&lt;/p&gt;

&lt;p&gt;Screenshot:&lt;br&gt;
Add screenshot of Athena settings here.&lt;/p&gt;

&lt;p&gt;Step 4: Create a Database&lt;/p&gt;

&lt;p&gt;We can create a database using SQL.&lt;/p&gt;

&lt;p&gt;Run:&lt;/p&gt;

&lt;p&gt;CREATE DATABASE stranger_things_db;&lt;/p&gt;

&lt;p&gt;After executing the query, select the database:&lt;/p&gt;

&lt;p&gt;USE stranger_things_db;&lt;/p&gt;

&lt;p&gt;The database provides a logical structure for organizing our tables.&lt;/p&gt;

&lt;p&gt;Step 5: Create a Table&lt;/p&gt;

&lt;p&gt;Now we need to tell Athena how the CSV file is structured.&lt;/p&gt;

&lt;p&gt;Before creating the table, inspect the CSV file and identify its column names.&lt;/p&gt;

&lt;p&gt;For example, if the dialogue dataset contains columns such as:&lt;/p&gt;

&lt;p&gt;season&lt;br&gt;
episode&lt;br&gt;
character&lt;br&gt;
dialogue&lt;/p&gt;

&lt;p&gt;we can create a table using:&lt;/p&gt;

&lt;p&gt;CREATE EXTERNAL TABLE stranger_things_dialogue (&lt;br&gt;
    season INT,&lt;br&gt;
    episode STRING,&lt;br&gt;
    character STRING,&lt;br&gt;
    dialogue STRING&lt;br&gt;
)&lt;br&gt;
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'&lt;br&gt;
WITH SERDEPROPERTIES (&lt;br&gt;
    'separatorChar' = ',',&lt;br&gt;
    'quoteChar' = '"'&lt;br&gt;
)&lt;br&gt;
LOCATION 's3://akshara-s3-15-09-2026/stranger-things/'&lt;br&gt;
TBLPROPERTIES ('skip.header.line.count'='1');&lt;br&gt;
Important&lt;/p&gt;

&lt;p&gt;The column definitions must match the actual CSV structure.&lt;/p&gt;

&lt;p&gt;If your CSV has different column names or data types, modify the CREATE TABLE statement accordingly.&lt;/p&gt;

&lt;p&gt;Step 6: Verify the Table&lt;/p&gt;

&lt;p&gt;To see the table:&lt;/p&gt;

&lt;p&gt;SHOW TABLES;&lt;/p&gt;

&lt;p&gt;You should see:&lt;/p&gt;

&lt;p&gt;stranger_things_dialogue&lt;/p&gt;

&lt;p&gt;You can also inspect the table structure:&lt;/p&gt;

&lt;p&gt;DESCRIBE stranger_things_dialogue;&lt;/p&gt;

&lt;p&gt;This displays the column names and their data types.&lt;/p&gt;

&lt;p&gt;Step 7: Run the First Query&lt;/p&gt;

&lt;p&gt;Let's retrieve some records from the dataset.&lt;/p&gt;

&lt;p&gt;SELECT *&lt;br&gt;
FROM stranger_things_dialogue&lt;br&gt;
LIMIT 10;&lt;/p&gt;

&lt;p&gt;Athena reads the data from S3 and returns the matching records.&lt;/p&gt;

&lt;p&gt;Screenshot:&lt;br&gt;
Add screenshot showing the query and results.&lt;/p&gt;

&lt;p&gt;Step 8: Count the Number of Dialogue Records&lt;/p&gt;

&lt;p&gt;We can use SQL aggregation to determine how many dialogue records exist.&lt;/p&gt;

&lt;p&gt;SELECT COUNT(*) AS total_dialogues&lt;br&gt;
FROM stranger_things_dialogue;&lt;/p&gt;

&lt;p&gt;This demonstrates how Athena can perform analytical operations directly on S3 data.&lt;/p&gt;

&lt;p&gt;Step 9: Find the Most Frequent Characters&lt;/p&gt;

&lt;p&gt;We can use GROUP BY to determine which characters appear most frequently.&lt;/p&gt;

&lt;p&gt;SELECT character, COUNT(*) AS dialogue_count&lt;br&gt;
FROM stranger_things_dialogue&lt;br&gt;
GROUP BY character&lt;br&gt;
ORDER BY dialogue_count DESC;&lt;/p&gt;

&lt;p&gt;This produces a ranking of characters based on the number of dialogue records.&lt;/p&gt;

&lt;p&gt;Step 10: Filter Data&lt;/p&gt;

&lt;p&gt;Athena supports standard SQL filtering.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;SELECT *&lt;br&gt;
FROM stranger_things_dialogue&lt;br&gt;
WHERE season = 1;&lt;/p&gt;

&lt;p&gt;This returns dialogue records belonging to Season 1.&lt;/p&gt;

&lt;p&gt;We can also search for a particular word:&lt;/p&gt;

&lt;p&gt;SELECT *&lt;br&gt;
FROM stranger_things_dialogue&lt;br&gt;
WHERE LOWER(dialogue) LIKE '%friends%';&lt;/p&gt;

&lt;p&gt;This can be useful for text-based analysis.&lt;/p&gt;

&lt;p&gt;Step 11: Aggregate Data by Season&lt;/p&gt;

&lt;p&gt;We can calculate the number of dialogue records for each season.&lt;/p&gt;

&lt;p&gt;SELECT season, COUNT(*) AS dialogue_count&lt;br&gt;
FROM stranger_things_dialogue&lt;br&gt;
GROUP BY season&lt;br&gt;
ORDER BY season;&lt;/p&gt;

&lt;p&gt;This allows us to compare dialogue volume across different seasons.&lt;/p&gt;

&lt;p&gt;Step 12: Query Results&lt;/p&gt;

&lt;p&gt;Athena displays the query results directly in the Query Editor.&lt;/p&gt;

&lt;p&gt;The results can also be stored in Amazon S3 using the query result location configured earlier.&lt;/p&gt;

&lt;p&gt;This allows the output of Athena queries to be reused by other AWS services or applications.&lt;/p&gt;

&lt;p&gt;How Amazon Athena Works&lt;/p&gt;

&lt;p&gt;The overall process can be summarized as:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    CSV Dataset
         |
         ↓
   Amazon S3
         |
         ↓
  AWS Glue Catalog
         |
         ↓
  Amazon Athena
         |
      SQL Query
         |
         ↓
   Query Results
         |
         ↓
   Amazon S3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Athena does not move the original dataset into a traditional database.&lt;/p&gt;

&lt;p&gt;Instead, it reads the required data from S3 when a query is executed.&lt;/p&gt;

&lt;p&gt;Athena and AWS Glue Data Catalog&lt;/p&gt;

&lt;p&gt;Amazon Athena works with the AWS Glue Data Catalog to store metadata about datasets.&lt;/p&gt;

&lt;p&gt;Metadata includes information such as:&lt;/p&gt;

&lt;p&gt;Database name&lt;br&gt;
Table name&lt;br&gt;
Column names&lt;br&gt;
Data types&lt;br&gt;
S3 data location&lt;br&gt;
File format&lt;/p&gt;

&lt;p&gt;The actual dataset continues to reside in S3.&lt;/p&gt;

&lt;p&gt;This separation between data and metadata makes Athena suitable for data-lake architectures.&lt;/p&gt;

&lt;p&gt;Supported Data Formats&lt;/p&gt;

&lt;p&gt;Athena can work with several data formats, including:&lt;/p&gt;

&lt;p&gt;CSV&lt;br&gt;
JSON&lt;br&gt;
Apache Parquet&lt;br&gt;
Apache ORC&lt;br&gt;
Avro&lt;br&gt;
Text files&lt;/p&gt;

&lt;p&gt;For large-scale analytics, columnar formats such as Parquet can significantly improve query performance because Athena can scan only the required columns.&lt;/p&gt;

&lt;p&gt;Advantages of Amazon Athena&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Serverless&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is no infrastructure to provision or maintain.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Easy to Use&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Users can analyze data using familiar SQL queries.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Direct S3 Integration&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Athena can query data stored directly in Amazon S3.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Scalable&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Athena can process datasets ranging from small files to very large data lakes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cost Efficient&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is no need to keep database servers running continuously.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Suitable for Data Lakes&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Athena is particularly useful for analyzing large collections of data stored in S3.&lt;/p&gt;

&lt;p&gt;Limitations&lt;/p&gt;

&lt;p&gt;Although Athena is powerful, it has some limitations.&lt;/p&gt;

&lt;p&gt;Query performance depends on data organization and file format.&lt;br&gt;
Querying large CSV datasets can result in more data being scanned.&lt;br&gt;
Poorly structured data can increase query cost.&lt;br&gt;
Athena is primarily designed for analytics rather than high-frequency transactional workloads.&lt;/p&gt;

&lt;p&gt;Using Parquet, partitioning, and efficient data organization can improve performance and reduce costs.&lt;/p&gt;

&lt;p&gt;Real-World Applications&lt;/p&gt;

&lt;p&gt;Amazon Athena can be used for:&lt;/p&gt;

&lt;p&gt;Log analysis&lt;br&gt;
Website analytics&lt;br&gt;
Security analysis&lt;br&gt;
Business intelligence&lt;br&gt;
Data lake analytics&lt;br&gt;
IoT data analysis&lt;br&gt;
Financial data analysis&lt;br&gt;
Application event analysis&lt;br&gt;
Large-scale CSV/JSON data analysis&lt;/p&gt;

&lt;p&gt;For example, an organization could store millions of application logs in S3 and use Athena to identify errors without maintaining a dedicated database server.&lt;/p&gt;

&lt;p&gt;Amazon Athena vs Traditional Database&lt;br&gt;
Feature Amazon Athena   Traditional Database&lt;br&gt;
Infrastructure  Serverless  Requires servers&lt;br&gt;
Data Storage    Amazon S3   Database storage&lt;br&gt;
Query Language  SQL SQL&lt;br&gt;
Management  Minimal Higher&lt;br&gt;
Scaling Managed by AWS  Usually configured&lt;br&gt;
Best Use    Analytics   Transactional workloads&lt;br&gt;
Data Lake Support   Excellent   Limited&lt;br&gt;
Conclusion&lt;/p&gt;

&lt;p&gt;Amazon Athena provides a simple and powerful way to analyze data stored in Amazon S3 using standard SQL.&lt;/p&gt;

&lt;p&gt;In this hands-on demonstration, the Stranger Things dialogue dataset was:&lt;/p&gt;

&lt;p&gt;Downloaded from Kaggle&lt;br&gt;
Extracted on an EC2 instance&lt;br&gt;
Uploaded to Amazon S3&lt;br&gt;
Registered as an Athena table&lt;br&gt;
Queried using SQL&lt;/p&gt;

&lt;p&gt;The main advantage is that we can perform data analysis without creating or managing a database server.&lt;/p&gt;

&lt;p&gt;This makes Amazon Athena an important service for serverless analytics and cloud-based data lake architectures.&lt;/p&gt;

&lt;p&gt;Key Takeaways&lt;br&gt;
Amazon S3       → Stores the data&lt;br&gt;
AWS Glue        → Stores metadata&lt;br&gt;
Amazon Athena   → Queries the data using SQL&lt;br&gt;
Amazon S3       → Stores query results&lt;/p&gt;

&lt;p&gt;Amazon Athena enables serverless SQL-based analytics directly on data stored in Amazon S3.&lt;/p&gt;

&lt;p&gt;References&lt;br&gt;
Amazon Athena Documentation&lt;br&gt;
Amazon S3 Documentation&lt;br&gt;
AWS Glue Data Catalog&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudnative</category>
      <category>s3</category>
      <category>amazonathena</category>
    </item>
    <item>
      <title>AWS Hands-on workshop</title>
      <dc:creator>AKSHARANETHRA NP</dc:creator>
      <pubDate>Tue, 15 Sep 2026 06:51:53 +0000</pubDate>
      <link>https://dev.to/aksharanethra_np_e411e388/aws-hands-on-workshop-2067</link>
      <guid>https://dev.to/aksharanethra_np_e411e388/aws-hands-on-workshop-2067</guid>
      <description>&lt;h1&gt;
  
  
  AWS Workshop – Day 1, Session 1
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Deploying a Portfolio Website Using AWS S3 and CloudFront
&lt;/h2&gt;

&lt;p&gt;In the first session of the AWS workshop, I learned how to deploy a static website using &lt;strong&gt;Amazon S3&lt;/strong&gt; and make it accessible globally using &lt;strong&gt;Amazon CloudFront&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Creating the Portfolio
&lt;/h3&gt;

&lt;p&gt;I first created a personal portfolio website containing sections such as my profile, skills, education, projects, and contact information.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Hosting Using Amazon S3
&lt;/h3&gt;

&lt;p&gt;I created an &lt;strong&gt;Amazon S3 bucket&lt;/strong&gt; and uploaded all the portfolio files, including HTML, CSS, JavaScript, and images.&lt;/p&gt;

&lt;p&gt;The bucket was configured for &lt;strong&gt;static website hosting&lt;/strong&gt;, allowing the portfolio to be accessed through an S3 website endpoint.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Global Deployment Using CloudFront
&lt;/h3&gt;

&lt;p&gt;Next, I created an &lt;strong&gt;Amazon CloudFront distribution&lt;/strong&gt; with the S3 bucket as the origin.&lt;/p&gt;

&lt;p&gt;CloudFront is a Content Delivery Network (CDN) that delivers website content through globally distributed edge locations. This helps reduce latency and improves website performance for users in different locations.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deployment Architecture
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Portfolio Website
       ↓
   Amazon S3
       ↓
 Amazon CloudFront
       ↓
   Global Users
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Key Learnings
&lt;/h3&gt;

&lt;p&gt;Through this hands-on session, I learned how to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create and configure an S3 bucket&lt;/li&gt;
&lt;li&gt;Upload and host a static website&lt;/li&gt;
&lt;li&gt;Create a CloudFront distribution&lt;/li&gt;
&lt;li&gt;Deploy a website for global content delivery&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;This session gave me practical experience in &lt;strong&gt;AWS cloud deployment&lt;/strong&gt;, from storing website files in S3 to distributing the portfolio globally using CloudFront.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
