DEA-C01 练习题

DEA-C01 题目讲解:查询历史与进程隔离用 workgroups

DEA-C01 练习题讲解。答案 B。需求是同账号内查询执行和查询历史范围,不只是表与文件权限。

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

题目

A company uses Amazon Athena for one-time queries against data that is in Amazon S3. The company has several use cases. The company must implement permission controls to separate query processes and access to query history among users, teams, and applications that are in the same AWS account. Which solution will meet these requirements?

A. Create an S3 bucket for each use case. Create an S3 bucket policy that grants permissions to appropriate individual IAM users. Apply the S3 bucket policy to the S3 bucket.
B. Create an Athena workgroup for each use case. Apply tags to the workgroup. Create an IAM policy that uses the tags to apply appropriate permissions to the workgroup.
C. Create an IAM role for each use case. Assign appropriate permissions to the role for each use case. Associate the role with Athena.
D. Create an AWS Glue Data Catalog resource policy that grants permissions to appropriate individual IAM users for each use case. Apply the resource policy to the specific tables that Athena uses.

答案

答案 B。需求是同账号内查询执行和查询历史范围,不只是表与文件权限。

拆题

  • 需求是同账号内查询执行和查询历史范围,不只是表与文件权限。
  • Athena workgroup 是查询管理边界,配 IAM 与 tags 控制访问。
  • S3 结果桶和底层数据访问仍要配合;workgroup 不会自动提供所有数据授权。

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

  • A:每用途 S3 桶管理对象权限,但不控制 Athena 查询历史与执行边界。
  • B(正确):不同用途 workgroups 配标签策略,分别管理查询、历史、结果设置和限制。
  • C:IAM role 有用,但不存在简单把角色“关联 Athena”就替代 workgroup 隔离的做法。
  • D:Glue table policy 控元数据,不能满足查询进程与历史隔离。

放到具体场景里

教学例子:finance 和 engineering 各有 workgroup,IAM policy 只允许各自 StartQueryExecution 和 GetQueryExecution 范围。结果路径也分离并加密,强制 workgroup 配置避免客户端覆盖。测试跨组查询历史被拒,自己的查询可以继续读取。

检查对象本例条件或动作结果与边界
执行边界workgroup按用途管理
权限IAM + tags限制组访问
结果独立 S3 prefix防绕开历史限制

遇到同类题的判断顺序

  1. 划分用途:建立对应 workgroup。
  2. 配置结果:加密路径与执行限制。
  3. 授予权限:IAM 按组和标签限定。
  4. 测试隔离:跨组历史与结果不可读。
结论:元数据权限、查询管理和结果文件权限是三层独立边界。

参考资料

继续练这门考试

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