ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 308 - SCS-C02 discussion

Report
Export

A company operates a web application that runs on Amazon EC2 instances. The application listens on port 80 and port 443. The company uses an Application Load Balancer (ALB) with AWS WAF to terminate SSL and to forward traffic to the application instances only on port 80.

The ALB is in public subnets that are associated with a network ACL that is named NACL1. The application instances are in dedicated private subnets that are associated with a network ACL that is named NACL2. An Amazon RDS for PostgreSQL DB instance that uses port 5432 is in a dedicated private subnet that is associated with a network ACL that is named NACL3. All the network ACLs currently allow all inbound and outbound traffic.

Which set of network ACL changes will increase the security of the application while ensuring functionality?

A.
Make the following changes to NACL3: * Add a rule that allows inbound traffic on port 5432 from NACL2. * Add a rule that allows outbound traffic on ports 1024-65536 to NACL2. * Remove the default rules that allow all inbound and outbound traffic.
Answers
A.
Make the following changes to NACL3: * Add a rule that allows inbound traffic on port 5432 from NACL2. * Add a rule that allows outbound traffic on ports 1024-65536 to NACL2. * Remove the default rules that allow all inbound and outbound traffic.
B.
Make the following changes to NACL3: * Add a rule that allows inbound traffic on port 5432 from the CIDR blocks of the application instance subnets. * Add a rule that allows outbound traffic on ports 1024-65536 to the application instance subnets. * Remove the default rules that allow all inbound and outbound traffic.
Answers
B.
Make the following changes to NACL3: * Add a rule that allows inbound traffic on port 5432 from the CIDR blocks of the application instance subnets. * Add a rule that allows outbound traffic on ports 1024-65536 to the application instance subnets. * Remove the default rules that allow all inbound and outbound traffic.
C.
Make the following changes to NACL2: * Add a rule that allows outbound traffic on port 5432 to the CIDR blocks of the RDS subnets. * Remove the default rules that allow all inbound and outbound traffic.
Answers
C.
Make the following changes to NACL2: * Add a rule that allows outbound traffic on port 5432 to the CIDR blocks of the RDS subnets. * Remove the default rules that allow all inbound and outbound traffic.
D.
Make the following changes to NACL2: * Add a rule that allows inbound traffic on port 5432 from the CIDR blocks of the RDS subnets. * Add a rule that allows outbound traffic on port 5432 to the RDS subnets.
Answers
D.
Make the following changes to NACL2: * Add a rule that allows inbound traffic on port 5432 from the CIDR blocks of the RDS subnets. * Add a rule that allows outbound traffic on port 5432 to the RDS subnets.
Suggested answer: B

Explanation:

For increased security while ensuring functionality, adjusting NACL3 to allow inbound traffic on port 5432 from the CIDR blocks of the application instance subnets, and allowing outbound traffic on ephemeral ports (1024-65536) back to those subnets creates a secure path for database access. Removing default allow-all rules enhances security by implementing the principle of least privilege, ensuring that only necessary traffic is permitted.

asked 16/09/2024
Neha Dua
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first