Detect missing software with an AWS Config rule and auto-install via EventBridge, Lambda, and SSM Run Command
Short answer
C An AWS Config required-applications rule plus EventBridge to Lambda and SSM Run Command detects and auto-installs the package.
Question
Key Takeaways
The ec2-managedinstance-applications-required Config rule continuously evaluates whether managed instances have the required applications, emitting compliance-state changes that EventBridge can route to a Lambda. Using SSM Run Command from that Lambda installs the software on demand, fulfilling both detection and automatic installation without manual per-account work.
The company must find EC2 instances lacking a required corporate package and install it automatically. Centrally enabling AWS Config with the ec2-managedinstance-applications-required rule flags non-compliant instances; an EventBridge rule reacts to the Config compliance-change event and invokes a Lambda function that uses Systems Manager Run Command to install the package. This both detects and remediates across all organization accounts.
Common mistake: Using a patch baseline (Patch Manager) for a corporate application—patch baselines handle OS security/bugfix patches, not arbitrary software packages. Or using SSM Distributor alone, which installs packages but does not detect missing ones.
Expert Analysis
Why the Answer Is Correct
AWS Config's ec2-managedinstance-applications-required rule detects instances that do not have the required application installed. An EventBridge rule keyed on the Config compliance-change event invokes a Lambda function that runs Systems Manager Run Command to install the package, giving automatic remediation centrally. This meets both the detection and auto-install requirements across all accounts.
Why the Other Options Are Wrong
A uses an SCP to restrict launches to tagged AMIs, which enforces future launches but does not detect or fix existing instances. B (patch baseline) manages OS patches, not a custom corporate software package, and does not detect missing installs. D (Distributor) can push the package but does not detect which instances lack it, failing the detection requirement.
Community Comment Notes
Community favored C (92 votes). Commenters noted A is restriction-only, B is for OS patches not software, and D installs without detection; C both detects via Config and remediates via EventBridge/Lambda/Run Command. One D vote linked Distributor but missed the detection gap.
Official Reference
- https://docs.aws.amazon.com/config/latest/developerguide/ec2-managedinstance-applications-required.html
- https://docs.aws.amazon.com/systems-manager/latest/userguide/run-command.html
These links open the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 7 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 7
-
aescudero51 👍 4 Answered CMy answer is C. Detecting Missing Software: AWS Config with the ec2-managedinstance-applications-required rule continuously monitors EC2 instances and identifies ones without the required software. Automated Installation: The EventBridge rule automatically triggers upon a Config non-compliance event. Centralized Management: The solution operates centrally from the organization's master account, ensuring consistent enforcement across all member accounts. Flexibility: This approach allows for future software updates by simply modifying the Lambda function logic or the package definition in Systems Manager Distributor.
-
aescudero51 👍 4 Answered CC is correct https://aws.amazon.com/blogs/mt/deploying-packages-sequentially-aws-systems-manager/
-
navid1365 👍 3 Answered CC: This solution uses AWS Config to monitor the compliance of EC2 instances with the required software. AWS Config can detect instances that do not have the software installed and trigger an automated remediation process using AWS Lambda and Systems Manager Run Command.
-
kupo777 👍 3C is correct. Option A is a method of restricting activation by tag without detection. Option B is Software cannot be installed. Option D is to install the software without detection.
-
phmeeeee 👍 1 Answered CA - SCP is restriction not configuration. B - Patch Baseline is for OS-level patches not software packages. D - This is for manual software installation C - Can install software packages based on event from AWS Config and send in to EventBridge to trigger the function.
Show 2 more comments
-
Mandar 👍 1D is correct: https://docs.aws.amazon.com/systems-manager/latest/userguide/distributor.html
-
Shreyas 👍 1 Answered BAns - B
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.