ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 302 - SOA-C02 discussion

Report
Export

A SysOps administrator launches an Amazon EC2 instance in a private subnet of a VPC. When the SysOps administrator attempts a curl command from the command line of the EC2 instance, the SysOps administrator cannot connect to https:www.example.com.

What should the SysOps administrator do to resolve this issue?

A.
Ensure that there is an outbound security group for port 443 to 0.0.0.0/0.
Answers
A.
Ensure that there is an outbound security group for port 443 to 0.0.0.0/0.
B.
Ensure that there is an inbound security group for port 443 from 0.0.0.0/0.
Answers
B.
Ensure that there is an inbound security group for port 443 from 0.0.0.0/0.
C.
Ensure that there is an outbound network ACL for ephemeral ports 1024-66535 to 0.0.0.0/0.
Answers
C.
Ensure that there is an outbound network ACL for ephemeral ports 1024-66535 to 0.0.0.0/0.
D.
Ensure that there is an outbound network ACL for port 80 to 0.0.0.0/0.
Answers
D.
Ensure that there is an outbound network ACL for port 80 to 0.0.0.0/0.
Suggested answer: A

Explanation:

To resolve the issue of the EC2 instance in a private subnet not being able to connect to external websites via HTTPS (port 443), it is necessary to adjust the security group settings:

Outbound Security Group Rules: Verify that the security group associated with the EC2 instance allows outbound traffic on port 443 to any destination (0.0.0.0/0). This rule is crucial because it enables the instance to initiate HTTPS connections to external websites.

Network ACLs: While the primary concern here is the security group, ensure also that the Network Access Control List (ACL) associated with the subnet permits outbound HTTPS traffic. However, the ACLs by default allow all outbound traffic unless specifically restricted.

Internet Connectivity: Since the instance is in a private subnet, ensure that it has a route to the internet through a NAT Gateway or NAT Instance located in a public subnet. Without this, the instance won't be able to reach external networks even if the security groups and ACLs are correctly configured.

By ensuring that the security group permits outbound HTTPS traffic, you address the most common configuration oversight that would prevent such connectivity.

asked 16/09/2024
fadi kako
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first