Topic 1 Question 332
Accompany wants to monitor the number of Amazon EC2 instances that it is running. The company also wants to automate a service quota increase when the number of instances reaches a specific threshold.
Which solution meets these requirements?
Create an Amazon CloudWatch alarm to monitor Service Quotas. Configure the alarm to invoke an AWS Lambda function to request a quota increase when the alarm reaches the threshold.
Create an AWS Config rule to monitor Service Quotas. Call an AWS Lambda function to remediate the action and increase the quota.
Create an Amazon CloudWateh alarm to monitor the AWS Health Dashboard. Configure the alarm to invoke an AWS Lambda function to request a quota increase when the alarm reaches the threshold.
Create an Amazon CloudWatch alarm to monitor AWS Trusted Advisor service quotas. Configure the alarm to publish a message to an Amazon Simple Notification Service (Amazon SNS) topic to increase the quota.
ユーザの投票
コメント(11)
- 正解だと思う選択肢: D
Based on my research
- I do know that Trusted Advisor forwards service quota issues to CloudWatch
- I don't know if Trusted Advisor (on a schedule?)
- I do not know if CloudWatch monitors Service Quota's directely (independend of Trusted Advisor)
- I think best solution is for SNS to call RequestServiceQuotaIncrease API directly (don't need Lambda) Here's some CLI examples I came up with for EC2 "New Reserved Instances per month" quota aws service-quotas get-aws-default-service-quota --service-code ec2 --quota-code L-D0B7243C aws service-quotas list-service-quotas --service-code ec2 --query "Quotas[?QuotaName=='New Reserved Instances per month']" aws service-quotas request-service-quota-increase --service-code ec2 --quota-code L-D0B7243C --desired-value 21 aws service-quotas get-requested-service-quota-change --request-id 0f06391f1678494bad04e24d91c88fb8OF5J35Qu URLs https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html
👍 5Gomer2023/06/14 - 正解だと思う選択肢: A
Option A leverages Amazon CloudWatch alarms to monitor the Service Quotas metric related to the number of EC2 instances. When the alarm's threshold is breached, it triggers an action to invoke an AWS Lambda function. This Lambda function can be programmed to automatically request a quota increase for the EC2 instances, based on the predetermined conditions set in the alarm.
👍 5ctd9832023/07/09 - 正解だと思う選択肢: A
SNS cannot request a service limit increase, however CloudWatch can trigger an AWS Lambda function to automatically request a quota increase. here is an example: https://www.youtube.com/watch?v=3WUShZ4lZGE
👍 3cerepx2023/10/16
シャッフルモード