AdministratorAugust 29, 2023 at 4:30 pm
Take note that an EC2 instance can have both a private and public IP address. It is already mentioned on the first statement of the scenario that the EC2 instances are publicly accessible from the Internet which is why the EC2 instance has both a private and a public IP address.
If this is just a private EC2 instance with just a private IP address then yes, it won’t be accessible but the scenario is quite clear that the EC2 instance is a public one with both a private and public IP address.
Let us know if you need further assistance. The Tutorials Dojo team is dedicated to help you pass your AWS exam on your first try!
Jon Bonso @ Tutorials Dojo