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 228 discussion

An organization has developed an application which provides a smarter shopping experience. They need to show a demonstration to various stakeholders who may not be able to access the in premise application so they decide to host a demo version of the application on AWS.
Consequently, they will need a fixed elastic IP attached automatically to the instance when it is launched.
In this scenario which of the below mentioned options will not help assign the elastic IP automatically?

  • A. Write a script which will fetch the instance metadata on system boot and assign the public IP using that metadata.
  • B. Provide an elastic IP in the user data and setup a bootstrapping script which will fetch that elastic IP and assign it to the instance.
  • C. Create a controlling application which launches the instance and assigns the elastic IP based on the parameter provided when that instance is booted.
  • D. Launch instance with VPC and assign an elastic IP to the primary network interface.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
ramikhreim
Highly Voted 3 years, 6 months ago
its A , its assigned public IP not Elastic IP
upvoted 10 times
01037
3 years, 6 months ago
yes it's A
upvoted 2 times
...
LeoChu
3 years, 6 months ago
smart thought
upvoted 2 times
...
...
amministrazione
Most Recent 8 months, 3 weeks ago
A. Write a script which will fetch the instance metadata on system boot and assign the public IP using that metadata.
upvoted 1 times
...
SkyZeroZx
1 year, 10 months ago
Selected Answer: A
A is talking about public ip not elastic ip
upvoted 1 times
...
Murtazaarif
2 years, 10 months ago
Selected Answer: A
A is talking about public ip not elastic ip
upvoted 2 times
...
RVivek
3 years, 2 months ago
Selected Answer: B
The below command will add EIP to instance as priary IP aws ec2 associate-address --instance-id $INSTANCE_ID --allocation-id $ALLOC_ID --allow-reassociation}
upvoted 1 times
...
cldy
3 years, 5 months ago
A. Write a script which will fetch the instance metadata on system boot and assign the public IP using that metadata.
upvoted 1 times
...
JAWS1600
3 years, 6 months ago
Here is example of Elastic IP in user_data # curl -s http://169.254.169.254/latest/user-data elastic-ip=23.23.232.241|hostname=ip-test.aws-idev.com
upvoted 1 times
...
JAWS1600
3 years, 7 months ago
A. https://ranjan01.wordpress.com/web-servers/how-to-automate-elastic-ip-assignment-on-ec2-instance-restart-or-reboot/
upvoted 1 times
JAWS1600
3 years, 7 months ago
This option is upon reboot. Question is asking , when EC2 is launched. This means instance has no OS . Unless you are using an AMI, which has script built in, it may not work. More over when instance is launched the elastic IP has to be fetched from user-data, so script can be executed to attach it.Correct option is B
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