Courseiva
hardMultiple Choice

AIF-C01 Practice Question: A security analyst is reviewing CloudTrail logs…

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?

⚠ Common exam trap

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`.

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.

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

    userIdentity.arn holds the assumed role's ARN, so it names the role rather than the originating user. It is tempting because it is an identity field within userIdentity, and would be correct when the caller acts directly without assuming a role.

  • ✗

    eventName

    Why it's wrong here

    eventName records the API action performed, such as CreateTrainingJob, not the identity behind it. It is tempting because it identifies the operation under investigation, and would be correct when determining which SageMaker action was called rather than who called it.

  • ✗

    requestParameters

    Why it's wrong here

    requestParameters contains the API call's input values, such as job configuration, and carries no caller identity. It is tempting because it describes the training job itself, and would be correct when inspecting what parameters were submitted rather than who submitted them.

  • ✓

    userIdentity.sessionContext.sessionIssuer.userName

    Why this is correct

    When a principal assumes a role, CloudTrail records the assumed-role identity, and sessionContext.sessionIssuer.userName holds the originating user's name. This satisfies the stem's constraint of identifying who assumed the role, since the ARN alone shows only the role session.

About these practice questions

One of 862 original AIF-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.