AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A financial services company operates a large, multi-account AWS Organization. A stringent security policy dictates that SSH access (port 22) must never be exposed to the internet (0.0.0.0/0) on any EC2 instance's security group. Despite preventative controls, this misconfiguration occasionally occurs during emergency maintenance. The security team needs to implement a solution that automatically detects and remediates this specific violation across all accounts in the organization. The solution must be centrally managed from a delegated security account, be highly scalable, and minimize the development of custom code.

  • Enable Amazon GuardDuty in all accounts, aggregating findings to the security account. Create an EventBridge rule that, upon detecting a finding related to exposed EC2 ports, triggers a custom Lambda function to modify the offending security group.

  • Configure an AWS CloudTrail organization trail. In the security account, create an EventBridge rule that filters for AuthorizeSecurityGroupIngress API calls and triggers a custom AWS Lambda function to inspect the event and revoke the rule if it is non-compliant.

  • Deploy Amazon Inspector across all accounts to perform recurring network reachability scans. Configure an EventBridge rule to send Inspector findings to a custom Lambda function that parses the finding and removes the non-compliant security group rule.

  • In the delegated administrator account, deploy a multi-account AWS Config rule using the restricted-ssh managed rule. Configure an automatic remediation action that invokes the AWS-DisablePublicAccessForSecurityGroup Systems Manager Automation document.

AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot