DEA-C01 练习题

DEA-C01 题目讲解:按客户国家隔离要行级授权

DEA-C01 练习题讲解。答案 B。所有国家数据在同一湖,分析师可见行取决于 country 字段。

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

题目

A retail company has a customer data hub in an Amazon S3 bucket. Employees from many countries use the data hub to support company-wide analytics. A governance team must ensure that the company's data analysts can access data only for customers who are within the same country as the analysts. Which solution will meet these requirements with the LEAST operational effort?

A. Create a separate table for each country's customer data. Provide access to each analyst based on the country that the analyst serves.
B. Register the S3 bucket as a data lake location in AWS Lake Formation. Use the Lake Formation row-level security features to enforce the company's access policies.
C. Move the data to AWS Regions that are close to the countries where the customers are. Provide access to each analyst based on the country that the analyst serves.
D. Load the data into Amazon Redshift. Create a view for each country. Create separate IAM roles for each country to provide access to data from each country. Assign the appropriate roles to the analysts.

答案

答案 B。所有国家数据在同一湖,分析师可见行取决于 country 字段。

拆题

  • 所有国家数据在同一湖,分析师可见行取决于 country 字段。
  • LF data filters 可以在受支持查询路径下执行 row-level security。
  • IAM、S3 与其他读取路径也要限制,否则下载原文件会绕过行过滤。

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

  • A:每国家建表可隔离,但维护多份表和数据管道,国家增减与跨区口径成本高。
  • B(正确):LF 注册数据并以 country 条件授权相应身份,直接表达行级需求。
  • C:移动 Region 处理地理存储,不自动按用户身份过滤行。
  • D:复制进 Redshift 并建视图可实现另一方案,但额外搬运和维护,不是最少运营工作。

放到具体场景里

教学例子:AUAnalyst 角色使用 country=AU 的 data filter,查询 customers 仅返回澳洲客户;SGAnalyst 看到 SG。先在 Athena 验证,再测试 S3 GetObject 是否被旁路开放,最后验证身份组配置没有把两类权限误合并。

检查对象本例条件或动作结果与边界
行条件country=AU限定数据内容
身份AUAnalyst绑定数据 filter
旁路直接 S3 访问需同步收紧

遇到同类题的判断顺序

  1. 注册位置:确认湖治理范围。
  2. 建立 filter:按国家行条件定义。
  3. 分配身份:各国家角色对应条件。
  4. 负向验收:越界查询和原文件下载受限。
结论:数据放在哪个 Region 不能替代谁能看哪一行。

参考资料

继续练这门考试

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