Question 140 of 500

Quick Answer

The answer is the `userIdentity.sessionContext.sessionIssuer.userName` field. This is correct because when a user assumes an IAM role to perform SageMaker actions, CloudTrail logs the assumed role’s ARN in the `userIdentity.arn` field, but the original user’s identity is preserved in the `sessionContext.sessionIssuer.userName` subfield. This field captures the name of the IAM user or role that initiated the `sts:AssumeRole` call, allowing the security analyst to trace back to the actual user who assumed the role. On the AWS Certified AI Practitioner AIF-C01 exam, this concept tests your understanding of CloudTrail log structure and role chaining, often appearing as a distractor where candidates mistakenly look at `userIdentity.arn` or `userName`. A common trap is assuming the assumed role’s ARN is the answer, but the exam wants the original caller. Memory tip: think “session issuer” as the “source” of the session—the user who issued the assume-role request, not the role itself.

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. Examine the command output carefully: the correct answer depends on what the output actually shows, not on general recall alone. 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 security analyst is reviewing CloudTrail logs for SageMaker API calls to identify which user executed a particular training job. The logs show assumed roles. In which CloudTrail event field can the analyst find the name of the user who assumed the role?

Question 1hardmultiple choice
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

userIdentity.sessionContext.sessionIssuer.userName

When a user assumes an IAM role to perform SageMaker actions, the CloudTrail log records the assumed role's ARN in the `userIdentity.arn` field, but the original user's identity is preserved in the `userIdentity.sessionContext.sessionIssuer.userName` field. This field contains the name of the IAM user or role that initiated the `sts:AssumeRole` call, allowing the analyst to trace back to the actual user who assumed the role.

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.

  • userIdentity.arn

    Why it's wrong here

    This field contains the ARN of the assumed role, not the user.

  • eventName

    Why it's wrong here

    This field indicates the API action performed.

  • requestParameters

    Why it's wrong here

    This field contains the parameters of the API call.

  • userIdentity.sessionContext.sessionIssuer.userName

    Why this is correct

    This field contains the username of the IAM user who assumed the role.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates see `userIdentity.arn` and assume it shows the original user, but it actually shows the ARN of the assumed role, while the original user is nested deeper in `sessionContext.sessionIssuer.userName`.

Detailed technical explanation

How to think about this question

Under the hood, when a user assumes a role via AWS STS, CloudTrail logs two events: the `AssumeRole` event (showing the original user in `userIdentity`) and subsequent API calls (showing the assumed role). The `sessionContext.sessionIssuer` object captures the original principal's ARN, userName, and type, enabling full audit trails. In real-world scenarios, this is critical for compliance audits where multiple users share a single SageMaker execution role, as it distinguishes who launched which training job.

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 startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.

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: userIdentity.sessionContext.sessionIssuer.userName — When a user assumes an IAM role to perform SageMaker actions, the CloudTrail log records the assumed role's ARN in the `userIdentity.arn` field, but the original user's identity is preserved in the `userIdentity.sessionContext.sessionIssuer.userName` field. This field contains the name of the IAM user or role that initiated the `sts:AssumeRole` call, allowing the analyst to trace back to the actual user who assumed the role.

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

Keep practising

More AIF-C01 practice questions

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.