Bird
0
0

Which of the following AWS CLI commands correctly creates a log group named MyAppLogs?

easy📝 Configuration Q3 of 15
AWS - CloudWatch
Which of the following AWS CLI commands correctly creates a log group named MyAppLogs?
Aaws logs create-log-group --log-group-name MyAppLogs
Baws logs create-log-stream --log-group-name MyAppLogs
Caws cloudwatch create-log-group --name MyAppLogs
Daws logs create-group --name MyAppLogs
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct AWS CLI syntax

    The correct command to create a log group uses 'aws logs create-log-group' with the parameter '--log-group-name'.
  2. Step 2: Verify parameters and command correctness

    aws logs create-log-group --log-group-name MyAppLogs matches the correct syntax; other options use incorrect commands or parameters.
  3. Final Answer:

    aws logs create-log-group --log-group-name MyAppLogs -> Option A
  4. Quick Check:

    Create log group CLI = aws logs create-log-group [OK]
Quick Trick: Use 'aws logs create-log-group --log-group-name' to create groups [OK]
Common Mistakes:
  • Using create-log-stream instead of create-log-group
  • Wrong command like create-group or cloudwatch create-log-group
  • Incorrect parameter names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes