Bird
0
0

What retention period will be applied to the CloudWatch Logs log group SystemLogs after running this command?

medium📝 Predict Output Q4 of 15
AWS - CloudWatch
What retention period will be applied to the CloudWatch Logs log group SystemLogs after running this command?
aws logs put-retention-policy --log-group-name SystemLogs --retention-in-days 7
ANever expire
B14 days
C30 days
D7 days
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command parameters

    The command aws logs put-retention-policy sets the retention period for a log group. The parameter --retention-in-days specifies the number of days to retain logs.
  2. Step 2: Analyze the given command

    The command sets --retention-in-days 7 for the log group SystemLogs, meaning logs will be retained for 7 days.
  3. Final Answer:

    7 days -> Option D
  4. Quick Check:

    Retention days match the parameter value [OK]
Quick Trick: Retention days equal the value in --retention-in-days [OK]
Common Mistakes:
MISTAKES
  • Confusing retention period with default retention
  • Assuming retention is in hours or months
  • Ignoring the effect of the put-retention-policy command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes