exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 197 discussion

Exam question from Amazon's AWS-SysOps
Question #: 197
Topic #: 1
[All AWS-SysOps Questions]

A user has created a subnet in VPC and launched an EC2 instance within it. The user has not selected the option to assign the IP address while launching the instance. Which of the below mentioned statements is true with respect to this scenario?

  • A. The instance will always have a public DNS attached to the instance by default
  • B. The user can directly attach an elastic IP to the instance
  • C. The instance will never launch if the public IP is not assigned
  • D. The user would need to create an Internet gateway and then attach an elastic IP to the instance to connect from internet
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
A Virtual Private Cloud (VPC) is a virtual network dedicated to the user's AWS account. A user can create a subnet with VPC and launch instances inside that subnet. When the user is launching an instance he needs to select an option which attaches a public IP to the instance. If the user has not selected the option to attach the public IP, then it will only have a private IP when launched. The user cannot connect to the instance from the internet. If the user wants an elastic IP to connect to the instance from the Internet, he should create an internet gateway and assign an elastic IP to instance.

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
dexdinh91
5 months ago
Selected Answer: B
I think B is the correct answer
upvoted 1 times
...
aidenpearce01
2 years, 1 month ago
Selected Answer: D
You have to setup IGW first then you can assign Elastic IP to the EC2
upvoted 1 times
...
AMohanty
2 years, 5 months ago
I would go with B you use a NAT GW and IGW to have the private IP talk to Internet. So to talk to the Internet having private IP is not the only way.
upvoted 2 times
...
xxxdolorxxx
2 years, 6 months ago
D seems correct.
upvoted 1 times
...
TroyMcLure
2 years, 6 months ago
Correct Answer: D Please notice that option D shows that is necessary both EIP and IGW to connect FROM internet. That makes all the difference, since the connection source is external. "If the user has not selected the option to attach the public IP, then it will only have a private IP when launched. The user cannot connect to the instance from the internet. If the user wants an elastic IP to connect to the instance from the Internet, he should create an internet gateway and assign an elastic IP to instance."
upvoted 1 times
AMohanty
2 years, 5 months ago
Why can't you use a NAT GW and IGW to have the private IP talk to Interner. So to talk to the Internet having private IP is not the only way.
upvoted 1 times
...
...
NivNZ
2 years, 6 months ago
Isn't B? We can associate an elastic IP to an instance. I find IGW option irrelevant to scenario
upvoted 3 times
PlayerDN
2 years, 6 months ago
Agree, IGW is not a mandatory requirement to associate EIP to an instance.
upvoted 2 times
...
...
awscertified
2 years, 6 months ago
D. The user would need to create an Internet gateway and then attach an elastic IP to the instance to connect
upvoted 2 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