Hi,
Please can someone help me with reasoning behind the answer to below question. I am unable to understand why Option B is incorrect here?
This is from sample - AWS Certified DevOps Engineer – Professional (DOP-001) - Sample Exam Questions
Though reasoning is given, but I am not quite sure why B is not correct!
Question –
An operator is managing a legacy application on AWS. The application is a monolithic Microsoft Windows program running on a single Amazon EC2 instance. The source code for the application is not available, so the application cannot be modified. The application has a memory leak and malfunctions when memory utilization on the instance goes above 90%. The operator has configured the uniform Amazon CloudWatch agent on the EC2 instance to collect the memory utilization Performance Monitor counter.
Which actions should the operator take to prevent the application from malfunctioning? (Select TWO.)
A) Create an Amazon CloudWatch Events event that publishes to an Amazon SNS topic when memory utilization goes above 80%.
B) Create a metric filter on memory utilization in Amazon CloudWatch Logs. Create a CloudWatch alarm on the memory utilization filter that publishes to an Amazon SNS topic when the memory utilization goes above 80%.
C) Create a CloudWatch alarm on the memory utilization metric that publishes to an Amazon SNS topic when the memory utilization goes above 80%.
D) Subscribe an Amazon Lambda function to the Amazon SNS topic that restarts the application with an AWS Systems Manger Run command.
E) Subscribe the EC2 instance to the Amazon SNS topic and run a script that restarts the application.
Answer - C, D – There are two parts to this question.
First is how does the unified CloudWatch agent publish system level metrics? These are published as CloudWatch metrics that can be used directly for alarms like any other metric, so C is correct. The agent publishes log files from the EC2 instance to CloudWatch Logs, so B is incorrect. CloudWatch Events is a different feature of CloudWatch that fires events upon system events or on a schedule, so A is incorrect.
The second part of the question is how to take action in response to an SNS message. An EC2 instance cannot subscribe to an SNS message, so E is incorrect. A Lambda function can subscribe to an SNS message, so D is correct.
P.S.- I am assuming copy-paste of question from AWS Sample Questions is not violating any copyrights!
Related discussions:
- Cloud Practitioner or jump straight to Solutions Architect – Associate?
- Free resources for passing Solution Architect Associate certification (SAA-C02)
- An Interactive AWS NAT Gateway Blog Post
- How do small teams handle dev/test EC2 and RDS sitting idle overnight?
- Just failed Solution Architect Associate by 20 points - Advise ?