AWS Learning
Analytics

Amazon QuickSight

BI Visualization, SPICE Engine, Dashboards, ML Insights, Generative BI

Giới thiệu

Amazon QuickSight là dịch vụ Business Intelligence (BI) serverlesscloud-native của AWS, cho phép tạo dashboards, visualizationsreports từ nhiều data sources khác nhau.

Tại sao cần QuickSight?

┌───────────────────────────────────────────────────────────────────────────────┐
│                     Vấn đề: Có data nhưng khó hiểu!                           │
├───────────────────────────────────────────────────────────────────────────────┤
│                                                                               │
│   ┌─────────────┐                                                             │
│   │  Data thô   │   ❌ Hàng triệu rows                                        │
│   │  (S3, RDS,  │   ❌ Khó nhìn patterns                                      │
│   │  Redshift)  │   ❌ Mất thời gian phân tích                                │
│   └─────────────┘                                                             │
│                                                                               │
│                              ▼▼▼                                              │
│                                                                               │
│   ┌─────────────┐     ┌───────────────┐     ┌─────────────────────────┐       │
│   │    Data     │────►│   QuickSight  │────►│   Dashboard dễ hiểu!    │       │
│   │   Sources   │     │    (BI Tool)  │     │   📊 📈 🗺️ 📉           │       │
│   └─────────────┘     └───────────────┘     └─────────────────────────┘       │
│                                                                               │
│   ✅ Visualize data bằng charts, graphs                                       │
│   ✅ Interactive dashboards                                                   │
│   ✅ Share với team, embed vào app                                            │
│   ✅ AI-powered insights với Amazon Q                                         │
│                                                                               │
└───────────────────────────────────────────────────────────────────────────────┘

Đặc điểm chính

Đặc điểmMô tả
ServerlessKhông cần quản lý infrastructure
ScalableTự động scale theo số users
Pay-per-sessionChỉ trả tiền khi user thực sự dùng
SPICE engineIn-memory engine cho query nhanh
ML-poweredAnomaly detection, forecasting tự động
Generative BIAmazon Q để hỏi bằng ngôn ngữ tự nhiên

Cách hoạt động

┌──────────────────────────────────────────────────────────────────────────────┐
│                      Amazon QuickSight Architecture                          │
├──────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│   DATA SOURCES                    QUICKSIGHT                 CONSUMERS       │
│   ───────────                    ───────────                 ─────────       │
│                                                                              │
│   ┌─────────────┐              ┌──────────────────────┐                      │
│   │  Amazon S3  │───┐          │                      │     ┌───────────────┐│
│   └─────────────┘   │          │   ┌──────────────┐   │     │  Authors      ││
│                     │          │   │    SPICE     │   │     │(tạo dashboard)││
│   ┌─────────────┐   │          │   │  (In-memory  │   │     └───────────────┘│
│   │  Amazon RDS │───┤          │   │   cache)     │   │            │         │
│   └─────────────┘   │          │   └──────────────┘   │           ▼          │
│   │──────────►       ▼              │              ┌──────────────────────┐  │
│   ┌─────────────┐   │          │   ┌──────────────┐   │────►│ Readers       ││
│   │  Redshift   │───┤          │   │  Dashboards  │   │     │(xem reports)  ││
│   └─────────────┘   │          │   │  & Reports   │   │     └───────────────┘│
│                     │          │   └──────────────┘   │            │         │
│   ┌─────────────┐   │          │                      │           ▼          │
│   │  Athena     │───┤          │   ┌──────────────┐   │     ┌───────────────┐│
│   └─────────────┘   │          │   │   Amazon Q   │   │     │  Embedded     ││
│                     │          │   │ (Natural     │   │────►│  in Apps      ││
│   ┌─────────────┐   │          │   │  Language)   │   │     └───────────────┘│
│   │ On-Premises │───┘          │   └──────────────┘    │                     │
│   │ (via JDBC)  │              │                      │                      │
│   └─────────────┘              └──────────────────────┘                      │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Workflow

BướcMô tả
1. ConnectKết nối tới data sources (S3, RDS, Redshift...)
2. PrepareClean, filter, transform data
3. Import to SPICELoad data vào in-memory engine (optional)
4. AnalyzeTạo visualizations, calculations
5. SharePublish dashboards, schedule reports

SPICE Engine

SPICE = Super-fast Parallel In-memory Calculation Engine

┌───────────────────────────────────────────────────────────────────────────────┐
│                            SPICE vs Direct Query                              │
├───────────────────────────────────────────────────────────────────────────────┤
│                                                                               │
│   DIRECT QUERY                           SPICE                                │
│   ─────────────                          ─────                                │
│                                                                               │
│   ┌─────────────┐                      ┌─────────────┐                        │
│   │ QuickSight  │                      │ QuickSight  │                        │
│   └──────┬──────┘                      └──────┬──────┘                        │
│          │                                     │                              │
│          │ Query mỗi lần                      │ Query từ cache                │
│          │ refresh                            │ (siêu nhanh!)                 │
│          ▼                                    ▼                               │
│   ┌─────────────┐                      ┌─────────────┐                        │
│   │  Database   │                      │   SPICE     │ ◄── Data được          │
│   │  (chậm)     │                      │  (In-RAM)   │     import trước       │
│   └─────────────┘                      └─────────────┘                        │
│                                                │                              │
│   ❌ Slow với big data                        │ Scheduled refresh             │
│   ❌ Tốn load cho DB                          ▼                               │
│   ✅ Real-time data               ┌─────────────────┐                         │
│                                   │  Actual DB      │                         │
│                                   └─────────────────┘                         │
│                                                                               │
│                                   ✅ Sub-second responses                     │
│                                   ✅ Không load DB                            │
│                                   ⚠️ Data có thể hơi cũ (based on refresh)    │
│                                                                               │
└───────────────────────────────────────────────────────────────────────────────┘

SPICE Capacity

TierSPICE per user
Standard10 GB per author
Enterprise10 GB per author (có thể mua thêm)
Max rows2 billion rows per dataset

Data Sources

Supported Data Sources

┌──────────────────────────────────────────────────────────────────────────────┐
│                      QuickSight Data Sources                                 │
├──────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│   AWS NATIVE                        FILES                                    │
│   ──────────                        ─────                                    │
│   ├── Amazon S3                     ├── CSV, TSV                             │
│   ├── Amazon RDS                    ├── Excel (XLSX)                         │
│   ├── Amazon Redshift               ├── JSON                                 │
│   ├── Amazon Athena                 └── Log files                            │
│   ├── Amazon OpenSearch                                                      │
│   ├── Amazon Timestream             SAAS                                     │
│   └── AWS IoT Analytics             ────                                     │
│                                     ├── Salesforce                           │
│   DATABASES                         ├── Twitter                              │
│   ─────────                         ├── GitHub                               │
│   ├── MySQL                         ├── JIRA                                 │
│   ├── PostgreSQL                    └── ServiceNow                           │
│   ├── MariaDB                                                                │
│   ├── SQL Server                    ON-PREMISES                              │
│   ├── Oracle                        ───────────                              │
│   ├── Snowflake                     └── Any JDBC-compatible                  │
│   ├── Teradata                          database                             │
│   ├── Presto/Trino                                                           │
│   └── Google BigQuery                                                        │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Visualizations

Các loại Charts

CategoryChart Types
ComparisonBar charts, Stacked bars, Clustered bars
TrendLine charts, Area charts, Combo charts
DistributionHistograms, Box plots, Scatter plots
CompositionPie charts, Donut charts, Tree maps, Sunburst
RelationshipScatter plots, Bubble charts, Network graphs
GeospatialMaps, Choropleth, Heat maps, Point maps
KPIsKPI visuals, Gauges, Sparklines
TablesTables, Pivot tables
OtherWord clouds, Radar charts, Sankey diagrams

Dashboard Components

┌───────────────────────────────────────────────────────────────────────────────┐
│                      Sample QuickSight Dashboard                              │
├───────────────────────────────────────────────────────────────────────────────┤
│                                                                               │
│   ┌──────────────────────────────────────────────────────────────────────┐    │
│   │  📅 Date Filter: [Last 30 days ▼]    🏢 Region: [All ▼]              │    │
│   └──────────────────────────────────────────────────────────────────────┘    │
│                                                                               │
│   ┌───────────────┐  ┌───────────────┐  ┌───────────────┐  ┌─────────────┐    │
│   │   KPI Card    │  │   KPI Card    │  │   KPI Card    │  │  KPI Card   │    │
│   │   Revenue     │  │   Orders      │  │   Users       │  │  Avg Order  │    │
│   │   $1.2M ▲12%  │  │   45,230 ▲8%  │  │   12,500 ▲15% │  │  $26.50 ▼2% │    │
│   └───────────────┘  └───────────────┘  └───────────────┘  └─────────────┘    │
│                                                                               │
│   ┌────────────────────────────────────┐  ┌─────────────────────────────┐     │
│   │         Revenue Trend              │  │    Sales by Category        │     │
│   │   📈 Line Chart                    │  │    🥧 Pie Chart             │     │
│   │   ┌──────────────────────┐         │  │    ┌─────────────────┐        │   │
│   │   │    ╱╲                │         │  │    │   ████ 35%      │        │   │
│   │   │   ╱  ╲  ╱╲           │         │  │    │   ████ 28%      │        │   │
│   │   │  ╱    ╲╱  ╲          │         │  │    │   ████ 22%      │        │   │
│   │   └──────────────────────┘         │  │    │   ████ 15%      │        │   │
│   │   Jan  Feb  Mar  Apr  May          │  │    └─────────────────┘        │   │
│   └────────────────────────────────────┘  └─────────────────────────────┘     │
│                                                                               │
│   ┌─────────────────────────────────────────────────────────────────────┐     │
│   │                        Sales by Region (Map)                        │     │
│   │   🗺️                                                                │     │
│   │   ┌───────────────────────────────────────────────────────────────┐   │   │
│   │   │     ●●●           ●●                     ●                    │   │   │
│   │   │        ●●●●    ●●●●●●           ●●●●                         │    │   │
│   │   │           ●●●●●                                               │   │   │
│   │   └───────────────────────────────────────────────────────────────┘   │   │
│   └─────────────────────────────────────────────────────────────────────┘     │
│                                                                               │
└───────────────────────────────────────────────────────────────────────────────┘

Amazon Q in QuickSight

Amazon Q = Generative AI assistant tích hợp trong QuickSight

Capabilities

┌──────────────────────────────────────────────────────────────────────────────┐
│                        Amazon Q in QuickSight                                │
├──────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│   ┌─────────────────────────────────────────────────────────────────────┐    │
│   │  User: "Show me top 5 products by revenue last month"               │    │
│   └─────────────────────────────────────────────────────────────────────┘    │
│                              │                                               │
│                              ▼                                               │
│   ┌─────────────────────────────────────────────────────────────────────┐    │
│   │  Amazon Q:                                                          │    │
│   │  ┌───────────────────────────────────────────────────────────────┐   │   │
│   │  │  Product          Revenue     Change                          │   │   │
│   │  │  ───────          ───────     ──────                          │   │   │
│   │  │  Product A        $125,000    ▲ 15%                           │   │   │
│   │  │  Product B        $98,500     ▲ 8%                            │   │   │
│   │  │  Product C        $87,200     ▼ 3%                            │   │   │
│   │  │  Product D        $76,800     ▲ 12%                           │   │   │
│   │  │  Product E        $65,000     ▲ 5%                            │   │   │
│   │  └───────────────────────────────────────────────────────────────┘   │   │
│   │                                                                     │    │
│   │  💡 Amazon Q auto-creates visualization từ natural language!        │    │
│   └─────────────────────────────────────────────────────────────────────┘    │
│                                                                              │
│   FEATURES:                                                                  │
│   ├── Natural Language Queries - Hỏi bằng tiếng Anh                          │
│   ├── Auto-create Visuals - Tự động tạo charts phù hợp                       │
│   ├── Data Stories - Tự động tạo narrative từ data                           │
│   ├── Anomaly Detection - Phát hiện bất thường                               │
│   ├── Forecasting - Dự báo trends                                            │
│   └── Executive Summaries - Tóm tắt key insights                             │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Sharing và Embedding

User Types

User TypeCapabilitiesPricing
AuthorCreate/edit analyses, dashboards, datasetsMonthly subscription
ReaderView dashboards, apply filtersPay-per-session
AdminManage users, settings, capacityIncluded with Author

Sharing Options

┌──────────────────────────────────────────────────────────────────────────────┐
│                      Sharing & Distribution Options                          │
├──────────────────────────────────────────────────────────────────────────────┤
│                                                                              │
│   INTERNAL SHARING                                                           │
│   ────────────────                                                           │
│   ├── Share với users trong QuickSight account                               │
│   ├── Share với groups                                                       │
│   └── Row-level security (mỗi user thấy data khác nhau)                      │
│                                                                              │
│   SCHEDULED REPORTS                                                          │
│   ─────────────────                                                          │
│   ├── Email reports theo schedule (PDF, CSV, Excel)                          │
│   ├── Subscribe users to dashboards                                          │
│   └── Threshold alerts                                                       │
│                                                                              │
│   EMBEDDING                                                                  │
│   ─────────                                                                  │
│   ├── Embed dashboards vào web apps                                          │
│   ├── Embed Q search bar                                                     │
│   ├── Single-sign-on (SSO)                                                   │
│   └── Custom branding                                                        │
│                                                                              │
│   ┌─────────────────────────────────────────────────────────────────────┐    │
│   │   Your Web Application                                              │    │
│   │   ┌───────────────────────────────────────────────────────────────┐  │   │
│   │   │   Header                                                      │  │   │
│   │   ├───────────────────────────────────────────────────────────────┤ │    │
│   │   │   ┌─────────────────────────────────────────────────────────┐ │  │   │
│   │   │   │         Embedded QuickSight Dashboard                   │ │  │   │
│   │   │   │         (looks native to your app)                      │ │  │   │
│   │   │   └─────────────────────────────────────────────────────────┘ │  │   │
│   │   └───────────────────────────────────────────────────────────────┘  │   │
│   └─────────────────────────────────────────────────────────────────────┘    │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Pricing

Pricing Model

EditionAuthorReader
Standard$9/monthN/A (no reader role)
Enterprise$18/month$0.30/session (max $5/month)

SPICE Pricing

AmountPrice
First 10 GB/userIncluded
Additional~$0.25/GB/month

Key Point

[!TIP] Pay-per-session cho Readers rất cost-effective! User chỉ trả khi thực sự mở dashboard (max $5/month). Rất phù hợp cho việc share dashboards với nhiều users không thường xuyên dùng.


So sánh với các BI Tools khác

FeatureQuickSightTableauPower BI
DeploymentServerless (AWS)On-prem/CloudCloud/On-prem
AWS Integration✅ NativePluginPlugin
ML/AI Features✅ Built-inAdd-onBuilt-in
PricingPay-per-sessionPer userPer user
SPICE Engine✅ In-memoryHyperVertiPaq
Embedding✅ EasyComplexComplex
Learning CurveEasySteepMedium

Khi nào dùng QuickSight?

ScenarioRecommended?
Heavy AWS workload (S3, Redshift, Athena)✅ Ideal
Need serverless, no infrastructure✅ Ideal
Pay-per-session pricing model✅ Ideal
Embed BI into SaaS product✅ Ideal
Already using Tableau/Power BI⚠️ Consider migration effort
Need very complex visualizations⚠️ Tableau might be better

Use Cases

1. Business Dashboards

Marketing team dashboard:
├── Campaign performance metrics
├── Lead conversion funnels
├── Ad spend vs revenue
└── Social media analytics

2. Operational Monitoring

Operations dashboard:
├── Real-time metrics from CloudWatch
├── Application performance
├── Error rates and alerts
└── Resource utilization

3. Embedded Analytics

SaaS product:
├── Customer-facing analytics
├── Usage reports cho customers
├── White-labeled dashboards
└── Self-service reporting

4. Data Lake Analytics

Data lake visualization:
├── S3 data via Athena → QuickSight
├── Ad-hoc analysis
├── Data exploration
└── ML-powered insights

Exam Tips

Key Points for AWS Exams

  1. Serverless BI - Không cần quản lý servers
  2. SPICE - In-memory engine cho fast queries
  3. Pay-per-session - Reader chỉ trả khi dùng (Enterprise)
  4. ML Insights - Anomaly detection, forecasting built-in
  5. Amazon Q - Natural language queries (Generative BI)
  6. Embedding - Dễ dàng embed vào web apps

Common Exam Scenarios

ScenarioAnswer
Need BI tool integrated with AWS servicesQuickSight
Visualize data from S3/AthenaQuickSight with SPICE
Serverless analytics dashboardQuickSight
Embed dashboards in customer appQuickSight embedded
Pay only when users view reportsQuickSight (pay-per-session)
Ask questions in natural languageAmazon Q in QuickSight
Need ML-powered forecasting in BIQuickSight ML Insights

Phân biệt với services khác

NeedService
Query data từ S3Athena
Visualize dataQuickSight
ETL/Transform dataGlue
Data warehouseRedshift
Search & AnalyticsOpenSearch

Liên kết liên quan