Question 131 of 500

Quick Answer

The answer is to assign an IAM role with kms:Encrypt and kms:Decrypt permissions for the customer managed KMS key, configure the pipeline definition to reference that KMS key for artifact encryption, and ensure the pipeline execution role has permissions to pull images from the private Amazon ECR repository. This works because SageMaker Pipelines uses the specified KMS key to encrypt all output artifacts at rest, while the IAM role governs both API calls to the key and access to the private ECR registry, directly addressing the security team’s dual requirements for approved images and encrypted artifacts. On the AWS Certified AI Practitioner AIF-C01 exam, this scenario tests your understanding of how SageMaker Pipelines integrates with KMS for data protection and with ECR for image governance—a common trap is forgetting that the pipeline role must explicitly include both kms:Encrypt and kms:Decrypt, not just one. A useful memory tip is “Key and Pull”: the KMS key encrypts artifacts, and the IAM role pulls images from ECR.

AIF-C01 Practice Question: Security, Compliance and Governance for AI Solutions

This AIF-C01 practice question tests your understanding of security, compliance and governance for ai solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company uses Amazon SageMaker Pipelines for MLOps. The security team requires that all pipeline steps use only approved Docker images from a private Amazon ECR repository, and that all pipeline artifacts are encrypted with a customer managed KMS key. Which THREE steps must the company configure to meet these requirements? (Choose three.)

Question 1hardmulti select
Full question →

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

Specify a KMS key in the pipeline definition for encrypting output artifacts.

Option A is correct because Amazon SageMaker Pipelines allows you to specify a KMS key in the pipeline definition to encrypt output artifacts at rest. This ensures that all artifacts generated by pipeline steps are encrypted using a customer managed KMS key, meeting the security team's encryption requirement.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Specify a KMS key in the pipeline definition for encrypting output artifacts.

    Why this is correct

    This encrypts artifacts with the customer managed key.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Set an ECR lifecycle policy to delete untagged images older than 30 days.

    Why it's wrong here

    Lifecycle policies manage image retention, not enforcement of approved images in pipelines.

  • Configure each pipeline step to use an ImageUri that references a Docker image in the private Amazon ECR repository.

    Why this is correct

    This ensures only approved images from the private repo are used.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Enable AWS Config rules to check for public ECR repositories.

    Why it's wrong here

    Config rules are detective, not preventive; they do not enforce encryption in the pipeline.

  • Assign an IAM role to the pipeline that includes kms:Encrypt and kms:Decrypt permissions for the customer managed KMS key.

    Why this is correct

    The role must have KMS permissions to perform encryption/decryption during pipeline execution.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Cisco often tests the distinction between configuration that directly enforces a requirement (like specifying ImageUri and KMS key) versus monitoring or housekeeping actions (like lifecycle policies or Config rules) that do not enforce the requirement at the pipeline step level.

Detailed technical explanation

How to think about this question

Under the hood, SageMaker Pipelines uses the IAM role assigned to the pipeline to interact with AWS services. For KMS encryption, the pipeline role must have kms:Encrypt and kms:Decrypt permissions for the specific customer managed KMS key, and the key policy must also grant access to the role. For image approval, each pipeline step's ImageUri must point to a specific image in the private ECR repository, and the pipeline role must have ecr:GetDownloadUrlForLayer and ecr:BatchGetImage permissions to pull the image. In a real-world scenario, you might also use an ECR repository policy to restrict which IAM roles can pull images, adding another layer of control.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AIF-C01 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AIF-C01 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AIF-C01 question test?

Security, Compliance and Governance for AI Solutions — This question tests Security, Compliance and Governance for AI Solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Specify a KMS key in the pipeline definition for encrypting output artifacts. — Option A is correct because Amazon SageMaker Pipelines allows you to specify a KMS key in the pipeline definition to encrypt output artifacts at rest. This ensures that all artifacts generated by pipeline steps are encrypted using a customer managed KMS key, meeting the security team's encryption requirement.

What should I do if I get this AIF-C01 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 25, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.