20. 20. An organization has created one IAM user and applied the below mentioned policy to the user. What entitlements do the IAM users avail with this policy?
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Allow”,
“Action”: “ec2:Describe*”,
“Resource”: “*”
},
{
“Effect”: “Allow”
“Action”: [
“cloudwatch:ListMetrics”,
“cloudwatch:GetMetricStatistics”,
“cloudwatch:Describe*”
],
“Resource”: “*”
},
{
“Effect”: “Allow”,
“Action”: “autoscaling:Describe*”,
“Resource”: “*”
}
]
}
20. ある組織が1つのIAMユーザーを作成し、以下のポリシーをそのユーザーに適用しました。このポリシーによってIAMユーザーはどのような権限を持つことになりますか?
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Allow”,
“Action”: “ec2:Describe*”,
“Resource”: “*”
},
{
“Effect”: “Allow”
“Action”: [
“cloudwatch:ListMetrics”,
“cloudwatch:GetMetricStatistics”,
“cloudwatch:Describe*”
],
“Resource”: “*”
},
{
“Effect”: “Allow”,
“Action”: “autoscaling:Describe*”,
“Resource”: “*”
}
]
}
正确答案: A
AWS Identity and Access Management is a web service which allows organizations to manage users and user permissions for various AWS services. If an organization wants to setup read only access to EC2 for a particular user, they should mention the action in the IAM policy which entitles the user for Describe rights for EC2, CloudWatch, Auto Scaling and ELB. In the policy shown below, the user will have read only access for EC2 and EBS, CloudWatch and Auto Scaling. Since ELB is not mentioned as a part of the list, the user will not have access to ELB.,{,“Version”: “2012-10-17”,,“Statement”: [,{,“Effect”: “Allow”,,“Action”: “ec2:Describe*”,,“Resource”: “*”,},,{,“Effect”: “Allow”,,“Action”: [,“cloudwatch:ListMetrics”,,“cloudwatch:GetMetricStatistics”,,“cloudwatch:Describe*”,],,“Resource”: “*”,},,{,“Effect”: “Allow”,,“Action”: “autoscaling:Describe*”,,“Resource”: “*”,},],},Reference: http://docs.aws.amazon.com/IAM/latest/UserGuide/GSGHowToCreateAdminsGroup.html
正解: A
AWS Identity and Access Managementは、組織がさまざまなAWSサービスのユーザーとユーザー権限を管理するためのウェブサービスです。特定のユーザーにEC2への読み取り専用アクセスを設定したい場合、組織はIAMポリシーにアクションを記載して、ユーザーにEC2、CloudWatch、Auto Scaling、ELBのDescribe権限を付与する必要があります。以下に示すポリシーでは、ユーザーはEC2およびEBS、CloudWatch、Auto Scalingに対して読み取り専用アクセスを持ちます。ELBはリストに含まれていないため、ユーザーはELBにアクセスできません。
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "ec2:Describe*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"cloudwatch:ListMetrics",
"cloudwatch:GetMetricStatistics",
"cloudwatch:Describe*"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "autoscaling:Describe*",
"Resource": "*"
}
]
}
参照: http://docs.aws.amazon.com/IAM/latest/UserGuide/GSGHowToCreateAdminsGroup.html
コメント0