DAS-C01 练习题

DAS-C01 题目讲解:TLS 保护传输,ACL 才限制 topic

DAS-C01 练习题讲解。答案 C。数据已加密却仍写错 topic,说明缺少 topic 级授权而非加密。

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?

A. Create a different Amazon EC2 security group for each application. Configure each security group to have access to a specific topic in the Amazon MSK cluster. Attach the security group to each application based on the topic that the applications should read and write to.
B. Install Kafka Connect on each application instance and configure each Kafka Connect instance to write to a specific topic only.
C. Use Kafka ACLs and configure read and write permissions for each topic. Use the distinguished name of the clients' TLS certificates as the principal of the ACL.
D. Create a different Amazon EC2 security group for each application. Create an Amazon MSK cluster and Kafka topic for each application. Configure each security group to have access to the specific cluster.

答案

答案 C。数据已加密却仍写错 topic,说明缺少 topic 级授权而非加密。

拆题

  • 数据已加密却仍写错 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 ACLbroker 强制拒绝越权

遇到同类题的判断顺序

  1. 建立身份:客户端证书认证。
  2. 限定资源:ACL 绑定应用 topic。
  3. 发送消息:broker 校验 principal 与操作。
  4. 测试越权:错误 topic 应被拒绝。
结论:加密、身份和授权分层处理,SSL 锁图标不代表应用只能写自己的数据。

参考资料

继续练这门考试

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