Book description
Get more from your data with Amazon Athena’s ease-of-use, interactive performance, and pay-per-query pricing
Key Features
- Explore the promising capabilities of Amazon Athena and Athena’s Query Federation SDK
- Use Athena to prepare data for common machine learning activities
- Cover best practices for setting up connectivity between your application and Athena and security considerations
Book Description
Amazon Athena is an interactive query service that makes it easy to analyze data in Amazon S3 using SQL, without needing to manage any infrastructure.
This book begins with an overview of the serverless analytics experience offered by Athena and teaches you how to build and tune an S3 Data Lake using Athena, including how to structure your tables using open-source file formats like Parquet. You’ll learn how to build, secure, and connect to a data lake with Athena and Lake Formation. Next, you’ll cover key tasks such as ad hoc data analysis, working with ETL pipelines, monitoring and alerting KPI breaches using CloudWatch Metrics, running customizable connectors with AWS Lambda, and more. Moving on, you’ll work through easy integrations, troubleshooting and tuning common Athena issues, and the most common reasons for query failure. You will also review tips to help diagnose and correct failing queries in your pursuit of operational excellence. Finally, you’ll explore advanced concepts such as Athena Query Federation and Athena ML to generate powerful insights without needing to touch a single server.
By the end of this book, you’ll be able to build and use a data lake with Amazon Athena to add data-driven features to your app and perform the kind of ad hoc data analysis that often precedes many of today’s ML modeling exercises.
What you will learn
- Secure and manage the cost of querying your data
- Use Athena ML and User Defined Functions (UDFs) to add advanced features to your reports
- Write your own Athena Connector to integrate with a custom data source
- Discover your datasets on S3 using AWS Glue Crawlers
- Integrate Amazon Athena into your applications
- Setup Identity and Access Management (IAM) policies to limit access to tables and databases in Glue Data Catalog
- Add an Amazon SageMaker Notebook to your Athena queries
- Get to grips with using Athena for ETL pipelines
Who this book is for
Business intelligence (BI) analysts, application developers, and system administrators who are looking to generate insights from an ever-growing sea of data while controlling costs and limiting operational burden, will find this book helpful. Basic SQL knowledge is expected to make the most out of this book.
Table of contents
- Serverless Analytics with Amazon Athena
- Foreword
- Contributors
- About the authors
- About the reviewers
- Preface
- Section 1: Fundamentals Of Amazon Athena
- Chapter 1: Your First Query
- Chapter 2: Introduction to Amazon Athena
- Chapter 3: Key Features, Query Types, and Functions
- Section 2: Building and Connecting to Your Data Lake
- Chapter 4: Metastores, Data Sources, and Data Lakes
-
Chapter 5: Securing Your Data
- Technical requirements
-
General best practices to protect your data on AWS
- Separating permissions based on IAM users, roles, or even accounts
- Least privilege for IAM users, roles, and accounts
- Rotating IAM user credentials frequently
- Blocking public access on S3 buckets
- Enabling data and metadata encryption and enforcing it
- Ensuring that auditing is enabled
- Good intentions cannot replace good mechanisms
- Encrypting your data and metadata in Glue Data Catalog
- Enabling coarse-grained access controls with IAM resource policies for data on S3
- Enabling FGACs with Lake Formation for data on S3
- Auditing with CloudTrail and S3 access logs
- Summary
- Further reading
- Chapter 6: AWS Glue and AWS Lake Formation
- Section 3: Using Amazon Athena
- Chapter 7: Ad Hoc Analytics
- Chapter 8: Querying Unstructured and Semi-Structured Data
- Chapter 9: Serverless ETL Pipelines
- Chapter 10: Building Applications with Amazon Athena
- Chapter 11: Operational Excellence – Monitoring, Optimization, and Troubleshooting
- Section 4: Advanced Topics
- Chapter 12: Athena Query Federation
- Chapter 13: Athena UDFs and ML
- Chapter 14: Lake Formation – Advanced Topics
- Other Books You May Enjoy
Product information
- Title: Serverless Analytics with Amazon Athena
- Author(s):
- Release date: November 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800562349
You might also like
book
Simplify Big Data Analytics with Amazon EMR
Design scalable big data solutions using Hadoop, Spark, and AWS cloud native services Key Features Build …
book
Data Science on AWS
With this practical book, AI and machine learning practitioners will learn how to successfully build and …
book
Advanced Analytics with PySpark
The amount of data being generated today is staggering and growing. Apache Spark has emerged as …
book
Actionable Insights with Amazon QuickSight
Build interactive dashboards and storytelling reports at scale with the cloud-native BI tool that integrates embedded …