Bird
0
0

Which command correctly installs AWS CLI version 2 on macOS using the terminal?

easy📝 Syntax Q3 of 15
AWS - CLI
Which command correctly installs AWS CLI version 2 on macOS using the terminal?
Abrew install awscli
Baws install --version 2
Csudo ./aws/install
Dpip install awscli
Step-by-Step Solution
Solution:
  1. Step 1: Identify the common macOS package manager

    Homebrew is the standard package manager on macOS, and brew install awscli installs AWS CLI version 2.
  2. Step 2: Check other commands for correctness

    sudo ./aws/install runs installer after download, not a direct install command. pip install installs version 1, not version 2. aws install is invalid.
  3. Final Answer:

    brew install awscli -> Option A
  4. Quick Check:

    macOS install via Homebrew = C [OK]
Quick Trick: Use Homebrew on macOS for easy AWS CLI v2 install [OK]
Common Mistakes:
  • Using pip for AWS CLI v2
  • Running invalid aws install commands
  • Skipping Homebrew on macOS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes