Bird
0
0

To efficiently organize logs in an S3 bucket by year and month, which object key naming convention is recommended?

hard📝 Application Q8 of 15
AWS - S3 Fundamentals
To efficiently organize logs in an S3 bucket by year and month, which object key naming convention is recommended?
A"2024-06-logs-app-log.txt"
B"logs/2024/06/app-log.txt"
C"app-log-202406.txt"
D"logs_app_log_2024_06.txt"
Step-by-Step Solution
Solution:
  1. Step 1: Understand S3 key prefixes

    Using slashes '/' in keys simulates folders for easy navigation and lifecycle policies.
  2. Step 2: Evaluate options

    "logs/2024/06/app-log.txt" uses hierarchical folder-like structure 'logs/2024/06/', best for organization.
  3. Final Answer:

    "logs/2024/06/app-log.txt" -> Option B
  4. Quick Check:

    Use '/' to create folder structure in keys [OK]
Quick Trick: Use slashes in keys to mimic folders [OK]
Common Mistakes:
MISTAKES
  • Using flat filenames without folders
  • Using underscores instead of slashes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes