{"id":1237,"date":"2023-01-14T10:58:57","date_gmt":"2023-01-14T10:58:57","guid":{"rendered":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/aws-certified-developer-associate-dva-c01-question262\/"},"modified":"2023-01-14T10:58:57","modified_gmt":"2023-01-14T10:58:57","slug":"aws-certified-developer-associate-dva-c01-question262","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/aws-certified-developer-associate-dva-c01-question262\/","title":{"rendered":"AWS Certified Developer Associate DVA-C01 &#8211; Question262"},"content":{"rendered":"<div class=\"question\">A company has an AWS Lambda function that runs hourly, reads log files that are stored in Amazon S3, and forwards alerts to Amazon Simple Notification Service (Amazon SNS) topics based on content. A developer wants to add a custom metric to the Lambda function to track the number of alerts of each type for each run.<br \/>\nThe developer needs to log this information in Amazon CloudWatch in a metric that is named Lambda\/AlertCounts.<br \/>\nHow should the developer modify the Lambda function to meet this requirement with the LEAST operational overhead?<br \/><strong><br \/>A.<\/strong> Add a print statement to standard out for each alert and the number of occurrences.<br \/><strong>B.<\/strong> Add a call to the PutMetricData API operation. Pass an array for alerts and the number of occurrences in the Values and Counts fields with a namespace of &quot;Lambda\/AlertCounts&quot;.<br \/><strong>C.<\/strong> Add a call to the PutMetricAlarm API operation. Pass an array of alerts in the metrics member with the namespace of &quot;Lambda\/AlertCounts&quot;.<br \/><strong>D.<\/strong> Add a call to the PutDashboard API operation. Pass an array of alerts in the metrics member with the namespace of &quot;Lambda\/AlertCounts&quot;.<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>C<\/strong><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>A company has an AWS Lambda function that runs hourly, reads log files that are stored in Amazon S3, and forwards alerts to Amazon Simple Notification Service (Amazon SNS) topics based on content. A developer wants to add a custom metric to the Lambda function to track the number of alerts of each type for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,265],"class_list":["post-1237","post","type-post","status-publish","format-standard","hentry","category-aws-certified-developer-associate-dva-c01","tag-aws-certified-developer-associate-dva-c01","tag-question-262"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/posts\/1237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/comments?post=1237"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/posts\/1237\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/media?parent=1237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/categories?post=1237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Developer_Associate_DVA-C01\/wp-json\/wp\/v2\/tags?post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}