By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Data types and distributions are the foundation of any ML pipeline. Structured data (tables, rows, columns) powers traditional ML (e.g., fraud detection in banking transactions), while unstructured data (text, images, audio) fuels deep learning (e.g., sentiment analysis on customer reviews). Understanding distributions (Normal, Poisson, etc.) helps you pick the right algorithms, detect anomalies, and avoid biased models. For example: - A ride-sharing app uses Poisson distribution to predict demand spikes (e.g., Friday nights) and optimize driver allocation.- A healthcare AI analyzing X-rays (unstructured) must preprocess images differently than structured EHR data (e.g., patient age, lab results).
Mastering this topic ensures you choose the right AWS services (e.g., SageMaker Processing for structured data, Rekognition for unstructured) and avoid costly mistakes in feature engineering.
Structured Data: Tabular data (rows/columns) stored in databases (e.g., Amazon RDS, Redshift) or files (CSV, Parquet). Used in regression/classification (e.g., SageMaker XGBoost). Example: Customer churn prediction using transaction history.
Unstructured Data: Non-tabular data (text, images, video, audio). Stored in S3, DynamoDB (for metadata), or OpenSearch (for search). Processed with SageMaker (for custom models) or AWS AI services (Rekognition, Comprehend, Transcribe). Example: Analyzing social media posts (text) for brand sentiment.
Semi-Structured Data: JSON, XML, or logs (e.g., CloudWatch Logs). Often processed with AWS Glue (ETL) or Athena (SQL queries). Example: Parsing IoT device logs to detect anomalies.
Normal (Gaussian) Distribution: Bell-shaped curve (e.g., height, test scores). Used in linear regression, Gaussian Naive Bayes, and anomaly detection (e.g., SageMaker Random Cut Forest). Key property: Mean = Median = Mode.
Poisson Distribution: Models count data (e.g., number of calls to a call center per hour). Used in Poisson regression (e.g., SageMaker built-in algorithms) for rare events. Key property: Mean = Variance.
Binomial Distribution: Models binary outcomes (e.g., success/failure). Used in logistic regression (e.g., SageMaker Linear Learner).
Exponential Distribution: Models time between events (e.g., customer churn, hardware failures). Used in survival analysis (e.g., SageMaker DeepAR for time-series forecasting).
Amazon S3: Object storage for all data types (structured, unstructured, semi-structured). Foundation for SageMaker training/inference. Best for: Scalable, durable storage with lifecycle policies (e.g., move old data to S3 Glacier).
AWS Glue: Serverless ETL for structured/semi-structured data. Crawls data (e.g., from RDS or S3) to create a Glue Data Catalog (schema registry). Best for: Preparing data for SageMaker or Athena.
Amazon Athena: Serverless SQL queries on S3 data (structured/semi-structured). Often used to explore data before ML training. Best for: Ad-hoc analysis without managing infrastructure.
SageMaker Processing: Managed service for feature engineering (e.g., scaling, encoding) and data preprocessing (e.g., handling missing values). Best for: Running Scikit-learn or Spark jobs at scale.
SageMaker Feature Store: Centralized repository for ML features (structured data). Supports online (low-latency) and offline (batch) access. Best for: Avoiding feature drift in production (e.g., real-time fraud detection).
AWS Rekognition: Pre-trained computer vision service for unstructured data (images/videos). Detects objects, faces, and text. Best for: Quick deployment without training custom models (e.g., moderating user-uploaded images).
Amazon Comprehend: NLP service for unstructured text (sentiment analysis, entity recognition). Best for: Extracting insights from customer reviews or support tickets.
Amazon Transcribe: Converts audio (unstructured) to text. Used in call center analytics or voice assistants. Best for: Preprocessing audio for downstream NLP tasks.
s3://fraud-detection/raw/
Use Kinesis Data Firehose if data is streaming (e.g., real-time transactions).
Explore & Clean Data:
SELECT COUNT(*) FROM transactions GROUP BY hour
Use SageMaker Processing to:
merchant_category
Feature Engineering:
transactions_per_hour
Store features in SageMaker Feature Store (online + offline) to avoid recomputation.
Train Model:
objective="count:poisson"
Alternatively, use SageMaker Built-in Algorithms (e.g., Random Cut Forest for anomaly detection).
Deploy & Monitor:
Upload reviews (text) to S3 (e.g., s3://reviews/raw/).
s3://reviews/raw/
Preprocess Text:
Use SageMaker Processing with NLTK or spaCy to:
Alternatively, use Amazon Comprehend for pre-trained sentiment analysis (no training needed).
Deploy & Infer:
SageMaker XGBoost
Example: "A model predicts the number of support tickets per hour. Which distribution should you assume?" → Poisson.
Service Selection Traps:
Rekognition vs. SageMaker Custom Models:
Feature Store vs. S3:
S3 is for raw/processed data (e.g., training datasets).
Unstructured Data Services:
Why: Poisson models count data (e.g., events per time period).
A data scientist is building a model to classify customer support tickets as "urgent" or "non-urgent." The data is stored in S3 as JSON files. Which AWS service should they use to preprocess the text before training?
Why: SageMaker Processing handles custom preprocessing (e.g., tokenization, stopword removal) for unstructured data.
A healthcare startup is analyzing X-rays (images) to detect pneumonia. They need a solution with minimal ML expertise. Which AWS service should they use?
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.