Copyright (c) 2025 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.3.4. Sample Questions - Domain 4: Monitoring & Logging

Question 1:

A DevOps team needs to collect custom metrics from their application running on Amazon EC2 instances, such as the number of active user sessions and specific business transaction counts. These metrics are not available by default in CloudWatch. Which is the most efficient way to collect and send these custom metrics to CloudWatch?

A) Use AWS CloudTrail to log application events and create metrics from them. B) Configure Amazon Kinesis Data Firehose to stream application logs to CloudWatch. C) Install and configure the CloudWatch Agent on the EC2 instances. D) Develop a Lambda function to periodically poll the application and push metrics.

Correct Answer: C
Explanation:

Question 2:

A company wants to analyze their application logs in real-time to identify errors and performance bottlenecks. The logs are currently being streamed to CloudWatch Logs. They need a solution that allows them to perform ad-hoc queries and visualize log data without exporting it to another service. Which CloudWatch Logs feature should they use?

A) CloudWatch Alarms B) CloudWatch Dashboards C) CloudWatch Logs Insights D) CloudWatch Metric Filters

Correct Answer: C
Explanation:

Question 3:

A security team needs to monitor all API calls made to their AWS accounts for suspicious activity and unauthorized access attempts. They require a service that provides a historical record of these calls, including who made the call, from where, and when. Which AWS service is designed for this purpose?

A) Amazon CloudWatch B) AWS CloudTrail C) AWS Config D) Amazon GuardDuty

Correct Answer: B
Explanation:

Question 4:

A DevOps team is implementing a new microservices application and needs to gain end-to-end visibility into requests as they flow through various services, including AWS Lambda, Amazon API Gateway, and custom services running on EC2. They want to identify performance bottlenecks and errors across the distributed architecture. Which AWS service is best suited for distributed tracing and performance analysis in this scenario?

A) Amazon CloudWatch B) AWS CloudTrail C) AWS X-Ray D) Amazon Inspector

Correct Answer: C
Explanation:

Question 5:

A company needs to ensure that their application logs are securely stored and retained for a specific period to meet compliance requirements. They are using CloudWatch Logs. Which CloudWatch Logs feature should they configure to manage the retention of their log data?

A) CloudWatch Logs Insights B) CloudWatch Logs Subscriptions C) CloudWatch Log Group Retention Policy D) CloudWatch Metric Filters

Correct Answer: C
Explanation: