DAS-C01 练习题

DAS-C01 题目讲解:湖权限用 Lake Formation 表达数据粒度

DAS-C01 练习题讲解。答案 A。数据在 S3、元数据在 Glue、查询经 Athena,需要统一数据权限治理。

DAS-C01 免费试练题 · 考证匠讲解

题目

A company has a data lake on AWS that ingests sources of data from multiple business units and uses Amazon Athena for queries. The storage layer is Amazon S3 using the AWS Glue Data Catalog. The company wants to make the data available to its data scientists and business analysts. However, the company first needs to manage data access for Athena based on user roles and responsibilities. What should the company do to apply these access controls with the LEAST operational overhead?

A. Define security policy-based rules for the users and applications by role in AWS Lake Formation.
B. Define security policy-based rules for the users and applications by role in AWS Identity and Access Management (IAM).
C. Define security policy-based rules for the tables and columns by role in AWS Glue.
D. Define security policy-based rules for the tables and columns by role in AWS Identity and Access Management (IAM).

答案

答案 A。数据在 S3、元数据在 Glue、查询经 Athena,需要统一数据权限治理。

拆题

  • 数据在 S3、元数据在 Glue、查询经 Athena,需要统一数据权限治理。
  • Lake Formation 可在注册数据和受支持引擎路径下授权表、列等粒度。
  • IAM 仍控制服务与 API,S3 旁路访问必须收紧,不能只建 LF 权限就宣称全面隔离。

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

  • A(正确):Lake Formation 面向数据湖授权,用角色对应的数据权限集中治理,管理开销较低。
  • B:IAM 必需,但只按用户和 API 授权不方便表达完整表列数据范围。
  • C:Glue Data Catalog 提供元数据,不能单凭 Glue 规则等同 LF 数据授权治理。
  • D:IAM 不是直接按任意 SQL 表列语义执行所有 Athena 数据访问的同等替代。

放到具体场景里

教学例子:分析师可读 orders 中日期与金额,受限看不到 email;数据科学角色获另一组列权限。分别用 Athena 测试 SELECT 的允许与拒绝,再检查是否还能从 S3 直接下载原始对象,防止绕开查询层限制。

检查对象本例条件或动作结果与边界
服务权限IAM 允许 Athena能调用服务
数据权限LF 表/列授权限定查询数据
旁路S3 直接访问限制防绕过治理

遇到同类题的判断顺序

  1. 注册数据:建立治理范围。
  2. 分配角色:按职责授予表列权限。
  3. 运行查询:受支持引擎执行授权。
  4. 检查旁路:验证 S3 与其他路径。
结论:数据粒度授权和底层对象访问要一致,否则表列保护可能被绕开。

参考资料

继续练这门考试

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