easyMultiple ChoiceObjective-mapped
SageMaker Training Data Encryption with KMS
A company wants to use Amazon SageMaker to train a model on sensitive healthcare data. What is the MOST secure way to ensure that the training data is encrypted at rest and in transit, and that only authorized users can access the model artifacts?
Quick Answer
The answer is to enable server-side encryption with AWS KMS managed keys for the S3 buckets, SageMaker notebook instances, and training jobs, combined with IAM roles to limit access. This is correct because it provides end-to-end encryption for sensitive healthcare data: KMS keys encrypt data at rest in S3 and on ephemeral training storage using AES-256, while TLS 1.2+ secures data in transit between SageMaker components and services. On the AWS Certified AI Practitioner AIF-C01 exam, this scenario tests your understanding of defense-in-depth for regulated workloads like HIPAA, where a common trap is choosing only S3 encryption and forgetting that notebook instances and training jobs also need KMS integration. Remember the memory tip: “KMS covers all three—S3, notebook, and job—to lock down the full pipeline.”
⚠ Common exam trap
AWS often tests the misconception that client-side encryption (Option C) or hardware security modules (Option D) are inherently more secure, but the exam expects you to know that SageMaker's native integration with AWS KMS provides the simplest and most secure end-to-end encryption for training jobs, data, and model artifacts without custom code or unsupported integrations.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enable server-side encryption with AWS KMS managed keys for the S3 buckets, SageMaker notebook instances, and training jobs, and use IAM roles to limit access.
It provides end-to-end encryption for sensitive healthcare data by enabling server-side encryption with AWS KMS managed keys for S3 buckets (data at rest), SageMaker notebook instances (data at rest and in transit via TLS), and training jobs (data at rest on ephemeral storage and in transit between services). IAM roles enforce least-privilege access to model artifacts, ensuring only authorized users can read or write them. This combination meets compliance requirements like HIPAA by encrypting data at rest (AES-256) and in transit (TLS 1.2+), while IAM policies control access.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable server-side encryption with AWS KMS managed keys for the S3 buckets, SageMaker notebook instances, and training jobs, and use IAM roles to limit access.
Why this is correct
SageMaker supports KMS encryption for all resources, and IAM roles enforce least privilege. This meets the security requirements.
- ✗
Disable encryption for faster training, and rely on IAM policies to restrict access.
Why it's wrong here
Disabling encryption is not secure; data at rest and in transit must be encrypted for healthcare data.
- ✗
Use client-side encryption for all data, and store encryption keys in AWS Secrets Manager.
Why it's wrong here
Client-side encryption adds complexity and does not leverage SageMaker's built-in encryption capabilities. It also does not encrypt model artifacts automatically.
- ✗
Use an AWS CloudHSM to store encryption keys and configure SageMaker to use it.
Why it's wrong here
CloudHSM is not needed; KMS is sufficient and natively integrated with SageMaker.
Quick reference
Symmetric Encryption Algorithm Comparison
| Algorithm | Key Size | Block Size | Status | Notes |
|---|---|---|---|---|
| AES-128 | 128-bit | 128-bit | Current standard | NIST approved; WPA3, TLS |
| AES-256 | 256-bit | 128-bit | Current standard | Preferred for sensitive / govt data |
| 3DES | 112-bit effective | 64-bit | Deprecated (2023) | Replaced by AES |
| DES | 56-bit | 64-bit | Broken | Cracked in < 24 h; never deploy |
| ChaCha20 | 256-bit | Stream cipher | Current | TLS 1.3, WireGuard |
Go deeper
Related to this question
About these practice questions
Courseiva writes every AIF-C01 question from scratch — 619 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on AIF-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company is using Amazon Textract to extract text from scanned documents stored in an S3 bucket. The security team requires that all access to the documents be logged and that the documents be encrypted at rest using a customer-managed key. What should the company do to meet these requirements?
medium- A.Use S3 default encryption and enable Textract logging
- ✓ B.Enable S3 server-side encryption with AWS KMS (SSE-KMS) and enable CloudTrail data events for the S3 bucket
- C.Enable S3 server access logs and use S3 SSE-KMS
- D.Use S3 server-side encryption with S3-managed keys (SSE-S3) and enable S3 access logs
Why B: Enabling S3 server-side encryption with AWS KMS (SSE-KMS) satisfies the requirement for encryption at rest using a customer-managed key, and enabling CloudTrail data events for the S3 bucket captures all access to the documents (including GetObject, PutObject, etc.) for logging. This combination meets both security requirements precisely.
Variation 2. A company is using Amazon SageMaker to train machine learning models on sensitive customer data. Which AWS service can be used to encrypt the data at rest in the S3 bucket used by SageMaker?
easy- ✓ A.AWS Key Management Service (KMS)
- B.AWS CloudHSM
- C.AWS Secrets Manager
- D.AWS Certificate Manager (ACM)
Why A: AWS Key Management Service (KMS) is the correct service because it provides managed encryption keys that can be used to enable server-side encryption (SSE-KMS) for Amazon S3 buckets. When SageMaker accesses training data from S3, it can use a customer-managed KMS key to encrypt data at rest, ensuring sensitive customer data remains protected. KMS integrates directly with S3 and SageMaker, allowing you to specify a KMS key in the SageMaker training job configuration.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.