Courseiva
Identity and Access ManagementmediumMultiple ChoiceObjective-mapped

SCS-C03 Identity and Access Management Practice Question

An auditor needs to verify which IAM policies are attached to a specific user. Which command provides this information?

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

aws iam list-attached-user-policies --user-name <username>

The AWS CLI is the primary tool for querying IAM metadata. The 'list-attached-user-policies' command specifically returns a list of all managed policies attached to the specified user. This is critical for security audits, where verifying the effective permissions of a principal is essential to ensure they match the requirements of their role and that no excessive privileges have been granted accidentally over time.

Answer analysis

Option-by-option breakdown

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

  • aws iam list-user-policies --user-name <username>

    Why it's wrong here

    This command only lists inline policies, not managed policies. If a user has managed policies attached, this command will return an incomplete view of the user's permissions, leading to an inaccurate audit. You must use the 'list-attached-user-policies' command to see the full scope of managed policy attachments.

  • aws iam list-attached-user-policies --user-name <username>

    Why this is correct

    This is the correct CLI command to list all managed policies attached to an IAM user. Managed policies are the most common way to grant permissions, so listing them is the first step in assessing a user's permission set. This command provides a clear, concise list for audit reporting.

  • aws iam get-user-policy --user-name <username>

    Why it's wrong here

    This command requires a specific policy name as an argument. It is used to retrieve the contents of a specific inline policy rather than listing all policies attached to a user. Without knowing the policy name in advance, this command is ineffective for conducting a general audit of user permissions.

  • aws iam describe-user --user-name <username>

    Why it's wrong here

    The 'describe-user' command returns metadata about the IAM user, such as the ARN, creation date, and path. It does not provide information regarding the policies attached to the user. To view permissions, you must use the policy-specific list or get commands within the IAM namespace.

About these practice questions

One of 99 original SCS-C03 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This SCS-C03 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 SCS-C03 exam.