
Answer-first summary for fast verification
Answer: Create a security group for the database and allow access only from specific security groups.
Option C is the correct answer. Creating a security group for the database and allowing access only from specific security groups is a best practice for controlling access to resources in AWS. This approach allows you to define which resources within your VPC can access the database, ensuring that only authorized resources can communicate with it. Option A, allowing access from all resources within the VPC, is not secure and exposes the database to potential threats. Option B, allowing access only from specific IP addresses, may not be practical in a dynamic environment where resources may change. Option D, disabling the security group, is not recommended and can lead to security vulnerabilities.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company is using AWS to host its database. You want to ensure that only specific resources within your VPC can access the database. Which of the following steps should you take to achieve this?
A
Create a security group for the database and allow access from all resources within the VPC.
B
Create a security group for the database and allow access only from specific IP addresses.
C
Create a security group for the database and allow access only from specific security groups.
D
Disable the security group for the database and rely on network ACLs for access control.
No comments yet.