Bird
0
0

Given these AWS CLI commands run on the same machine:

medium📝 Predict Output Q13 of 15
AWS - CLI
Given these AWS CLI commands run on the same machine:
aws --profile prod s3 ls
aws --profile dev s3 ls
What will happen if the prod profile has access to 5 buckets and dev profile has access to 2 buckets?
ABoth commands fail due to profile conflict
BThe first command lists 5 buckets; the second lists 2 buckets
CBoth commands list 5 buckets only
DBoth commands list 7 buckets combined
Step-by-Step Solution
Solution:
  1. Step 1: Understand profile isolation

    Each profile uses its own credentials and permissions, so commands run under different profiles see different resources.
  2. Step 2: Apply to bucket listing

    The prod profile lists 5 buckets it can access; the dev profile lists 2 buckets it can access.
  3. Final Answer:

    The first command lists 5 buckets; the second lists 2 buckets -> Option B
  4. Quick Check:

    Profiles isolate access = D [OK]
Quick Trick: Profiles show only their own account's buckets [OK]
Common Mistakes:
MISTAKES
  • Assuming buckets combine across profiles
  • Expecting profile conflicts cause failure
  • Thinking both profiles show same buckets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes