AWS Certified Security – Specialty (SCS-C02) — Question 124

A company is implementing a new application in a new AWS account. A VPC and subnets have been created for the application. The application has been peered to an existing VPC in another account in the same AWS Region for database access Amazon EC2 instances will regularly be created and terminated in the application VPC, but only some of them will need access to the databases in the peered VPC over TCP port 1521. A security engineer must ensure that only the EC2 instances that need access to the databases can access them through the network.

How can the security engineer implement this solution?

Answer options

Correct answer: C

Explanation

The correct answer is C because it establishes a security group in the application VPC with no inbound rules and uses a dedicated security group in the database VPC that allows access from the application security group over TCP port 1521, ensuring only specified instances have access. Options A and D incorrectly allow broader access through network ACLs, while option B does not properly restrict access based on instance group membership.