nerdexam
Amazon

DOP-C02 · Question #6

A company's application development team uses Linux-based Amazon EC2 instances as bastion hosts. Inbound SSH access to the bastion hosts is restricted to specific IP addresses, as defined in the…

The correct answer is C. Create an AWS Config rule by using the restricted-ssh managed rule to check whether security. AWS Config provides a wide range of predefined rules that evaluate whether your AWS resources comply with common best practices. The restricted-ssh managed rule checks whether security groups that are in use disallow unrestricted incoming SSH traffic.

Submitted by salim_om· Mar 6, 2026Database Security

Question

A company's application development team uses Linux-based Amazon EC2 instances as bastion hosts. Inbound SSH access to the bastion hosts is restricted to specific IP addresses, as defined in the associated security groups. The company's security team wants to receive a notification if the security group rules are modified to allow SSH access from any IP address. What should a DevOps engineer do to meet this requirement?

Options

  • ACreate an Amazon EventBridge rule with a source of aws.cloudtrail and the event name
  • BEnable Amazon GuardDuty and check the findings for security groups in AWS Security Hub.
  • CCreate an AWS Config rule by using the restricted-ssh managed rule to check whether security
  • DEnable Amazon Inspector. Include the Common Vulnerabilities and Exposures-1.1 rules package

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    17% (7)
  • C
    71% (30)
  • D
    7% (3)

Explanation

AWS Config provides a wide range of predefined rules that evaluate whether your AWS resources comply with common best practices. The restricted-ssh managed rule checks whether security groups that are in use disallow unrestricted incoming SSH traffic.

Topics

#AWS Config#Security groups#SSH access#Compliance monitoring

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice