Courseiva
Infrastructure SecurityhardMultiple SelectObjective-mapped

SCS-C03 Infrastructure Security Practice Question

Which THREE actions are essential to harden an Amazon EC2 Linux instance against unauthorized SSH access?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Disable password authentication in the '/etc/ssh/sshd_config' file.

Hardening SSH requires reducing the attack surface. Disabling password-based authentication forces the use of key pairs, which are more secure. Disabling root login prevents attackers from gaining full system privileges immediately. Implementing AWS Systems Manager Session Manager eliminates the need for open SSH ports (port 22) entirely, providing a highly secure, audited, and ephemeral way to manage instances without exposing them to the internet.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Disable password authentication in the '/etc/ssh/sshd_config' file.

    Why this is correct

    Password authentication is susceptible to brute-force and dictionary attacks. Disabling it ensures that access is only possible via SSH keys, which are significantly harder to compromise. This is a foundational step in securing any Linux instance against remote unauthorized login attempts, making it a mandatory practice for enterprise-grade infrastructure security.

  • Change the default SSH port from 22 to a non-standard port like 2222.

    Why it's wrong here

    Changing the port is 'security through obscurity' and does not prevent access by determined attackers who can quickly scan all ports. It provides a false sense of security while complicating management. Modern security practices focus on disabling inbound access entirely through methods like Session Manager, rather than attempting to hide services.

  • Disable root user login in the '/etc/ssh/sshd_config' file.

    Why this is correct

    Disabling direct root login prevents an attacker from having full, unprivileged access to the system immediately upon successful credential theft. Instead, users must log in as a standard user and use sudo for privilege escalation, which provides an audit trail of commands executed, significantly improving the security posture of the instance.

  • Use AWS Systems Manager Session Manager instead of SSH.

    Why this is correct

    Session Manager provides shell access to instances without requiring inbound port 22 to be open. It uses IAM for authentication and authorization, providing central management and logging of all activity. Removing the need for open SSH ports drastically reduces the attack surface, making it the gold standard for secure infrastructure access.

  • Install a third-party antivirus agent on every EC2 instance.

    Why it's wrong here

    While antivirus can be part of a defense-in-depth strategy, it does not address the fundamental issue of securing the SSH protocol itself. The priority for hardening SSH should be preventing unauthorized network access and authentication, which is achieved through configuration changes and better access management tools like AWS Systems Manager.

About these practice questions

Courseiva writes every SCS-C03 question from scratch — 99 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This SCS-C03 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SCS-C03 exam.