Study. uk . com
  1. Home
  2. All questions
  3. 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?

  1. Each is placed in a different subnet automatically
  2. Each carries a distinct ami-launch-index
  3. Each receives different user data
  4. Each is given a different AMI
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

Challenge yourself on this topic → Study as cards