Secure External Access to EC2 via Systems Manager
Short answer
A Use AWS IAM Identity Center for console access and Systems Manager Session Manager for secure OS-level access to private instances without opening SSH ports.
Question
Key Takeaways
The core test is securing access without opening network ports; the trap involves choosing options that rely on insecure practices like managing local IAM user credentials or exposing SSH keys through bastion hosts.
This question explores the most secure method for granting external support engineers console and OS-level access to private Amazon Linux instances, highlighting the superiority of AWS IAM Identity Center and Systems Manager Session Manager over traditional SSH and local credentials.
Common mistake: Candidates often choose Option D (Bastion Host) because it is a common architectural pattern, failing to recognize that managing SSH keys and local IAM users across multiple accounts creates significant security overhead and risk compared to managed identity solutions.
Expert Analysis
Why the Answer Is Correct
Option A is the correct answer because it leverages two AWS best practices for secure remote access: AWS IAM Identity Center for centralized, federated console access, and Systems Manager Session Manager for OS-level access. Session Manager allows agents in private subnets to initiate outbound connections to AWS, eliminating the need to open inbound SSH ports (port 22) or manage SSH key pairs. This significantly reduces the attack surface and provides detailed logging of all sessions.
Why the Other Options Are Wrong
Option B suggests providing "local IAM user credentials" for console access. Managing long-term access keys or passwords for individual users across an organization is less secure and harder to audit than using IAM Identity Center with SAML/SSO. Furthermore, Session Manager does not provide IAM user credentials; it provides session access via the agent. Option C proposes allowing SSH from specific IP ranges. While restricting IPs is good practice, it still requires managing SSH keys and exposes instances to potential brute-force attacks if IPs are spoofed or compromised. It lacks the centralized auditing and no-port-open security of Session Manager. Option D introduces a Bastion Host. While better than direct SSH, it adds complexity, requires maintaining the bastion instance, and still relies on SSH keys and local IAM user credentials, which are less secure and scalable than the solution in Option A.
Community Comment Notes
The community overwhelmingly supports Option A. As 'officedepotadmin' noted, "Systems Manager Session Manager allows secure, auditable, and controlled access... without needing to open SSH ports." Another commenter, 'Changwha', emphasized that this approach "minimizes the attack surface by eliminating the need for SSH access." Users correctly identified that managing local IAM credentials (Options B, C, D) is a security anti-pattern in modern AWS architectures.
Exam Strategy
When asked for the "MOST securely" option involving private instances, look for solutions that avoid opening inbound ports (like SSH/RDP). Prefer managed services like Systems Manager Session Manager and IAM Identity Center over manual credential management or bastion hosts unless specific legacy constraints exist.
Frequently Asked Questions
Why is Session Manager better than SSH for private subnets?
Can I use Session Manager without installing the SSM Agent?
Community Votes
100% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 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 6
-
officedepotadmin 👍 3 Answered ASystems Manager Session Manager allows secure, auditable, and controlled access to your EC2 instances without needing to open SSH ports or manage SSH keys, reducing the attack surface. Local IAM user credentials are less secure and harder to manage at scale compared to using IAM Identity Center.
-
Changwha 👍 2A: This solution minimizes the attack surface by eliminating the need for SSH access, avoids bastion hosts, and provides secure, auditable, and federated access to AWS resources.
-
Cpso 👍 2 Answered AA or B. Exam not tell if they have IDP and no. of outsource.
-
LeonSauveterre 👍 1 Answered AA - It leverages AWS-managed solutions that simplify operations, enhance security, and meet the requirement for both console and OS-level access, while avoiding the pitfalls of SSH-based access or local user management, so this is what we're looking for. B - Providing local IAM user credentials increases operational overhead and security risks. Managing these credentials across multiple AWS accounts can lead to inconsistency and potential vulnerabilities. C - Allowing SSH access via security groups and distributing SSH key pairs introduces significant security risks. Keys could be lost or misused, and managing IP address ranges is not a piece of cake. D - Bastion hosts require ongoing maintenance and monitoring to ensure security, which is unnecessary with Session Manager.
-
EllenLiu 👍 1 Answered AB: I believe the Session Manager may not have the capability to provide IAM user credentials. If it were to do so, it could potentially lead to security concerns.
Show 1 more comment
-
swati1508 👍 2A use MSM
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →