What is the scope of an EC2 security group?
A.
Availability Zone
B.
Placement Group
C.
Region
D.
VPC
Explanation:
A security group is tied to a region and can be assigned only to instances in the same region. You can’t enable an instance
to communicate with an instance outside its region using security group rules. Traffic from an instance in another region
is seen as WAN bandwidth.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resources.html
These questions are outdated and not relevant as per new pattern.
I don’t think it’s DevOps Pro Level question.
Must be D. VPC
But this is not Pro level
C
A security group is tied to a region and can be assigned only to instances in the same region. You can’t enable an instance to communicate with an instance outside its region using security group rules. Traffic from an instance in another region is seen as WAN bandwidth.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resources.html
The question itself has a relativity issue.
It’s D. Try to create another VPC and a security group on the new VPC. On the old VPC, you will not be able to use the new created security group.
I agree with Raj’s comment that the context of the question is outdated. The question has a boundary ambiguity.
The question is no problem at all, though it’s too simple.