Bird
0
0

After successfully connecting to an EC2 instance, you run whoami and see 'ec2-user'. What does this indicate?

medium📝 Predict Output Q5 of 15
AWS - EC2 Fundamentals
After successfully connecting to an EC2 instance, you run whoami and see 'ec2-user'. What does this indicate?
AThe SSH connection failed
BYou are logged in as the default EC2 user
CYou are connected to the wrong instance
DYou are logged in as root user
Step-by-Step Solution
Solution:
  1. Step 1: Understand the 'whoami' command output

    'whoami' shows the current logged-in username.
  2. Step 2: Interpret 'ec2-user' output

    'ec2-user' is the default user for Amazon Linux EC2 instances.
  3. Final Answer:

    You are logged in as the default EC2 user -> Option B
  4. Quick Check:

    'whoami' output = current user [OK]
Quick Trick: Use 'whoami' to confirm your logged-in user [OK]
Common Mistakes:
MISTAKES
  • Thinking 'ec2-user' means root
  • Assuming connection failed if user shown
  • Confusing instance identity with username

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes