AWS - EC2 FundamentalsWhich AWS CLI command is used to start a new EC2 instance with a specific AMI ID and instance type?Aaws ec2 create-instance --image-id ami-0abcdef1234567890 --type t2.microBaws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type t2.microCaws ec2 start-instance --ami ami-0abcdef1234567890 --type t2.microDaws ec2 launch-instance --image ami-0abcdef1234567890 --instance t2.microCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify correct AWS CLI commandThe command to launch EC2 instances is 'aws ec2 run-instances'.Step 2: Check parameters--image-id specifies the AMI, --instance-type specifies the instance type.Final Answer:aws ec2 run-instances --image-id ami-0abcdef1234567890 --instance-type t2.micro -> Option BQuick Check:Only 'run-instances' is valid for launching [OK]Quick Trick: Use 'run-instances' to launch EC2, not 'create' or 'start' [OK]Common Mistakes:MISTAKESUsing incorrect commands like 'create-instance' or 'start-instance'Misnaming parameters like '--image' instead of '--image-id'Confusing instance type parameter names
Master "EC2 Fundamentals" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Account and Billing - AWS Cost Explorer basics - Quiz 2easy AWS Account and Billing - Root user vs IAM user - Quiz 5medium AWS CLI - Basic CLI commands (s3, ec2) - Quiz 10hard AWS CLI - Configuring credentials - Quiz 12easy AWS CLI - Why CLI matters for automation - Quiz 3easy Cloud Computing Fundamentals - AWS Management Console walkthrough - Quiz 1easy EC2 Fundamentals - Connecting to EC2 instances - Quiz 8hard S3 Fundamentals - S3 storage classes (Standard, IA, Glacier) - Quiz 12easy Security Groups and Network ACLs - Inbound and outbound rules - Quiz 14medium Security Groups and Network ACLs - Network ACLs overview - Quiz 14medium