AWS Certified Machine Learning – Specialty flashcards
144 free flashcards. Tap a card to flip it.
ContainerStartupHealthCheckTimeoutInSeconds
Flip cardA SageMaker endpoint configuration parameter that sets the maximum time (in seconds) allowed for a container to pass its initial health check (`/ping`) during deployment or scaling.
- Crucial for containers with long initialization processes.
- Prevents premature deployment failures.
- Default value is usually 300 seconds (5 minutes).
Memory trick: Startup's Long, Health Check Strong, Timeout's Right, No Wrong.
SageMaker Multi-AZ Endpoint
Flip cardA SageMaker deployment option that automatically distributes model instances across multiple AWS Availability Zones, providing high availability and automatic failover for real-time inference.
- Ensures resilience against Availability Zone outages.
- Automatically routes traffic to healthy instances.
- Provides built-in high availability for critical models.
- Simplifies deployment compared to manual multi-AZ setups.
Memory trick: Multi-AZ: Spread your models across regions, never fail.
Canary Deployment (ML)
Flip cardA deployment strategy where a new version of an ML model is rolled out to a small, controlled percentage of live users, allowing for real-world testing and monitoring before a full rollout.
- Minimizes risk by limiting exposure to new model.
- Allows observation of performance with live traffic.
- Facilitates quick rollback to the old version.
- Traffic routing typically managed by endpoint variants in SageMaker.
Memory trick: Canary in the coal mine: Small group tests the air before everyone else.
SageMaker Auto Scaling & Multi-AZ
Flip cardSageMaker Endpoint Auto Scaling dynamically adjusts inference instance counts based on demand, while Multi-AZ deployment distributes instances across Availability Zones for high availability and fault tolerance.
- Auto Scaling adjusts capacity for traffic changes.
- Multi-AZ ensures high availability and resilience.
- Together, they provide robust, scalable, and fault-tolerant inference.
Memory trick: Scaling up and staying up is key for peak ML performance.
SageMaker Data Capture
Flip cardA feature for SageMaker inference endpoints (real-time or asynchronous) that automatically captures and saves input and output data for inference requests to S3.
- Provides a raw, immutable record of inferences
- Essential for auditing, debugging, and compliance
- Captures request payload, response payload, and metadata
- Configurable sampling rate for capture
Memory trick: Capture every prediction, keep the audit trail clear.
SageMaker Feature Store
Flip cardA purpose-built service for MLOps that provides a centralized repository for storing, discovering, and sharing ML features for both training and inference.
- Includes an online store for low-latency inference and an offline store for training.
- Ensures feature consistency between training and inference (prevents skew).
- Supports point-in-time lookups for historical feature values.
Memory trick: Features, features, everywhere, a central place to show you care!
A/B Testing (ML Deployment)
Flip cardA deployment strategy where different versions of a machine learning model are served to different segments of live user traffic to compare their performance metrics directly.
- Routes a percentage of real-time traffic to new model.
- Allows direct comparison of model performance.
- Minimizes risk by limiting exposure of new model.
Memory trick: Comparing models is like a traffic light, directing users to different paths.
SageMaker Endpoint
Flip cardA fully managed, continuously running HTTPS endpoint for real-time machine learning model inference.
- Provides low-latency, high-throughput inference.
- Supports auto-scaling to handle varying load.
- Integrates with various SageMaker features like model monitoring.
Memory trick: Real-time needs a persistent door, not a batch truck.
Canary Deployment
Flip cardA deployment strategy where a new version of an application or model is incrementally rolled out to a small subset of users before a full rollout.
- Reduces risk by exposing new version to limited users
- Allows real-time performance monitoring with live traffic
- Enables quick rollback to the old version if issues arise
- Often used in conjunction with A/B testing
Memory trick: Deploy like a canary, small flight first, then the flock.
SageMaker Neo
Flip cardA SageMaker feature that compiles machine learning models to optimize them for specific hardware platforms, improving inference performance and reducing memory footprint.
- Supports various frameworks (TensorFlow, PyTorch, MXNet, etc.).
- Optimizes for edge devices (IoT Greengrass) and cloud instances.
- Results in faster inference and smaller model size.
Memory trick: Neo compiles for a new, optimized reality at the edge.
SageMaker Model Parallelism (Inference)
Flip cardA SageMaker capability that enables the deployment of very large deep learning models by distributing the model's layers or components across multiple GPU instances or devices for efficient inference.
- Distributes large models across multiple GPUs/instances.
- Overcomes single-device memory limitations.
- Optimizes inference latency and throughput for LLMs.
Memory trick: Parallelism breaks big models into small, fast pieces.
SageMaker Feature Store (Online/Offline)
Flip cardA fully managed service that provides a centralized repository for machine learning features, consisting of an Online Store for low-latency real-time inference and an Offline Store for historical data for training and batch inference.
- Online Store for real-time, low-latency feature retrieval.
- Offline Store for historical data, training, and batch inference.
- Ensures consistency between training and inference features.
- Simplifies feature management and reuse.
Memory trick: Feature Store: Two sides of a coin, one fast, one deep.
Amazon SageMaker Clarify
Flip cardAn Amazon SageMaker feature that provides tools to detect bias in machine learning datasets and models, and to help explain model predictions, promoting fairness and transparency.
- Detects pre-training, post-training, and post-deployment bias.
- Generates model explanations using techniques like SHAP and LIME.
- Helps ensure regulatory compliance and ethical AI.
- Integrates with SageMaker processing jobs and pipelines.
Memory trick: Clarify: Bring light to fairness and make decisions clear.
Concept Drift Mitigation
Flip cardStrategies employed to maintain ML model performance when the underlying relationship between inputs and outputs changes over time.
- Regular retraining with fresh data is key
- Monitoring can detect drift, but retraining is the fix
- Can involve adaptive learning techniques
- Differs from data drift (input distribution change)
Memory trick: Drifting concepts? Retrain and relearn, always fresh.
Amazon SageMaker Pipelines
Flip cardA purpose-built MLOps service within SageMaker for creating, automating, and managing end-to-end machine learning workflows, including data preparation, training, evaluation, and deployment.
- Automates the entire ML lifecycle.
- Provides lineage tracking for reproducibility.
- Supports conditional logic for deployment decisions.
Memory trick: Pipeline's Flow, ML's Grow, Automated Steps, All in a Row.
SageMaker Clarify
Flip cardA SageMaker capability that helps detect bias in machine learning datasets and models, and provides tools to explain model predictions, promoting fairness and transparency.
- Detects pre-training and post-training bias.
- Generates model explanations (e.g., SHAP, LIME).
- Supports monitoring for bias and explainability in production.
Memory trick: Clarity brings fairness and trust to your ML decisions.
SageMaker Pipelines
Flip cardA SageMaker service for building, automating, and managing end-to-end machine learning workflows as reproducible, shareable, and auditable pipelines.
- Orchestrates steps like data processing, training, evaluation, and conditional deployment.
- Ensures consistency and reproducibility across ML lifecycle stages.
- Integrates with other SageMaker services like Model Registry and Feature Store.
Memory trick: Pipeline the process, from start to success, no more messy stress!
SageMaker Inference Container
Flip cardA Docker container orchestrated by Amazon SageMaker to host and serve machine learning models for real-time or batch inference.
- Contains model serving code (e.g., Flask, Gunicorn)
- Loads model artifacts from S3
- Executes prediction logic when invoked
- Can be custom or built-in SageMaker images
Memory trick: Containers Run Models Efficiently.
Conditional Model Retraining
Flip cardAn MLOps practice where a model is retrained only when specific performance degradation or data drift conditions are met, rather than on a fixed schedule.
- Reduces computational costs and resource usage associated with unnecessary retraining.
- Ensures model quality by retraining only when genuinely needed.
- Often implemented using monitoring tools like SageMaker Model Monitor to detect triggers.
Memory trick: Don't retrain in vain, monitor the pain, then train again!
Blue/Green Deployment (ML)
Flip cardA deployment strategy where two identical production environments (Blue: current, Green: new) are maintained. Traffic is shifted from Blue to Green, allowing for quick rollback if issues occur.
- Minimizes downtime during deployment.
- Enables instant rollback to the previous stable version.
- Requires double the infrastructure capacity temporarily.
Memory trick: Blue/Green is like switching traffic lights: safe and fast.
SageMaker Model Monitor
Flip cardA SageMaker service that continuously monitors the quality of ML models in production, detecting issues such as data drift, model drift, and data quality anomalies.
- Compares real-time inference data against a baseline.
- Can trigger alerts or automated retraining pipelines.
- Helps maintain model performance over time.
Memory trick: Model Monitor is the model's watchful eye.
SageMaker Endpoint Encryption (In-transit)
Flip cardEnsuring data exchanged between a client and a SageMaker endpoint is encrypted while it's moving across a network.
- Achieved primarily through HTTPS/TLS.
- Protects sensitive inference requests and responses.
- Standard practice for secure ML deployments.
Memory trick: HTTPS protects the path, TLS secures the trip.
SageMaker MLOps CI/CD
Flip cardAn automated workflow for machine learning, typically using AWS Code services and SageMaker Pipelines, to manage the entire lifecycle from data to deployment.
- Automates model building, testing, and deployment
- Ensures reproducibility and traceability
- Integrates with source control and monitoring
- SageMaker Pipelines is key for ML-specific steps
Memory trick: Code's Pipeline Builds and Deploys SageMaker's ML.
Custom SageMaker Inference Container
Flip cardA Docker container image created by the user, containing a machine learning model, its specific dependencies (e.g., custom framework versions, libraries), and custom inference code, which is then used by SageMaker for deployment.
- Provides full control over the inference environment.
- Necessary for custom framework versions or non-standard libraries.
- Pushed to Amazon ECR for SageMaker to use.
- Requires defining inference code (e.g., `model_fn`, `predict_fn`).
Memory trick: Custom Container: Pack your unique world for SageMaker to run.
Feature Store (Online/Offline)
Flip cardA centralized repository for curated and transformed features, typically comprising an online store for low-latency inference and an offline store for training and batch processing.
- Ensures feature consistency between training and inference.
- Reduces feature engineering duplication.
- Improves model performance and operational efficiency.
Memory trick: Online for speed, offline for bulk, synced for truth.
SageMaker Elastic Inference
Flip cardA SageMaker feature that allows attaching fractional GPU acceleration to Amazon EC2 and SageMaker instances, enabling cost-effective deep learning inference.
- Provides GPU acceleration at a lower cost than full GPU instances.
- Ideal for models that don't fully utilize a dedicated GPU.
- Attaches to CPU instances for inference workloads.
Memory trick: Elastic Inference: GPU Power, Feather Light, Cost's Not a Fight.
SageMaker Auto Scaling
Flip cardA feature of Amazon SageMaker that automatically adjusts the number of instances provisioned for a SageMaker endpoint in response to changes in workload.
- Optimizes costs by scaling instances up and down.
- Maintains performance during fluctuating traffic.
- Uses CloudWatch metrics and scaling policies.
Memory trick: Auto-scale for happy wallets and users.
SageMaker Endpoint Auto Scaling
Flip cardA SageMaker feature that automatically adjusts the number of inference instances for a real-time endpoint based on predefined scaling policies and metrics.
- Scales up to handle increased traffic.
- Scales down to reduce costs during low traffic.
- Uses CloudWatch metrics (e.g., CPU, invocations) to trigger scaling events.
Memory trick: Auto-Scale Smart, Cost and Speed at Heart.
SageMaker Neo for Inference
Flip cardA SageMaker service that compiles ML models from various frameworks into an optimized executable for specific hardware targets, enhancing inference performance and efficiency.
- Reduces inference latency and cost.
- Supports various frameworks (TensorFlow, PyTorch, MXNet).
- Optimizes for cloud instances (e.g., with GPUs) and edge devices.
Memory trick: Neo optimizes the model for speed, Recommender suggests the right car.
Shadow Deployment
Flip cardA deployment strategy where a new model processes a copy of live production traffic in parallel with the existing model, but its predictions are not used for actual user responses, allowing for non-disruptive validation.
- Routes a copy of production traffic to the new model.
- New model's predictions are not returned to users.
- Enables non-disruptive performance and stability testing.
Memory trick: Shadows secretly test new paths without changing the main road.
Amazon SageMaker Feature Store
Flip cardA specialized repository for machine learning features that provides both an online store for low-latency serving and an offline store for training and batch inference.
- Ensures feature consistency between training and inference
- Supports point-in-time correctness for historical data
- Reduces feature engineering duplication
- Manages feature versions and lineage
Memory trick: Store features once, serve them fast, track them always.
SageMaker Endpoint In-transit Encryption
Flip cardEnsuring that all data exchanged with an Amazon SageMaker inference endpoint is encrypted while it is moving across a network.
- Achieved primarily through HTTPS/TLS.
- Protects sensitive data from eavesdropping.
- A fundamental security requirement for many compliance standards.
Memory trick: Secure SageMaker, Encrypted Path, Trust the HTTPS Heart.
Blue/Green Deployment
Flip cardA deployment strategy where two identical production environments (Blue and Green) are maintained. One environment (Blue) serves live traffic, while the new version (Green) is deployed and validated. Once validated, traffic is switched to Green, and Blue becomes the standby or is retired.
- Minimizes downtime during deployment.
- Provides an immediate rollback mechanism.
- Requires double the infrastructure during deployment.
Memory trick: Blue and Green: Two distinct paths, quick switch means no path is lost.
Shadow Deployment (ML)
Flip cardA deployment strategy where a new model version receives a copy of live production traffic, but its predictions are not used in production, allowing for risk-free evaluation.
- Zero impact on live user experience.
- Evaluates new model with real-world data.
- Predictions are logged for offline analysis and comparison.
Memory trick: Shadow's Whisper, No Real Touch, Test in Stealth, Means So Much.
SageMaker Endpoint Encryption
Flip cardThe practice of encrypting data at rest associated with a SageMaker endpoint, including model artifacts, inference code, and storage volumes, typically using AWS KMS.
- Protects sensitive data from unauthorized access
- Uses customer-managed keys (CMKs) from KMS
- Applies to model artifacts in S3
- Applies to EBS volumes attached to endpoint instances
Memory trick: KMS Keys Keep Data Safe.
SageMaker Inference Data Encryption
Flip cardEnsuring the confidentiality of data processed by SageMaker endpoints, covering both data moving over the network (in transit) and data stored (at rest).
- In-transit encryption typically uses TLS/HTTPS.
- At-rest encryption often uses KMS keys for S3 storage (e.g., for Data Capture).
- Crucial for sensitive data and regulatory compliance (e.g., HIPAA, GDPR).
Memory trick: Transit and Rest, both must pass the encryption test!
A/B Testing (ML)
Flip cardAn experimental framework used to compare two or more versions of a machine learning model or system in a live production environment to determine which performs better.
- Routes distinct user segments to different model versions (A vs. B).
- Enables direct comparison of business and ML metrics for different strategies.
- Ideal for iterative improvement and validating new model architectures/features.
Memory trick: Experiment and compare, let the users declare, which model's beyond compare!
Concept Drift
Flip cardA phenomenon in machine learning where the statistical properties of the target variable, which the model is trying to predict, change over time in unforeseen ways.
- Causes model accuracy to degrade over time
- Often requires model retraining with newer data
- Can be gradual or sudden
- Different from data drift (input feature distribution changes)
Memory trick: Drifting Concepts Degrade Accuracy.
Event-Driven MLOps Pipeline
Flip cardAn MLOps architecture where machine learning lifecycle stages (e.g., retraining, deployment) are automatically triggered by specific events.
- Automates reactions to data drift, performance degradation, or new data availability.
- Ensures models are continuously updated and relevant.
- Often uses services like AWS Lambda, EventBridge, and SageMaker Model Monitor.
Memory trick: Events ring the bell for automated ML actions.
Custom SageMaker Container
Flip cardA custom Docker image used with Amazon SageMaker to provide a specific, pre-configured environment for training or inference, allowing for unique dependencies and frameworks.
- Packages all required software and libraries.
- Ensures consistent environment across deployments.
- Allows use of non-standard ML frameworks or versions.
Memory trick: Custom containers keep your model's unique world perfectly packed.
ML Inference Auditing
Flip cardThe process of recording and verifying every input, output, and decision made by a machine learning model, ensuring compliance, transparency, and accountability.
- Requires immutable storage of inference logs.
- Logs must include request and response payloads.
- Essential for regulatory compliance and debugging.
Memory trick: Audit trails for ML decisions demand verifiable, immutable records.
AWS CodePipeline
Flip cardA fully managed continuous delivery service that automates release pipelines for fast and reliable application and infrastructure updates.
- Orchestrates entire CI/CD workflows.
- Integrates with various AWS developer tools and services.
- Automates build, test, and deploy stages.
Memory trick: Pipeline flows, CodeBuild builds, Step Functions steps.
Model Parallelism (Inference)
Flip cardAn inference optimization technique where a single, large model is partitioned across multiple compute devices (e.g., GPUs), with different parts of the model (e.g., layers) processed in parallel.
- Reduces latency for very large and complex models.
- Allows models that exceed single-device memory to be deployed.
- Contrast with data parallelism, which distributes data, not the model.
Memory trick: Model parallelism splits the brain, data parallelism splits the workload.
Median Imputation
Flip cardA data imputation technique where missing values in a feature are replaced by the median value of the non-missing entries in that feature.
- Robust to outliers and skewed distributions.
- Preserves the original distribution shape better than mean imputation for skewed data.
- Suitable for numerical data.
Memory trick: Don't 'mean' to skew, 'median' is the clean way through.
Amazon S3 Bucket Policies
Flip cardResource-based access policies that grant or deny permissions for specific actions on an S3 bucket and its objects, directly attached to the S3 bucket itself.
- JSON-based policy language.
- Defines 'Principal', 'Action', 'Resource', and 'Effect'.
- Can grant cross-account access.
- Used for fine-grained access control at the bucket or object prefix level.
Memory trick: Bucket Policies are the bouncers for your S3 data, checking IDs.
Data Partitioning in S3
Flip cardStructuring data in Amazon S3 using prefixes (folders) that correspond to frequently queried columns, enabling query engines to limit the amount of data scanned.
- Improves query performance (e.g., with Athena, Redshift Spectrum).
- Reduces data scanning costs.
- Commonly uses hierarchical folder structure (e.g., `year/month/day/`).
- Choose partition keys based on common filter conditions.
Memory trick: Organize your S3 data like nested folders by date and region.
Median Robustness
Flip cardThe median is a measure of central tendency that is robust to outliers and skewed distributions, as it represents the middle value in an ordered dataset.
- Not affected by extreme values.
- Useful for skewed data where the mean is misleading.
- Calculated by ordering data and finding the middle point.
Memory trick: Median is the middle, mean is the average, mode is the most.
AWS Glue for Text Preprocessing
Flip cardAWS Glue is a serverless ETL service that can be used to perform various data preparation tasks, including text cleaning and feature engineering, for machine learning workloads.
- Serverless and scalable.
- Supports custom Python/Scala scripts (e.g., with NLTK, SpaCy).
- Ideal for large datasets stored in S3.
- Automates schema discovery and job orchestration.
Memory trick: Glue cleans text for ML, making it shiny and new.
Target Encoding
Flip cardA feature engineering technique where each category in a categorical feature is replaced by the mean of the target variable for that category.
- Effective for high-cardinality categorical features.
- Reduces dimensionality compared to one-hot encoding.
- Captures the relationship between the feature and the target variable.
- Can lead to data leakage if not cross-validated properly.
Memory trick: Transforming data wisely, targets reveal the truth for high cards.
S3 Data Lake Security
Flip cardImplementing a multi-layered security strategy for Amazon S3 data lakes, encompassing encryption, access control, and auditing, to protect sensitive data.
- Encryption at rest (SSE-KMS, SSE-S3) and in transit (TLS).
- Granular access control (IAM Policies, S3 Bucket Policies).
- Comprehensive logging and auditing (AWS CloudTrail, S3 Access Logs).
- Network isolation (VPC Endpoints).
Memory trick: KMS encrypts, IAM controls, CloudTrail logs every genome scroll.
Principal Component Analysis (PCA)
Flip cardA statistical procedure that uses an orthogonal transformation to convert a set of observations of possibly correlated variables into a set of linearly uncorrelated variables called principal components.
- Reduces dimensionality by creating new, uncorrelated features.
- Effective for addressing multicollinearity.
- Retains most of the variance from original features.
Memory trick: Correlated features cause a fuss, PCA brings order to us.
Multi-Column Partitioning in S3
Flip cardOrganizing data in Amazon S3 using a hierarchical folder structure based on multiple frequently-queried columns to optimize query performance and cost.
- Uses `key=value/` folder structure.
- Order of partition keys matters for query pruning.
- Most selective or frequently filtered columns often come first.
- Avoids scanning unnecessary data, reducing query time and cost.
Memory trick: Partition your data by country, then language, then date for perfect pruning.
Scatter Plot with Hue
Flip cardA scatter plot displays the relationship between two continuous variables. Adding 'hue' (color coding) allows for the visualization of an additional categorical variable, enabling comparison of patterns across different groups.
- Excellent for identifying correlations, clusters, and outliers.
- Hue helps distinguish patterns for different categories.
- Reveals non-linear relationships and density variations within groups.
- Can be enhanced with size or shape for more dimensions.
Memory trick: Scatter with hue shows how groups scatter and accrue.
Rolling Aggregation
Flip cardA feature engineering technique where a statistical aggregation (e.g., sum, mean, count) is computed over a sliding window of data points, often used for time-series data.
- Calculates metrics over a dynamic, time-based window.
- Useful for capturing recent trends or behaviors.
- Requires distributed processing for large datasets.
Memory trick: Rolling Aggregations capture Time, Glue or SageMaker make it Shine!
AWS Glue Workflows
Flip cardA serverless orchestration service within AWS Glue that allows you to create and manage complex ETL pipelines involving multiple Glue jobs, crawlers, and triggers.
- Orchestrates a sequence of AWS Glue jobs and crawlers.
- Manages dependencies between tasks.
- Provides scheduling capabilities for automated execution.
- Serverless and fully managed.
Memory trick: Glue Workflows orchestrate, from CSV to Parquet, then Catalog!
SageMaker Processing Jobs
Flip cardA fully managed Amazon SageMaker capability for running data processing, feature engineering, data validation, and model evaluation workloads at scale.
- Uses managed infrastructure for large-scale data tasks.
- Supports custom scripts and common ML frameworks (e.g., scikit-learn).
- Integrates seamlessly into SageMaker ML pipelines.
- Separate from model training, focusing on data preparation and evaluation.
Memory trick: Processing Jobs prepare data for SageMaker's big training day!
Data Type and Format Consistency
Flip cardEnsuring that data representing the same entity or concept across different sources or within a dataset has uniform data types, formats, and representations.
- Critical for accurate joins, comparisons, and analysis.
- Involves type conversion (e.g., string to int, date parsing).
- May require string manipulation (e.g., trimming, padding, regex).
- Resolves heterogeneity across disparate data sources.
Memory trick: Consistent data connects, converting types corrects.
Amazon Comprehend for PII Redaction
Flip cardAn AWS NLP service that uses machine learning to find insights and relationships in text, including identifying and redacting sensitive personally identifiable information (PII).
- Detects PII entities like names, addresses, credit card numbers.
- Can redact or mask identified PII.
- Scalable for large volumes of text data.
- Useful for privacy compliance in NLP datasets.
Memory trick: Comprehend the PII, then redact with ease!
Real-time Stream Processing for ML
Flip cardBuilding pipelines to ingest, process, and analyze high-volume, low-latency data streams in real-time for immediate machine learning inference or anomaly detection.
- Ingestion: Kinesis Data Streams for high throughput.
- Processing: AWS Lambda for lightweight transformations/enrichment.
- Advanced Analytics: Kinesis Data Analytics for Apache Flink for complex real-time logic.
- Low latency and high scalability are critical.
Memory trick: Streams flow, Lambda enriches, Flink detects the fraud that breaches.
Robust Statistics for Skewed Data
Flip cardStatistical measures of central tendency and spread that are less affected by extreme values or deviations from normality, making them suitable for skewed distributions.
- Median is a robust measure of central tendency.
- Interquartile Range (IQR) is a robust measure of spread.
- These measures are preferred over mean and standard deviation for skewed data.
Memory trick: Skewed data's tale: Median and IQR prevail.