Bird
0
0

You want to install AWS CLI version 2 on a Linux server without internet access. Which approach is best?

hard📝 Application Q8 of 15
AWS - CLI
You want to install AWS CLI version 2 on a Linux server without internet access. Which approach is best?
ARun <code>sudo apt-get install awscli</code> on the server
BUse <code>pip install awscli</code> on the server
CDownload the AWS CLI zip on another machine, transfer it via USB, then unzip and run the installer
DInstall AWS CLI directly from AWS website on the server
Step-by-Step Solution
Solution:
  1. Step 1: Understand offline installation needs

    Without internet, you must download the installer elsewhere and transfer it physically.
  2. Step 2: Evaluate other options

    apt-get and pip require internet. Direct download on server is impossible without internet.
  3. Final Answer:

    Download the AWS CLI zip on another machine, transfer it via USB, then unzip and run the installer -> Option C
  4. Quick Check:

    Offline install = download elsewhere + transfer + install = B [OK]
Quick Trick: Offline install needs manual download and transfer [OK]
Common Mistakes:
MISTAKES
  • Trying online install commands offline
  • Ignoring transfer step
  • Assuming direct download without internet

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes