Courseiva
Question 1,032 of 247
Monitoring, Logging, and RemediationmediumMultiple ChoiceObjective-mapped

SOA-C02 Monitoring, Logging, and Remediation Practice Question

A SysOps administrator needs to automatically restart an Amazon RDS DB instance when the 'DatabaseConnections' metric exceeds a threshold of 200 for 5 consecutive minutes. The administrator wants a solution that uses minimal custom code and leverages AWS managed services. Which combination of services should be used?

⚠ Common exam trap

A common mix-up: candidates assume a Lambda function is always required for custom remediation actions, but AWS Systems Manager Automation provides a no-code alternative for many common operations like restarting RDS instances, which directly meets the 'minimal custom code' constraint.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Amazon CloudWatch alarm with an AWS Systems Manager Automation action.

AWS Systems Manager Automation provides a built-in 'AWSSupport-StartRDSInstance' or 'AWSSystemsManager-RestartRDSInstance' runbook that can be triggered directly by a CloudWatch alarm action, requiring no custom code. This leverages a managed service to restart the RDS instance automatically when the 'DatabaseConnections' metric exceeds 200 for 5 consecutive minutes, meeting the minimal custom code requirement.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Amazon CloudWatch alarm with an Auto Scaling policy.

    Why it's wrong here

    Auto Scaling policies are tightly coupled to EC2 Auto Scaling groups; they adjust the desired, minimum, or maximum instance counts of those groups. RDS DB instances are managed database servers rendered through the RDS service, not members of an Auto Scaling group, so an Auto Scaling policy cannot reference an RDS instance ID nor execute a reboot action against it. RDS offers its own scaling features (e.g., storage auto-scaling, read replica auto-scaling) that are not surfaced as CloudWatch alarm actions.

  • Amazon CloudWatch alarm with an Amazon Simple Notification Service (SNS) topic that triggers an AWS Lambda function to restart the instance.

    Why it's wrong here

    This approach works in principle but forces you to author, test, and operate a custom AWS Lambda function that calls the rds.reboot_db_instance API, along with associated IAM roles and error-handling logic. The Lambda path also requires a separate CloudWatch alarm-to-SNS subscription and a reliable SNS-to-Lambda trigger, adding latency and more moving parts to a simple remediation. Because the correct managed alternative exists, the additional code and maintenance are unnecessary operational overhead for a routine restart operation.

  • Amazon CloudWatch alarm with an AWS Systems Manager Automation action.

    Why this is correct

    CloudWatch alarms support a native 'Systems Manager Automation' action that directly invokes an SSM automation runbook, such as the pre-built AWS-RestartRDSInstance runbook, when the alarm enters an alarm state. This runbook encapsulates the RDS reboot API call and includes appropriate wait/verify steps, all without requiring you to write or maintain any custom code. The integration is purpose-built for metric-driven remediation and is the minimal-effort, fully managed way to automatically restart an RDS DB instance.

  • Amazon RDS event subscription that triggers an AWS Lambda function.

    Why it's wrong here

    RDS event subscriptions are designed to notify you of database lifecycle events (e.g., failover started, maintenance completed, patching) rather than to react to CloudWatch metric thresholds such as DatabaseConnections. The DatabaseConnections metric is a CloudWatch metric, not an RDS event, so an event subscription would never trigger under the described condition unless you separately configured a CloudWatch alarm and published those states as events, which is not what an RDS event subscription does. Lambda-based handling here would still require extra custom logic and does not directly address the metric-based trigger this scenario requires.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.