DevOps Engineering on AWS Certification Monitoring, Logging, and Observability on AWS 1 — Questions and Answers
Question 1: Which AWS service aggregates and visualizes logs from EC2, Lambda, ECS, and other AWS resources?
- Amazon CloudWatch Logs (Correct answer)
- AWS X-Ray
- Amazon Kinesis
- AWS CloudTrail
Correct answer: Amazon CloudWatch Logs
Amazon CloudWatch Logs is the central service for collecting, monitoring, and storing log data from virtually any AWS resource or application.
Question 2: What does AWS X-Ray provide for distributed applications?
- End-to-end tracing to identify performance bottlenecks and errors across services (Correct answer)
- Log aggregation from multiple sources
- Real-time metrics dashboards
- Automated anomaly detection alerts
Correct answer: End-to-end tracing to identify performance bottlenecks and errors across services
AWS X-Ray records traces of requests as they travel through distributed application components, helping identify latency and error sources.
Question 3: Which CloudWatch feature automatically detects unusual patterns in metrics without requiring you to set static thresholds?
- CloudWatch Anomaly Detection (Correct answer)
- CloudWatch Alarms
- CloudWatch Insights
- CloudWatch Dashboards
Correct answer: CloudWatch Anomaly Detection
CloudWatch Anomaly Detection uses machine learning to model the expected behavior of metrics and alerts when values deviate significantly.
Question 4: Which CloudWatch feature allows you to interactively search and analyze log data using a query language?
- CloudWatch Logs Insights (Correct answer)
- CloudWatch Contributor Insights
- CloudWatch Metrics Filter
- CloudWatch Synthetics
Correct answer: CloudWatch Logs Insights
CloudWatch Logs Insights provides a powerful query syntax to search, filter, and aggregate log data in near real time.
Question 5: What is the default metric retention period in Amazon CloudWatch for high-resolution metrics (1-second granularity)?
- 3 hours (Correct answer)
- 15 days
- 1 day
- 7 days
Correct answer: 3 hours
High-resolution CloudWatch metrics at 1-second granularity are retained for 3 hours, after which they are aggregated to longer periods.
Question 6: Which AWS service records API calls made in your AWS account, providing a full audit trail?
- AWS CloudTrail (Correct answer)
- Amazon CloudWatch
- AWS Config
- Amazon GuardDuty
Correct answer: AWS CloudTrail
AWS CloudTrail logs every API call made in your AWS account, including the caller identity, time, source IP, and request/response parameters.
Which AWS service aggregates and visualizes logs from EC2, Lambda, ECS, and other AWS resources?