SCS-C02 练习题

SCS-C02 题目讲解:组织 trail 加不可变日志桶

SCS-C02 练习题讲解。答案 B、D。所有成员活动统一写安全账号,组织 trail 减少逐账号配置遗漏。

SCS-C02 免费试练题 · 考证匠讲解

题目

A company has AWS accounts in an organization in AWS Organizations. The organization includes a dedicated security account. All AWS account activity across all member accounts must be logged and reported to the dedicated security account. The company must retain all the activity logs in a secure storage location within the dedicated security account for 2 years. No changes or deletions of the logs are allowed. Which combination of steps will meet these requirements with the LEAST operational overhead? (Choose two.)

A. In the dedicated security account, create an Amazon S3 bucket. Configure S3 Object Lock in compliance mode and a retention period of 2 years on the S3 bucket. Set the bucket policy to allow the organization's management account to write to the S3 bucket.
B. In the dedicated security account, create an Amazon S3 bucket. Configure S3 Object Lock in compliance mode and a retention period of 2 years on the S3 bucket. Set the bucket policy to allow the organization's member accounts to write to the S3 bucket.
C. In the dedicated security account, create an Amazon S3 bucket that has an S3 Lifecycle configuration that expires objects after 2 years. Set the bucket policy to allow the organization's member accounts to write to the S3 bucket.
D. Create an AWS CloudTrail trail for the organization. Configure logs to be delivered to the logging Amazon S3 bucket in the dedicated security account.
E. Turn on AWS CloudTrail in each account. Configure logs to be delivered to an Amazon S3 bucket that is created in the organization's management account. Forward the logs to the S3 bucket in the dedicated security account by using AWS Lambda and Amazon Kinesis Data Firehose.

答案

答案 B、D。所有成员活动统一写安全账号,组织 trail 减少逐账号配置遗漏。

拆题

  • 所有成员活动统一写安全账号,组织 trail 减少逐账号配置遗漏。
  • Object Lock compliance 保留两年对象版本,普通 lifecycle 不防提前删除。
  • 选项 B 所说允许成员写入需落实为 CloudTrail service principal 与 SourceArn/组织条件,不能开放所有成员任意 PutObject。

每个选项为什么对、为什么错

  • A:合规锁正确,但只写 management account 身份不等于授权组织 CloudTrail 交付,缺少正确服务权限表达。
  • B(正确):专用安全桶加两年合规锁符合保留目标;实际 bucket policy 必须限制 CloudTrail 正式交付,而非任意成员写。
  • C:两年后过期只是生命周期,不能阻止前两年有人删对象或版本。
  • D(正确):组织 trail 直接写专用桶,覆盖成员且少中间搬运。
  • E:逐账号 trail 再 Lambda/Firehose 复制增加维护、延迟与遗漏风险。

放到具体场景里

教学例子:成员新加入组织后组织 trail 纳入记录,CloudTrail 服务写 security-log bucket,日志版本锁两年。用正确 service policy 测试交付,再测试成员管理员删除受锁版本被拒。对象锁不能防止业务账号创建其他假对象,所以写权限也必须限定。

检查对象本例条件或动作结果与边界
覆盖organization trail核对成员与 Region
存储security account S3正确服务写入
不可变compliance 2 years锁住对象版本

遇到同类题的判断顺序

  1. 启用组织 trail:统一记录活动范围。
  2. 配置服务授权:仅允许合法 CloudTrail 交付。
  3. 设置锁定:保留对象版本两年。
  4. 双向验证:交付成功,受保护版本删除失败。
结论:集中存储与不可变都要落实,还要避免“成员都可写”污染证据。

参考资料

继续练这门考试

同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。