Courseiva
hardMultiple ChoiceObjective-mapped

SageMaker Training Data Encryption: KMS, HTTPS, and CloudTrail

A financial services company is building a predictive model using Amazon SageMaker. The model training data contains personally identifiable information (PII). The company must ensure that the data is encrypted at rest and in transit, and that access to the data is logged. Which combination of AWS services meets these requirements?

Quick Answer

The correct answer is to use S3 server-side encryption with AWS KMS (SSE-KMS), enable SageMaker inter-container traffic encryption, and enable CloudTrail data events for the S3 bucket. This combination works because SSE-KMS encrypts the PII training data at rest in S3, SageMaker’s inter-container traffic encryption protects data in transit between training instances using TLS, and CloudTrail data events capture detailed API-level access logs for every object in the bucket. On the AWS Certified AI Practitioner AIF-C01 exam, this question tests your understanding of how to layer encryption and auditing across the full SageMaker training pipeline—a common trap is forgetting that inter-container encryption is a separate toggle from S3 encryption, or assuming CloudTrail management events alone are sufficient. Remember the mnemonic: “KMS for rest, HTTPS for transit, CloudTrail for audit.”

⚠ Common exam trap

Many exam-takers assume S3 server-side encryption alone (SSE-S3 or SSE-KMS) satisfies all encryption requirements, forgetting that SageMaker inter-container traffic encryption is needed for data in transit during distributed training.

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

Use S3 server-side encryption with AWS KMS (SSE-KMS), enable SageMaker inter-container traffic encryption, and enable CloudTrail data events for the S3 bucket

It addresses all three requirements: SSE-KMS encrypts data at rest in S3, SageMaker inter-container traffic encryption ensures data in transit between training containers is encrypted, and CloudTrail data events for the S3 bucket log all access to the PII data. This combination provides a complete, auditable encryption and logging solution.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use S3 server-side encryption with S3-managed keys (SSE-S3) and enable CloudTrail trail for S3 data events

    Why it's wrong here

    SSE-S3 does not provide customer-controlled key management; CloudTrail alone does not cover transit encryption.

  • Use S3 server-side encryption with AWS KMS (SSE-KMS), enable SageMaker inter-container traffic encryption, and enable CloudTrail data events for the S3 bucket

    Why this is correct

    SSE-KMS provides encryption at rest with key control, inter-container traffic encryption provides transit encryption, and CloudTrail data events log access to objects.

  • Use S3 client-side encryption and configure SageMaker to use HTTPS for inter-container traffic

    Why it's wrong here

    Client-side encryption requires managing keys outside AWS; inter-container traffic encryption is not directly configurable by the customer.

  • Enable S3 default encryption with AES-256 and use AWS CloudTrail for S3 data events

    Why it's wrong here

    Default encryption uses SSE-S3, lacking key control; transit encryption is not addressed.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This AIF-C01 question is part of Courseiva's 619-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way 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 deploying a machine learning model using Amazon SageMaker. They need to ensure that the training data, which contains personally identifiable information (PII), is encrypted both in transit and at rest. They also need to control access to the model endpoints. Which TWO actions should the company take?

medium
  • A.Use AWS Certificate Manager (ACM) to attach an SSL/TLS certificate to the SageMaker endpoint.
  • B.Enable SageMaker Data Wrangler for data preparation.
  • C.Enable SageMaker Model Monitor to detect data drift.
  • D.Use AWS Key Management Service (KMS) to encrypt the S3 bucket where training data is stored, and enable encryption for the SageMaker notebook instance.
  • E.Use a VPC with security groups to restrict access to the SageMaker endpoint to only known IP addresses.

Why A: The company needs to ensure encryption in transit for data sent to the endpoint and control access to the endpoint. Option A attaches an SSL/TLS certificate via ACM to encrypt HTTPS traffic, providing encryption in transit. Option E uses a VPC with security groups to restrict network access to the endpoint, effectively controlling access. Option D encrypts data at rest but does not address access control, and options B and C are unrelated to encryption or access control.

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.