Q74. AWS 보안 그룹 구성 - 2계층 웹 애플리케이션의 보안 강화
AWS 자격증을 준비하는 여러분, 안녕하세요. 오늘은 2계층 웹 애플리케이션의 보안 그룹 구성에 대해 알아보겠습니다. 이 주제는 AWS Certified Solutions Architect - Associate 시험에서 자주 다루어지는 중요한 내용입니다.
문제 상황
Q1:
솔루션 설계자는 2계층 웹 애플리케이션을 설계하고 있습니다. 애플리케이션은 퍼블릭 서브넷의 Amazon EC2에서 호스팅되는 퍼블릭 웹 티어로 구성됩니다. 데이터베이스 계층은 프라이빗 서브넷의 Amazon EC2에서 실행되는 Microsoft SQL Server로 구성됩니다. 보안은 회사의 최우선 과제입니다.
이 상황에서 보안 그룹을 어떻게 구성해야 합니까? (2개를 선택하세요.)
<small>A solutions architect is designing a two-tier web application. The application consists of a public web tier hosted on Amazon EC2 in a public subnet. The database tier consists of Microsoft SQL Server running on Amazon EC2 in a private subnet. Security is the company's top priority.
How should the security groups be configured in this situation? (Select TWO.)</small>
선택지
A. 0.0.0.0/0에서 포트 443의 인바운드 트래픽을 허용하도록 웹 계층에 대한 보안 그룹을 구성합니다.
<small>Configure the security group for the web tier to allow inbound traffic on port 443 from 0.0.0.0/0.</small>
B. 0.0.0.0/0에서 포트 443의 아웃바운드 트래픽을 허용하도록 웹 계층에 대한 보안 그룹을 구성합니다.
<small>Configure the security group for the web tier to allow outbound traffic on port 443 to 0.0.0.0/0.</small>
C. 웹 계층에 대한 보안 그룹에서 포트 1433의 인바운드 트래픽을 허용하도록 데이터베이스 계층에 대한 보안 그룹을 구성합니다.
<small>Configure the security group for the database tier to allow inbound traffic on port 1433 from the security group for the web tier.</small>
D. 데이터베이스 계층의 보안 그룹을 구성하여 포트 443 및 1433의 아웃바운드 트래픽을 웹 계층의 보안 그룹으로 보냅니다.
<small>Configure the security group for the database tier to send outbound traffic on ports 443 and 1433 to the security group for the web tier.</small>
E. 웹 계층에 대한 보안 그룹의 포트 443 및 1433에서 인바운드 트래픽을 허용하도록 데이터베이스 계층에 대한 보안 그룹을 구성합니다.
<small>Configure the security group for the database tier to allow inbound traffic on ports 443 and 1433 from the security group for the web tier.</small>
정답 및 해설
정답은 A와 C입니다.
<small>The correct answers are A and C.</small>
A. 웹 계층의 보안 그룹은 인터넷에서 오는 HTTPS 트래픽(포트 443)을 허용해야 합니다. 이는 0.0.0.0/0에서의 인바운드 트래픽을 허용함으로써 달성됩니다.
C. 데이터베이스 계층의 보안 그룹은 웹 계층에서 오는 SQL Server 트래픽(포트 1433)만 허용해야 합니다. 이는 웹 계층의 보안 그룹을 소스로 지정하여 인바운드 트래픽을 허용함으로써 달성됩니다.
이러한 구성은 최소 권한 원칙을 따르며, 필요한 트래픽만 허용하여 애플리케이션의 보안을 강화합니다.
<small>A. The security group for the web tier should allow HTTPS traffic (port 443) from the internet. This is achieved by allowing inbound traffic from 0.0.0.0/0 on port 443.
C. The security group for the database tier should only allow SQL Server traffic (port 1433) from the web tier. This is achieved by allowing inbound traffic on port 1433 from the security group of the web tier.
This configuration follows the principle of least privilege, allowing only the necessary traffic and enhancing the security of the application.</small>
오답 설명
B. 웹 계층에서 아웃바운드 트래픽을 명시적으로 허용할 필요가 없습니다. 보안 그룹은 기본적으로 모든 아웃바운드 트래픽을 허용합니다.
D. 데이터베이스 계층에서 웹 계층으로의 아웃바운드 트래픽을 명시적으로 구성할 필요가 없습니다. 또한, 데이터베이스는 일반적으로 웹 서버로 직접 연결을 시작하지 않습니다.
E. 데이터베이스 계층은 포트 443(HTTPS)에서 인바운드 트래픽을 허용할 필요가 없습니다. 이는 웹 서버의 역할입니다.
<small>B. There's no need to explicitly allow outbound traffic from the web tier. Security groups allow all outbound traffic by default.
D. There's no need to explicitly configure outbound traffic from the database tier to the web tier. Also, databases typically don't initiate connections directly to web servers.
E. The database tier doesn't need to allow inbound traffic on port 443 (HTTPS). This is the role of the web server.</small>
결론
이 문제는 AWS의 보안 그룹 구성과 네트워크 보안의 기본 원칙을 테스트합니다. 주요 포인트는 다음과 같습니다:
- 웹 서버는 인터넷에서의 HTTPS 트래픽을 허용해야 합니다.
- 데이터베이스는 웹 서버로부터의 트래픽만 허용해야 합니다.
- 보안 그룹은 기본적으로 모든 아웃바운드 트래픽을 허용합니다.
- 최소 권한 원칙을 따라 필요한 트래픽만 허용해야 합니다.
이러한 원칙을 이해하고 적용하는 것이 AWS 환경에서 안전한 아키텍처를 설계하는 데 중요합니다.
<small>This question tests understanding of AWS security group configuration and basic principles of network security. Key points include:
- Web servers should allow HTTPS traffic from the internet.
- Databases should only allow traffic from web servers.
- Security groups allow all outbound traffic by default.
- Follow the principle of least privilege, allowing only necessary traffic.
Understanding and applying these principles is crucial for designing secure architectures in AWS environments.</small>
댓글
댓글 쓰기