ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 310 - SOA-C02 discussion

Report
Export

A user is connected to an Amazon EC2 instance in a private subnet. The user is unable to access the internet from the instance by using the following curl command: curl http:/www.example.com.

A SysOps administrator reviews the VPC configuration and learns the following information:

* The private subnet has a route to a NAT gateway for CIDR 0.0.0.0/0

* The outbound security group for the EC2 instance contains one rule: outbound for port 443 to CIDR 0.0.0.0/0

* The inbound security group for the EC2 instance allows ports 22 and 443 from the user's IP address.

* The inbound network ACL for the subnet allows port 22 and port range 1024-65535 from CIDR 0.0.0.0/0

Which action will allow the user to complete the curl request successfully?

A.
Add an additional inbound network ACL rule for port 80 to CIDR 0.0.0.0/0.
Answers
A.
Add an additional inbound network ACL rule for port 80 to CIDR 0.0.0.0/0.
B.
Add an additional inbound security group rule for port 80 to CIDR 0.0.0.0/0.
Answers
B.
Add an additional inbound security group rule for port 80 to CIDR 0.0.0.0/0.
C.
Add an additional outbound security group rule for port 80 to CIDR 0.0.0.0/0.
Answers
C.
Add an additional outbound security group rule for port 80 to CIDR 0.0.0.0/0.
D.
Add an additional outbound security group rule for port 80 to the user's IP address.
Answers
D.
Add an additional outbound security group rule for port 80 to the user's IP address.
Suggested answer: C

Explanation:

Since the EC2 instance is attempting to access the internet using HTTP (port 80) but is configured only to allow HTTPS (port 443) traffic, the security group needs adjustment:

Security Group Configuration: The outbound rules of the security group associated with the EC2 instance must allow traffic over HTTP. Add an outbound rule that enables port 80 to destination 0.0.0.0/0. This rule will allow the instance to send HTTP requests to any IP address on the internet.

Test Connectivity: After updating the security group, test the connectivity using the curl command again to ensure the configuration allows internet access via HTTP.

This change is necessary because the existing security group configuration does not permit outbound HTTP traffic, which is essential for accessing websites using HTTP.

asked 16/09/2024
Rohit Kumar
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first