Bird
0
0

Given the following AWS CLI command, what will be the retention period set for the log group AppLogs?

medium📝 service behavior Q13 of 15
AWS - CloudWatch
Given the following AWS CLI command, what will be the retention period set for the log group AppLogs?
aws logs put-retention-policy --log-group-name AppLogs --retention-in-days 14
ALogs will be kept for 7 days
BLogs will be kept indefinitely
CLogs will be kept for 14 days
DLogs will be deleted immediately
Step-by-Step Solution
Solution:
  1. Step 1: Understand the put-retention-policy command

    This command sets how many days logs are retained before deletion.
  2. Step 2: Interpret the retention-in-days value

    The parameter '--retention-in-days 14' means logs are kept for 14 days.
  3. Final Answer:

    Logs will be kept for 14 days -> Option C
  4. Quick Check:

    Retention days = 14 [OK]
Quick Trick: Retention days = value in --retention-in-days [OK]
Common Mistakes:
MISTAKES
  • Assuming default retention instead of set value
  • Confusing retention period with log group creation
  • Thinking logs are kept indefinitely by default

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes