SCS-C02 免费试练题 · 考证匠讲解
题目
A security engineer recently rotated all IAM access keys in an AWS account. The security engineer then configured AWS Config and enabled the following AWS Config managed rules: mfa-enabled-for-iam-console-access, iam-user-mfa-enabled, access-keys-rotated, and iam-user-unused-credentials-check. The security engineer notices that all resources are displaying as noncompliant after the IAM GenerateCredentialReport API operation is invoked. What could be the reason for the noncompliant status?
答案
答案 A。GenerateCredentialReport 可能返回最近四小时已有报告,而不是每次即刻重算。
拆题
- GenerateCredentialReport 可能返回最近四小时已有报告,而不是每次即刻重算。
- 刚轮换 keys 后读取旧报告,评估仍可能显示历史状态。
- 四小时缓存不能解释所有资源所有规则必然违规;MFA、未使用凭证和规则参数仍需单独检查。
每个选项为什么对、为什么错
- A(正确):最近四小时已生成报告,可能读到轮换前数据,这是题库所指的时效问题。
- B:缺 GenerateCredentialReport 权限一般导致 API 授权失败,不能解释成功生成后所有资源非合规。
- C:缺 GetCredentialReport 权限阻止读取,与旧报告内容不同。
- D:24 小时执行频率影响刷新时机,但题中特别指向 GenerateCredentialReport 的缓存。
放到具体场景里
教学例子:09:00 生成报告,09:30 轮换 key,09:40 再生成可能仍取 09:00 数据。查看 generatedTime 与具体 key 状态,等待合适刷新并重新评估。轮换 keys 并不会自动开启 MFA,因此 MFA rule 的违规仍可能真实存在。
| 检查对象 | 本例条件或动作 | 结果与边界 |
|---|---|---|
| 报告时间 | 09:00 generatedTime | 判断是否旧数据 |
| 变更时间 | 09:30 key rotation | 晚于报告 |
| 其他规则 | MFA 配置 | 不能用缓存一概解释 |
遇到同类题的判断顺序
- 读取时间:检查 generatedTime。
- 对应变更:比较轮换与报告时间。
- 分规则排查:MFA、unused、rotation 各自验证。
- 重新评估:新报告后核对合规状态。
结论:缓存能造成延迟,但不能作为所有非合规结果的万能解释。
参考资料
继续练这门考试
同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。
