DAS-C01 免费试练题 · 考证匠讲解
题目
A central government organization is collecting events from various internal applications using Amazon Managed Streaming for Apache Kafka (Amazon MSK). The organization has configured a separate Kafka topic for each application to separate the data. For security reasons, the Kafka cluster has been configured to only allow TLS encrypted data and it encrypts the data at rest. A recent application update showed that one of the applications was configured incorrectly, resulting in writing data to a Kafka topic that belongs to another application. This resulted in multiple errors in the analytics pipeline as data from different applications appeared on the same topic. After this incident, the organization wants to prevent applications from writing to a topic different than the one they should write to. Which solution meets these requirements with the least amount of effort?
答案
拆题
- 数据已加密却仍写错 topic,说明缺少 topic 级授权而非加密。
- Kafka ACL 以 principal、resource、operation 定义访问范围。
- 使用证书 DN 作身份前提是已配置客户端证书认证;只开启服务器 TLS 加密不自动提供可靠客户端身份。
每个选项为什么对、为什么错
- A:Security group 按网络地址和端口控制,不能识别同一个 Kafka 端口内的不同 topic。
- B:Kafka Connect 配置是客户端行为,错误或被修改仍可能写错,没有服务端强制授权。
- C(正确):topic ACL 对证书 principal 分别授予读写,能在 broker 端拒绝跨应用写入;需先完成 mTLS 身份配置。
- D:每应用独建 cluster 可以隔离但成本与维护大,不符合最少工作量。
放到具体场景里
教学例子:证书 DN=CN=orders 的生产者仅获 orders topic 的 Write 权限。它误把目标写成 payments 时,broker 返回授权错误,消息不会污染 payments。证书轮换后 DN 与 ACL 映射也要验证,不能仅测试连接成功。
| 检查对象 | 本例条件或动作 | 结果与边界 |
|---|---|---|
| 传输 | TLS | 防窃听不防写错 topic |
| 身份 | 客户端证书 DN | 需 mTLS 配置 |
| 授权 | topic Write ACL | broker 强制拒绝越权 |
遇到同类题的判断顺序
- 建立身份:客户端证书认证。
- 限定资源:ACL 绑定应用 topic。
- 发送消息:broker 校验 principal 与操作。
- 测试越权:错误 topic 应被拒绝。
参考资料
继续练这门考试
同一门考试的免费试练题都附这样的完整讲解,做完再看讲解。
