An IT company hired you recently as Cloud Architect, and your Manager told you that the team is trying to host an Application on an EC2 Server with instance type as t2.micro.
The team has created a security group named APP_SG and sent it for User Acceptance Testing where the tester complained that they cannot access the website.
What could be the issue from the scenario?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer - B.
Option A is incorrect because, by default, both inbound and outbound traffic is allowed.
Option B is CORRECT because the default rules for a custom security group that you create allows no inbound traffic and allows all outbound traffic.
There are two kinds of Security Groups:
Default Security Group.
Custom Security Group.
The following are the default rules for a Default Security Group:
- Allows all inbound traffic.
- Allows all outbound traffic.
In the question, a team has created a security group means it is a Custom Security Group.
The below image signifies default rules for the custom security groups.
Option C is incorrect because Network ACLs are used for both allow and deny rules.
Option D is incorrect IAM Roles are used for Access management, not for traffic rules.
Reference:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/default-custom-security-groups.html https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html#nacl-rulesBased on the scenario provided, the team is trying to host an application on an EC2 instance with the instance type of t2.micro, and they have created a security group named APP_SG. The user acceptance testing has revealed that the website cannot be accessed. This suggests that there is an issue with the security group configuration.
The correct answer is likely to be B, which is that by default, the new security group allows no inbound traffic. This means that the security group is not allowing any traffic to reach the EC2 instance, which is preventing users from accessing the website hosted on it.
To resolve this issue, the security group needs to be configured to allow inbound traffic on the relevant ports. The security group should allow traffic on port 80 for HTTP and port 443 for HTTPS if the application is a web-based one.
It is also important to note that Network ACLs (Answer A) may be another reason for the issue. However, Network ACLs operate at the subnet level and are stateless, so it is unlikely to be blocking user access to the application.
Answer C suggests that Network ACLs should be configured to allow all inbound and outbound traffic, but this is not recommended as it would compromise the security of the network. The principle of least privilege should be applied when configuring Network ACLs and Security Groups.
Answer D, which suggests that IAM Roles should be configured before using the application, is not relevant to the issue at hand. IAM roles are used to manage permissions and access to AWS resources and services, but they do not impact the accessibility of the application hosted on the EC2 instance.