Data Ingestion and Transformation
An ingestion client connects to a publicly accessible Amazon RDS for PostgreSQL database from the fixed public IPv4 address 198.51.100.27. Which inbound security group rule allows database access from only that address?
Show the answer
Correct answerD. Allow TCP port 5432 from 198.51.100.27/32
AWhy not this: The 0.0.0.0/0 source allows connections from any IPv4 address.
BWhy not this: The /24 range includes other addresses, allowing more sources than required.
CWhy not this: The source is restricted correctly, but port 443 is for HTTPS rather than the default PostgreSQL listener.
DWhy this is right: The /32 restricts access to the client's single public address on the default PostgreSQL port.
An IPv4 /32 specifies one address, and PostgreSQL uses TCP port 5432 by default. A /24 allows an entire address range rather than only the client's address.