nerdexam
Amazon

DOP-C02 · Question #26

A production account has a requirement that any Amazon EC2 instance that has been logged in to manually must be terminated within 24 hours. All applications in the production account are using Auto Sc

Sign in or unlock DOP-C02 to reveal the answer and full explanation for question #26. The question stem and answer options stay visible for context.

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

Question

A production account has a requirement that any Amazon EC2 instance that has been logged in to manually must be terminated within 24 hours. All applications in the production account are using Auto Scaling groups with the Amazon CloudWatch Logs agent configured. How can this process be automated?

Options

  • ACreate a CloudWatch Logs subscription to an AWS Step Functions application. Configure an
  • BCreate an Amazon CloudWatch alarm that will be invoked by the login event. Send the
  • CCreate an Amazon CloudWatch alarm that will be invoked by the login event. Configure the alarm
  • DCreate a CloudWatch Logs subscription to an AWS Lambda function. Configure the function to

Unlock DOP-C02 to see the answer

You've previewed enough free DOP-C02 questions. Unlock DOP-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#CloudWatch Logs#AWS Lambda#Event-driven automation#EC2 Termination
Full DOP-C02 Practice