AWS Certified Security – Specialty (SCS-C02) — Question 295

A company has a large fleet of Amazon Linux 2 Amazon EC2 instances that run an application. The application processes sensitive data and has the following compliance requirements:

• No remote access management ports to the EC2 instances can be exposed internally or externally.
• All remote session activity must be recorded in an audit log.
• All remote access to the EC2 instances must be authenticated and authorized by AWS IAM Identity Center.

The company’s DevOps team occasionally needs to connect to one of the EC2 instances to troubleshoot issues.

Which solution will provide remote access to the EC2 instances while meeting the compliance requirements?

Answer options

Correct answer: C

Explanation

AWS Systems Manager Session Manager allows secure instance management without opening inbound ports or managing SSH keys, fulfilling the requirement of keeping remote access ports closed. It integrates with AWS IAM Identity Center for authentication and authorization, and automatically logs session activity to Amazon S3 or Amazon CloudWatch for auditing. Other options, such as EC2 Instance Connect, require opening inbound ports (like port 22), which violates the compliance requirements.