nerdexam
Amazon

DOP-C02 · Question #475

A DevOps engineer must implement a solution that immediately terminates Amazon EC2 instances in Auto Scaling groups when cryptocurrency mining activity is detected. Which solution will meet these…

The correct answer is A. Configure Amazon Route 53 to send query logs directly to Amazon CloudWatch Logs. Create an. To detect and immediately terminate EC2 instances engaged in cryptocurrency mining with the least development effort, leverage Amazon Route 53 query logs sent to CloudWatch Logs.

Submitted by asante_acc· Mar 6, 2026Incident & Event Response

Question

A DevOps engineer must implement a solution that immediately terminates Amazon EC2 instances in Auto Scaling groups when cryptocurrency mining activity is detected. Which solution will meet these requirements with the LEAST development effort?

Options

  • AConfigure Amazon Route 53 to send query logs directly to Amazon CloudWatch Logs. Create an
  • BConfigure VPC Flow Logs to send flow logs to an Amazon S3 bucket. Create an AWS Lambda
  • CEnable Amazon GuardDuty. Monitor EC2 findings. Create an Amazon EventBridge rule with
  • DEnable AWS Security Hub. Monitor EC2 findings. Create an Amazon EventBridge rule with

How the community answered

(44 responses)
  • A
    70% (31)
  • B
    9% (4)
  • C
    16% (7)
  • D
    5% (2)

Why each option

To detect and immediately terminate EC2 instances engaged in cryptocurrency mining with the least development effort, leverage Amazon Route 53 query logs sent to CloudWatch Logs.

AConfigure Amazon Route 53 to send query logs directly to Amazon CloudWatch Logs. Create anCorrect

Configuring Amazon Route 53 to send query logs to Amazon CloudWatch Logs allows for the detection of specific DNS queries associated with cryptocurrency mining pools. By creating CloudWatch Logs metric filters and alarms based on these patterns, an Amazon EventBridge rule can trigger an AWS Lambda function to immediately terminate non-compliant Amazon EC2 instances, minimizing custom code for detection beyond simple log pattern matching and configuration.

BConfigure VPC Flow Logs to send flow logs to an Amazon S3 bucket. Create an AWS Lambda

Analyzing raw VPC Flow Logs in an Amazon S3 bucket for cryptocurrency mining patterns would require significant development effort to parse, process, and apply complex detection logic using custom AWS Lambda functions or other analytics services.

CEnable Amazon GuardDuty. Monitor EC2 findings. Create an Amazon EventBridge rule with

While Amazon GuardDuty is highly effective for detecting cryptocurrency mining activity, the question emphasizes 'least development effort.' If the detection relies on a specific, known DNS pattern, configuring CloudWatch metric filters for Route 53 logs might be considered less 'development' than enabling a broader, continuous threat detection service like GuardDuty.

DEnable AWS Security Hub. Monitor EC2 findings. Create an Amazon EventBridge rule with

AWS Security Hub aggregates security findings but does not perform the direct detection of cryptocurrency mining activity. Using it would add an unnecessary layer of integration when direct detection and response can be configured with specialized logging and monitoring services.

Concept tested: Real-time threat detection via DNS logs

Source: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/query-logs.html

Topics

#Security Automation#Threat Detection#DNS Logging#Automated Remediation

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice