
Answer-first summary for fast verification
Answer: Configure the Amazon CloudWatch agent procstat plugin to capture CPU process metrics.
Using the Amazon CloudWatch agent `procstat` plugin is the most efficient and least effort way to monitor individual processes and their resource consumption, such as CPU and memory, including PIDs. The default CloudWatch metrics do not provide process-level details, and manual SSH or custom Lambda polling requires significantly more effort and maintenance.
Author: Ritesh Yadav
Ultimate access to all questions.
Question #51 A company has a web application that is experiencing performance problems many times each night. A root cause analysis reveals sudden increases in CPU utilization that last 5 minutes on an Amazon EC2 Linux instance. A CloudOps engineer must find the process ID (PID) of the service or process that is consuming more CPU. What should the CloudOps engineer do to collect the process utilization information with the LEAST amount of effort?
A
Configure the Amazon CloudWatch agent procstat plugin to capture CPU process metrics.
B
Configure an AWS Lambda function to run every minute to capture the PID and send a notification.
C
Log in to the EC2 instance by using a .pem key each night. Then run the top command.
D
Use the default Amazon CloudWatch CPU utilization metric to capture the PID in CloudWatch.
No comments yet.