AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 18
A company is performing vulnerability scanning for all Amazon EC2 instances across many accounts. The accounts are in an organization in AWS Organizations. Each account's VPCs are attached to a shared transit gateway. The VPCs send traffic to the internet through a central egress VPC. The company has enabled Amazon Inspector in a delegated administrator account and has enabled scanning for all member accounts.
A DevOps engineer discovers that some EC2 instances are listed in the "not scanning" tab in Amazon Inspector.
Which combination of actions should the DevOps engineer take to resolve this issue? (Choose three.)
Answer options
- A. Verify that AWS Systems Manager Agent is installed and is running on the EC2 instances that Amazon Inspector is not scanning.
- B. Associate the target EC2 instances with security groups that allow outbound communication on port 443 to the AWS Systems Manager service endpoint.
- C. Grant inspector:StartAssessmentRun permissions to the IAM role that the DevOps engineer is using.
- D. Configure EC2 Instance Connect for the EC2 instances that Amazon Inspector is not scanning.
- E. Associate the target EC2 instances with instance profiles that grant permissions to communicate with AWS Systems Manager.
- F. Create a managed-instance activation. Use the Activation Code and the Activation ID to register the EC2 instances.
Correct answer: A, B, E
Explanation
The correct actions involve verifying the installation and operation of the AWS Systems Manager Agent on the EC2 instances, which is crucial for Amazon Inspector to scan them (A). Additionally, ensuring that security groups allow outbound communication on port 443 to the AWS Systems Manager service endpoint is necessary for proper connectivity (B). Lastly, associating the instances with instance profiles that provide permissions to communicate with AWS Systems Manager is essential for enabling scanning (E). The other options do not address the specific requirements for Amazon Inspector to function properly in this scenario.