A Developer is trying to monitor an application's status by running a cron job that returns 1 if the service is up and 0 if the service is down. The Developer created code that uses an AWS CLI put-metric-alarm command to publish the custom metrics to Amazon CloudWatch and create an alarm. However, the Developer is unable to create an alarm as the custom metrics do not appear in the CloudWatch console. What is causing this issue?
A) Sending custom metrics using the CLI is not supported.
B) The Developer needs to use the put-metric-data command.
C) The Developer must use a unified CloudWatch agent to publish custom metrics.
D) The code is not running on an Amazon EC2 instance.
Correct Answer:
Verified
Q338: A Developer is writing a REST service
Q339: A Developer is leveraging a Border Gateway
Q340: A Lambda function is packaged for deployment
Q341: A company is using Amazon API Gateway
Q342: An application needs to encrypt data that
Q344: A Developer needs to create an application
Q345: An application has the following requirements: Performance
Q346: A development team uses AWS Elastic Beanstalk
Q347: A developer must ensure that the IAM
Q348: A Developer has written code for an
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents