AWS Certified Cloud Practitioner (CLF-C02)Cloud Technology and ServicesHard

A data engineering team needs a centralized service to collect, store, and analyze operational logs from various AWS services and applications. They require real-time monitoring of these logs, the ability to search through them, and to create alarms based on specific log patterns. Which AWS service is designed for this purpose?

  1. AAWS CloudTrail
  2. BAmazon CloudWatch Logs
  3. CAmazon Athena
  4. DAmazon S3
Show answer & explanation

Correct answer: B. Amazon CloudWatch Logs

Amazon CloudWatch Logs enables you to centralize logs from all of your systems, applications, and AWS services. You can then monitor, store, and access your log files, and create alarms based on specific log events or patterns.

Why the other options are wrong

  • A. AWS CloudTrail records API calls and related events in your AWS account for auditing and governance, but it's not a general-purpose log collection and analysis service for all application and service logs.
  • C. Amazon Athena is an interactive query service that enables you to analyze data directly in S3 using standard SQL, which can be used for log analysis but not for real-time monitoring and alarm creation from streaming logs.
  • D. Amazon S3 can store log files, but it does not provide built-in capabilities for real-time monitoring, searching, or creating alarms based on log patterns directly.

Amazon CloudWatch Logs

A service that enables you to centralize logs from all of your systems, applications, and AWS services, allowing for monitoring, storage, and access of log files.

  • Centralized log collection and storage
  • Real-time log monitoring
  • Search and filter log data
  • Create alarms based on log patterns

Memory trick: CloudWatch Logs: collect, search, alarm's call, insights from logs, for one and all.

More Cloud Technology and Services questions