[CLF-C02 Practice Questions Q28] A List of IAM Users’ Credentials (Credential Report)

CLF-C02 Practice Questions Q28 A List of IAM Users' Credentials (Credential Report) Certification

“Last accessed information and the credential report both sound like IAM ‘reports,’ and I can’t decide which one to choose.”
“Whenever the word ‘audit’ appears, I end up choosing AWS Artifact.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) asks questions that test whether you can tell which tool to use for checking IAM by its purpose. From a purpose such as the one in this question, “a list of the MFA and access key status of all IAM users,” you choose which tool is the answer.

This article is Question 28 of a series that explains CLF practice questions one at a time. The author wrote the questions to match the scope of the exam; they are not actual exam questions. Choose your answer first, then read the explanation.


Question

An external auditor has asked a company to provide, as a list document, whether MFA is enabled and the date each access key was last rotated for every IAM user in its AWS account. Which method requires the least effort?

  • A. Check IAM last accessed information (access advisor) user by user
  • B. Generate an IAM credential report and download the CSV file
  • C. Download a compliance report from AWS Artifact
  • D. Look through the AWS CloudTrail event history for each user’s operations

Once you have chosen your answer, open the section below.

Show the answer (click to open)

Answer: B

The IAM credential report puts the status of passwords, access keys, and MFA for all IAM users into a single CSV file list. You can hand it to the auditor as is, so it is the method that requires the least effort.


The answer is B

The correct answer is B, the IAM credential report.

The credential report puts the status of passwords, access keys, and MFA for all IAM users in the account into a single CSV file list. You can hand it to the auditor as is, so it is the method that requires the least effort. Let’s look at the options one at a time.


Explanation of each option

A: Last accessed information is for reviewing permissions (incorrect)

On the left is the last accessed information for user sato: a table of allowed services and when each was last accessed (Amazon S3 2 days ago, Amazon EC2 15 days ago, Amazon DynamoDB and AWS Lambda "Not accessed"). On the right, "Purpose: reviewing permissions (view one user at a time)": remove permissions for unused services to move closer to least privilege. At the bottom, in red: "Not a list of MFA and access key rotation status"

Last accessed information is also called access advisor. As in the diagram, it shows when one user last accessed the services they are allowed to use.

You use it to find permissions for services that have not been accessed for a long time and remove them, moving closer to least privilege. It is not a list of MFA or access key rotation status. Because you view it one user at a time, it also takes effort.

B: The credential report is a CSV list (correct)

A table for the IAM credential report (credential-report.csv). The columns are User, MFA enabled?, Access key last rotated, and Password last used. tanaka, sato, and ito have MFA true; only suzuki has false, highlighted in red with the note "MFA is off, Easy to spot." On the right: "All IAM users in one list." At the bottom: "A single CSV file. Hand it to the auditor as is"

The IAM credential report collects the credential status of all IAM users in the account, and of the root user, into a CSV file.

As in the diagram, the columns show whether MFA is enabled, the date the access key was last rotated, the date the password was last used, and so on. You can also spot users without MFA right away. A report can be generated once every four hours, and you can hand it to the auditor as is.

C: Artifact provides AWS’s own reports (incorrect)

The orange frame on the left is AWS Artifact: "What you hand over: AWS's own reports." From AWS's own environment, through reports such as SOC and PCI, to handing them to the auditor. The blue frame on the right is the customer account, where tanaka, suzuki, and sato remain at "MFA? Keys?" "Artifact does not look at the customer's IAM users." At the bottom: "Does not show the status of your IAM users"

What you can get from AWS Artifact are compliance reports about AWS itself, such as SOC and PCI reports.

Words such as audit and report fit, but the content is about AWS’s environment. It does not show the status of the IAM users inside the customer’s account.

D: CloudTrail records operations (incorrect)

On the left is a table of event history (record of actions) with time, user, and event (10:58 sato PutObject, 10:41 tanaka ConsoleLogin, 10:37 suzuki RunInstances, and so on); actions from the past 90 days go on and on. On the right, "What we want is the current status": Is MFA on now? When was the access key last rotated? Against these, a cross: "Tracing the action records does not make a list." At the bottom: "Searching user by user takes effort, and it gives no list of current status"

The CloudTrail event history is a record of who performed which operation, and when. As in the diagram, operations are listed in time order.

Searching for each user’s operations in it takes effort. Moreover, tracing the records of operations does not give you a list of whether MFA is enabled now.


Tools for checking IAM

Here are the tools for checking IAM, organized by purpose. Use each one according to your purpose.

ToolWhat it shows and what it is for
Credential reportThe credential status of all IAM users (CSV) / passwords, access keys, MFA → provide to auditors
Last accessed informationWhen each service was last accessed / → remove permissions you do not use
IAM Access AnalyzerFinds resources shared with external parties

Key points

  • The MFA, access key, and password status of all IAM users → credential report (CSV)
  • Finding permissions you do not use → last accessed information
  • AWS’s own audit reports → Artifact
  • Records of operations → CloudTrail

The course articles explain the credential report, last accessed information, and the principle of least privilege in detail.

  • Lecture 10, Part 5: IAM and least privilege, in the “The principle of least privilege and access reports” section
  • Lecture 10, Part 9: Compliance and information sources, in the “AWS Artifact” section

You can read all 14 lectures of AWS Cloud Practitioner Exam Prep in order from its series page.


The CLF-C02 Practice Questions series (100 questions)

All 100 questions with a reading guide: CLF-C02 Practice Questions

In this group (Questions 19–30: The shared responsibility model and security):

This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.

コメント

Copied title and URL