nerdexam
GIAC

GSEC · Question #259

Which of the following would be used to explicitly deny the traffic from a foreign IP address scanning the EC2 Instances in a VPC?

The correct answer is A. Security Group. Security Groups act as virtual firewalls attached directly to EC2 instances, controlling inbound traffic at the instance level within a VPC.

Cloud, Web, and Application Security

Question

Which of the following would be used to explicitly deny the traffic from a foreign IP address scanning the EC2 Instances in a VPC?

Options

  • ASecurity Group
  • BVPC Endpoint
  • CNetwork ACL
  • DInternet Gateway

How the community answered

(47 responses)
  • A
    79% (37)
  • B
    13% (6)
  • C
    2% (1)
  • D
    6% (3)

Why each option

Security Groups act as virtual firewalls attached directly to EC2 instances, controlling inbound traffic at the instance level within a VPC.

ASecurity GroupCorrect

Security Groups are associated directly with EC2 instances and evaluate all inbound traffic against their configured allow rules. By specifying only trusted source IP ranges in the inbound rules, all traffic from foreign or unlisted IP addresses - including port scanning attempts - is implicitly denied at the instance level before it can reach the EC2 instance.

BVPC Endpoint

A VPC Endpoint enables private connectivity between a VPC and supported AWS services without traversing the public internet; it does not filter or block traffic from external IP addresses.

CNetwork ACL

A Network ACL operates at the subnet level and applies stateless rules to all instances in a subnet rather than targeting specific EC2 instances, making Security Groups the more direct and granular control mechanism for individual instances.

DInternet Gateway

An Internet Gateway enables routing between a VPC and the internet but does not inspect, filter, or deny traffic based on source IP address.

Concept tested: AWS Security Groups for EC2 inbound traffic control

Source: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html

Topics

#AWS#Security Groups#VPC#traffic filtering

Community Discussion

No community discussion yet for this question.

Full GSEC Practice