Bird
0
0

Which of the following is the correct AWS CLI command to create a new CloudWatch Logs log group named MyAppLogs?

easy📝 Configuration Q12 of 15
AWS - CloudWatch
Which of the following is the correct AWS CLI command to create a new CloudWatch Logs log group named MyAppLogs?
Aaws cloudwatch create-log-group --name MyAppLogs
Baws logs create-log-group --log-group-name MyAppLogs
Caws logs new-log-group --group-name MyAppLogs
Daws logs add-log-group --name MyAppLogs
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI service and command

    The correct service is 'logs' and the command to create a log group is 'create-log-group'.
  2. Step 2: Check command syntax

    The parameter for the log group name is '--log-group-name', matching aws logs create-log-group --log-group-name MyAppLogs exactly.
  3. Final Answer:

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

    Correct CLI syntax = aws logs create-log-group --log-group-name MyAppLogs [OK]
Quick Trick: Use 'aws logs create-log-group' with --log-group-name [OK]
Common Mistakes:
MISTAKES
  • Using wrong service name like 'cloudwatch' instead of 'logs'
  • Incorrect command verbs like 'new-log-group'
  • Wrong parameter names like '--name'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes