exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 131 discussion

A user is planning to host a web server as well as an app server on a single EC2 instance which is a part of the public subnet of a VPC.
How can the user setup to have two separate public IPs and separate security groups for both the application as well as the web server?

  • A. Launch VPC with two separate subnets and make the instance a part of both the subnets.
  • B. Launch a VPC instance with two network interfaces. Assign a separate security group and elastic IP to them.
  • C. Launch a VPC instance with two network interfaces. Assign a separate security group to each and AWS will assign a separate public IP to them.
  • D. Launch a VPC with ELB such that it redirects requests to separate VPC instances of the public subnet.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
If you need to host multiple websites (with different IPs) on a single EC2 instance, the following is the suggested method from AWS.
Launch a VPC instance with two network interfaces.
Assign elastic IPs from VPC EIP pool to those interfaces (Because, when the user has attached more than one network interface with an instance, AWS cannot assign public IPs to them.) Assign separate Security Groups if separate Security Groups are needed This scenario also helps for operating network appliances, such as firewalls or load balancers that have multiple private IP addresses for each network interface.
Reference:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/MultipleIP.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
amministrazione
8 months, 3 weeks ago
B. Launch a VPC instance with two network interfaces. Assign a separate security group and elastic IP to them.
upvoted 1 times
...
hilft
2 years, 9 months ago
B. Two ENIs. TWO EIPs
upvoted 1 times
...
Ni_yot
3 years, 2 months ago
B correct. You can do this with 2 NICs
upvoted 1 times
...
01037
3 years, 6 months ago
B is correct
upvoted 1 times
...
lostri
3 years, 6 months ago
B is correct
upvoted 1 times
...
ipindado2020
3 years, 7 months ago
B....Two ENIs should have two elastic ips
upvoted 4 times
...
BillyC
3 years, 7 months ago
Is B correct?
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago