Amazon EC2 has no Amazon Resource Names (ARNs) because you can’t specify a particular Amazon EC2
resource in an IAM policy.
A.
TRUE
B.
FALSE
Amazon EC2 has no Amazon Resource Names (ARNs) because you can’t specify a particular Amazon EC2
resource in an IAM policy.
Amazon EC2 has no Amazon Resource Names (ARNs) because you can’t specify a particular Amazon EC2
resource in an IAM policy.
A.
TRUE
B.
FALSE
imho B
Amazon Resource Names for Amazon EC2
Each IAM policy statement applies to the resources that you specify using their ARNs.
An ARN has the following general syntax:
arn:aws:[service]:[region]:[account]:resourceType/resourcePath
service
The service (for example, ec2)
Source: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policy-structure.html#EC2_ARN_Format
Also B
My choice is A, because they are not talking about all resources, question is about “particular” EC2.
A. True
Examples:
arn:aws:ec2:us-east-1::image/ami-1a2b3c4d
arn:aws:ec2:us-east-1:123456789012:instance/*
arn:aws:ec2:us-east-1:123456789012:volume/*
arn:aws:ec2:us-east-1:123456789012:volume/vol-1a2b3c4d
arn:aws:ec2:region:account_id:dedicated-host/host_id
Its false, answer is B
resource name for a particular instance is “arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0”,
arn:aws:ec2:aws accountid:instance/
Answer is B
http://blogs.aws.amazon.com/security/post/Tx29HCT3ABL7LP3/Resource-level-Permissions-for-EC2-Controlling-Management-Access-on-Specific-Ins
B is the right answer.
See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policy-structure.html#EC2_ARN_Format
Instance ARN:
arn:aws:ec2:region:account:instance/instance-id
Where instance-id is i-xxxxxxxx or i-xxxxxxxxxxxxxxxxx
B
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policy-structure.html#EC2_ARN_Format
B
A is the answer because you can generally define EC2 in the policy but cannot specify a particular EC2 resource. There is no ARN to identify a specific EC2 instance / resource.
A
B. FAlse.
Here is the syntax from http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
Amazon Elastic Compute Cloud (Amazon EC2)
Syntax:
arn:aws:ec2:region:account-id:customer-gateway/cgw-id
arn:aws:ec2:region:account_id:dedicated-host/host_id
arn:aws:ec2:region:account-id:dhcp-options/dhcp-options-id
arn:aws:ec2:region::image/image-id
arn:aws:ec2:region:account-id:instance/instance-id
arn:aws:iam::account:instance-profile/instance-profile-name
arn:aws:ec2:region:account-id:internet-gateway/igw-id
arn:aws:ec2:region:account-id:key-pair/key-pair-name
arn:aws:ec2:region:account-id:network-acl/nacl-id
arn:aws:ec2:region:account-id:network-interface/eni-id
arn:aws:ec2:region:account-id:placement-group/placement-group-name
arn:aws:ec2:region:account-id:route-table/route-table-id
arn:aws:ec2:region:account-id:security-group/security-group-id
arn:aws:ec2:region::snapshot/snapshot-id
arn:aws:ec2:region:account-id:subnet/subnet-id
arn:aws:ec2:region:account-id:volume/volume-id
arn:aws:ec2:region:account-id:vpc/vpc-id
arn:aws:ec2:region:account-id:vpc-peering-connection/vpc-peering-connection-id
arn:aws:ec2:region:account-id:vpn-connection/vpn-id
arn:aws:ec2:region:account-id:vpn-gateway/vgw-id
Ans: B
because EC2 is base service . we dont need ARN to refer EC2.
Answer is B
For example, you can indicate a specific instance (i-1234567890abcdef0) in your statement using its ARN as follows:
“Resource”: “arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0”
B.
FALSE
B. FALSE
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ExamplePolicies_EC2.html#iam-example-instances
Ans: True
Amazon EC2 resources are
Running Instances, Dedicated Hosts, Volumes, Key Pairs, Placement Groups,Elastic IPs, Snapshots, Load Balancers and Security Groups.
So in the question they asked particular EC2 resource means any one of the above, so True is the correct answer.
All Amazon EC2 resources: arn:aws:ec2:*
All Amazon EC2 resources owned by the specified account in the specified region: arn:aws:ec2:region:account:*
My mistake False is the correct answer.
Currently, not all API actions support individual ARNs. But it supports for (Volume, Security group, Key pair, Instance, Placement group and snapshot have ARNs ).
Question – Amazon EC2 has NO Amazon Resource Names (ARNs)
Answer should be – False
Since as per following, EC2 does have ARNs
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-policy-structure.html#EC2_ARN_Format
https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-arns.html#using-govcloud-arn-syntax-ec2