AWS Certified Solutions Architect Professional SAP-C02 Practice Question
A financial services company operates a large, hybrid fleet of thousands of Amazon EC2 instances and on-premises servers across multiple AWS Regions and data centers. A new compliance mandate requires that all servers are hardened according to Center for Internet Security (CIS) benchmarks and that security patches are applied within a strict timeframe. The security team prohibits direct SSH or RDP access to the production environment. The company needs a centralized, automated solution to enforce these configurations, report on compliance status, and automatically remediate any configuration drift. Which approach using AWS Systems Manager would be the most effective and scalable to meet these requirements?
Use AWS CloudFormation StackSets to deploy configuration templates to all EC2 instances. For on-premises servers, use an external configuration management tool like Ansible, integrated with Systems Manager Run Command to execute playbooks. Monitor compliance by aggregating logs from all servers.
Use AWS Systems Manager Run Command to execute a custom hardening script on all managed instances on a recurring schedule. Use a separate Run Command task to apply security patches. Trigger these tasks using Amazon EventBridge schedules and monitor execution logs in Amazon CloudWatch.
Register all servers as managed instances using the SSM Agent. Use AWS Systems Manager State Manager with an association that applies a CIS hardening document to enforce the security benchmarks. Use AWS Systems Manager Patch Manager with patch baselines and maintenance windows to automate patching. Monitor overall status using AWS Systems Manager Compliance.
Deploy the AWS Config agent to all servers. Create custom AWS Config rules to continuously check for CIS benchmark adherence and missing patches. For any non-compliant resources, use AWS Config remediation actions to trigger AWS Lambda functions that apply the necessary configuration changes and patches.
The correct approach is to use a combination of AWS Systems Manager State Manager and Patch Manager. State Manager is specifically designed to maintain a consistent configuration state, making it ideal for enforcing CIS benchmarks and automatically remediating configuration drift. Patch Manager is the dedicated feature for automating the application of security patches according to defined baselines and schedules. Both services report their status to AWS Systems Manager Compliance, which provides a unified view for auditing. This integrated solution works for both EC2 and on-premises servers, does not require open inbound ports, and scales to manage a large fleet effectively.
Using AWS Systems Manager Run Command is less effective because it is designed for ad-hoc or one-time command execution, not for continuously enforcing a desired state. While it could apply settings, it would not automatically detect and remediate configuration drift like State Manager does.
Using AWS Config with Lambda functions is a plausible but less direct approach. AWS Config is primarily a detective control used for auditing and recording configuration changes. While it can trigger remediation actions (often using SSM Automation), the primary tools for applying and managing the state and patches are State Manager and Patch Manager, not Config itself.
Using AWS CloudFormation StackSets with an external tool like Ansible creates unnecessary complexity. CloudFormation is best suited for initial resource provisioning, not ongoing configuration management of a running fleet. Integrating a separate tool like Ansible adds management overhead when Systems Manager provides a fully native and integrated solution for the entire task.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
How does AWS Systems Manager State Manager enforce CIS benchmarks?
Open an interactive chat with Bash
What is the role of AWS Systems Manager Patch Manager in automated patching?
Open an interactive chat with Bash
Why is AWS Systems Manager Compliance essential in this solution?
Open an interactive chat with Bash
AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access