SCS-C02 练习题

SCS-C02 题目讲解:WAF 误拦截用 Count 观察,再精确修正

SCS-C02 练习题讲解。答案 A。升级后合法请求被拦截,需要定位具体规则而非关闭全部防护。

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

题目

A company is using AWS WAF to protect a customized public API service that is based on Amazon EC instances. The API uses an Application Load Balancer. The AWS WAF web ACL is configured with an AWS Managed Rules rule group. After a software upgrade to the API and the client application, some types of requests are no longer working and are causing application stability issues. A security engineer discovers that AWS WAF logging is not turned on for the web ACL. The security engineer needs to immediately return the application to service, resolve the issue, and ensure that logging is not turned off in the future. The security engineer turns on logging for the web ACL and specifies Amazon CloudWatch Logs as the destination. Which additional set of steps should the security engineer take to meet the requirements?

A. Edit the rules in the web ACL to include rules with Count actions. Review the logs to determine which rule is blocking the request. Modify the IAM policy of all AWS WAF administrators so that they cannot remove the logging configuration for any AWS WAF web ACLs.
B. Edit the rules in the web ACL to include rules with Count actions. Review the logs to determine which rule is blocking the request. Modify the AWS WAF resource policy so that AWS WAF administrators cannot remove the logging configuration for any AWS WAF web ACLs.
C. Edit the rules in the web ACL to include rules with Count and Challenge actions. Review the logs to determine which rule is blocking the request. Modify the AWS WAF resource policy so that AWS WAF administrators cannot remove the logging configuration for any AWS WAF web ACLs.
D. Edit the rules in the web ACL to include rules with Count and Challenge actions. Review the logs to determine which rule is blocking the request. Modify the IAM policy of all AWS WAF administrators so that they cannot remove the logging configuration for any AWS WAF web ACLs.

答案

答案 A。升级后合法请求被拦截,需要定位具体规则而非关闭全部防护。

拆题

  • 升级后合法请求被拦截,需要定位具体规则而非关闭全部防护。
  • Count 记录匹配而不阻断,可短期观察误报;应限定受影响规则并监控风险。
  • IAM 拒绝删除 logging configuration 防止普通管理员关闭日志,其他改日志权限也需核对。

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

  • A(正确):Count 让受影响请求恢复并留证,日志定位后精确 override;IAM 控制日志删除是正确权限层。
  • B:所谓 WAF resource policy 不提供按所述方式限制管理员删日志的同等 IAM 防线。
  • C:Challenge 仍可能让 API 客户端失败,且权限控制层写错。
  • D:IAM 方向正确,但加入 Challenge 不能保证恢复非浏览器 API 客户端。

放到具体场景里

教学例子:新客户端发送更长 JSON,某 managed rule 被命中。先只对该规则 Count,日志核对 request ID、terminating rule 与有效载荷,再用 scope-down/例外限制到已验证路径。恢复 Block 前回放合法和恶意样例,避免为了上线长期裸奔。

检查对象本例条件或动作结果与边界
短期恢复限定规则 Count仍有风险窗口
定位WAF 日志与 request ID明确误报条件
防关闭IAM logging 控制复查其他变更入口

遇到同类题的判断顺序

  1. 开启日志:先取得请求证据。
  2. 有限 Count:恢复受影响合法请求。
  3. 精确修正:限定规则和条件。
  4. 恢复阻断:回放正负样例再验证。
结论:Count 是诊断阶段,不应成为永久取消安全检查的借口。

参考资料

继续练这门考试

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