ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 315 - SOA-C02 discussion

Report
Export

A company's security policy states that connecting to Amazon EC2 instances is not permitted through SSH and RDP. If access is required, authorized staff can connect to instances by using AWS Systems Manager Session Manager.

Users report that they are unable to connect to one specific Amazon EC2 instance that is running Ubuntu and has AWS Systems Manager Agent (SSM Agent) pre-installed These users are able to use Session Manager to connect to other instances in the same subnet, and they are in an 1AM group that has Session Manager permission for all instances.

What should a SysOps administrator do to resolve this issue?

A.
Add an inbound rule for port 22 in the security group associated with the Ubuntu instance.
Answers
A.
Add an inbound rule for port 22 in the security group associated with the Ubuntu instance.
B.
Assign the AmazonSSMManagedlnstanceCore managed policy to the EC2 instance profile for the Ubuntu instance.
Answers
B.
Assign the AmazonSSMManagedlnstanceCore managed policy to the EC2 instance profile for the Ubuntu instance.
C.
Configure the SSM Agent to log in with a user name of 'ubuntu'.
Answers
C.
Configure the SSM Agent to log in with a user name of 'ubuntu'.
D.
Generate a new key pair, configure Session Manager to use this new key pair, and provide the private key to the users.
Answers
D.
Generate a new key pair, configure Session Manager to use this new key pair, and provide the private key to the users.
Suggested answer: B

Explanation:

If users are unable to connect to a specific Ubuntu EC2 instance using AWS Systems Manager Session Manager while other instances are accessible, the issue is likely due to IAM permissions:

Instance Profile Permissions: Ensure that the EC2 instance has the necessary IAM permissions to interact with Systems Manager. The AmazonSSMManagedInstanceCore managed policy includes permissions required for the SSM Agent on the instance to communicate with the AWS Systems Manager service.

Attach Managed Policy: Attach the AmazonSSMManagedInstanceCore policy to the IAM role that is associated with the Ubuntu instance's instance profile. This step is crucial as it authorizes the instance to use Systems Manager services, including Session Manager.

Verify Configuration and Connectivity: After updating the instance profile, verify that users can connect via Session Manager. This solution does not require any changes to network security settings like security groups.

By ensuring that the instance has the appropriate IAM permissions, you resolve issues related to access control and Systems Manager functionality, allowing authorized personnel to connect securely without using SSH or RDP.

asked 16/09/2024
Ricardo Monsalve
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first