Q34 — AWS DOP-C02 Ch.2
Question 34 of 100 | ← Chapter 2
A company has multiple development groups working in a shared AWS account. When resource creation approaches account service quotas, senior managers want to receive alerts via a third-party API. Which solution accomplishes this task with minimal development effort?
- A. Create an Amazon CloudWatch Events rule that runs on a schedule and targets an AWS Lambda function. In the Lambda function, evaluate the current AWS environment state and compare deployed resource counts against account quotas. Notify senior managers if the account is approaching service limits.
- B. Deploy an AWS Lambda function that refreshes AWS Trusted Advisor checks, and configure an Amazon CloudWatch Events rule to run the Lambda function on a schedule. Create another CloudWatch Events rule with an event pattern matching Trusted Advisor events and the same Lambda function as target. In the target Lambda function, notify senior managers. ✓
- C. Deploy an AWS Lambda function that refreshes AWS Personal Health Dashboard checks, and configure an Amazon CloudWatch Events rule to run the Lambda function on a schedule. Create another CloudWatch Events rule with an event pattern matching Personal Health Dashboard events and the same Lambda function as target. In the target Lambda function, notify senior managers.
- D. Add a scheduled AWS Config custom rule to check AWS service quota status and stream notifications to an Amazon SNS topic. Deploy an AWS Lambda function to notify senior managers and subscribe the Lambda function to the SNS topic.
Correct Answer: B. Deploy an AWS Lambda function that refreshes AWS Trusted Advisor checks, and configure an Amazon CloudWatch Events rule to run the Lambda function on a schedule. Create another CloudWatch Events rule with an event pattern matching Trusted Advisor events and the same Lambda function as target. In the target Lambda function, notify senior managers.
Explanation
The goal is to alert senior managers when AWS account service quotas are approached, using minimal custom development. Option B leverages AWS Trusted Advisor—a managed service that proactively identifies quota utilization issues—and integrates seamlessly with CloudWatch Events and Lambda. By scheduling Trusted Advisor refreshes and reacting to relevant events, this solution avoids building custom quota-checking logic while delivering timely, actionable alerts. Option A requires manually implementing quota evaluation logic, increasing development and maintenance burden. Option C misuses Personal Health Dashboard, which reports on AWS service health—not account-level quotas. Option D introduces unnecessary complexity with AWS Config custom rules and SNS/Lambda orchestration. Therefore, option B is optimal for minimal development effort.