SAP-C02 学习助手

SAP-C02 第 385 题

EC2 IAM Organizations

题目

一家公司在 AWS 云中运行多个工作负载。该公司拥有独立的软件开发部门。该公司使用 AWS Organizations 和 SAML 联合来向开发人员授予管理其 AWS 账户中资源的权限。每个开发单元将其生产工作负载部署到一个公共生产帐户中。 Recently, an incident occurred in the production account in which members of a development unit terminated an EC2 instance that belonged to a different development unit.解决方案架构师必须创建一个解决方案,以防止将来发生类似事件。该解决方案还必须允许开发人员能够管理用于其工作负载的实例。哪种策略可以满足这些要求?

选项

A. 在 AWS Organizations 中为每个开发单元创建单独的 OU。将创建的 OU 分配给公司 AWS 账户。 Create separate SCP with a deny action and a StringNotEquals condition for the DevelopmentUnit resource tag that matches the development unit name.将 SCP 分配给相应的 OU。

B. 在 SAML 联合期间将 DevelopmentUnit 的属性作为 AWS Security Token Service (AWS STS) 会话标签传递。 Update the IAM policy for the developers’ assumed IAM role with a deny action and a StringNotEquals condition for the DevelopmentUnit resource tag and aws:PrincipalTag/DevelopmentUnit. aws:PrincipalTag/DevelopmentUnit。

C. 在 SAML 联合期间将 DevelopmentUnit 的属性作为 AWS Security Token Service (AWS STS) 会话标签传递。为 DevelopmentUnit 资源标签和 aws:PrincipalTag/DevelopmentUnit 创建一个具有允许操作和 StringEquals 条件的 SCP。将 SCP 分配给根 OU。

D. 为每个开发单元创建单独的 IAM 策略。对于每个 IAM 策略,为 DevelopmentUnit 资源标签和开发单元名称添加允许操作和 StringEquals 条件。 During SAML federation, use AWS Security Token Service (AWS STS) to assign the IAM policy and match the development unit name to the assumed IAM role.

答案

B

解析

正确答案:B 解析: 题干关键点:AWS Organizations 组织治理、核心服务:EC2, IAM, Organizations。 正确选项: B. 在 SAML 联合期间将 DevelopmentUnit 的属性作为 AWS Security Token Service (AWS STS) 会话标签传递。 Update the IAM policy for the developers’ assumed IAM role wi...

登录后查看完整解析