- Home
- All questions
- Question 403
AWS Certified Solutions Architect study material · question 403 of 500
Several instances are launched by one RunInstances call. How can their code tell them apart?
Show the answer
Answer: B. Each carries a distinct ami-launch-index
Instances in one reservation share the same user data but each has its own launch index, so code can, for example, elect a leader.
Source: Use instance metadata to manage your EC2 instance (Amazon Web Services) — User data