Step 1: Understand EC2 instance creation and tagging
Creating an instance and tagging it are separate steps; tags are added after instance creation.
Step 2: Analyze command sequences
aws ec2 run-instances --image-id ami-12345 --count 1 --instance-type t2.micro && aws ec2 create-tags --resources --tags Key=Name,Value=MyInstance runs instance creation first, then tags it using the instance ID placeholder, which is correct.
Step 3: Identify incorrect options
The sequence that tags before the instance exists will fail; sequences attempting to add tags directly in run-instances use invalid syntax.