Q51. AWS Lambda와 Amazon SES를 활용한 자동화된 일일 보고서 생성 및 배포 솔루션
AWS 자격증을 준비하는 여러분, 안녕하세요. 오늘은 실제 비즈니스 시나리오를 바탕으로 한 문제를 통해 AWS 서비스들의 통합적 활용 방법에 대해 알아보겠습니다. 이 문제는 데이터 추출, 처리, 그리고 자동화된 보고서 배포에 관한 것으로, AWS Lambda, Amazon EventBridge, 그리고 Amazon SES의 활용 방법을 이해하는 데 도움이 될 것입니다.
문제 상황
Q1:
회사는 REST API로 검색하기 위해 주문 배송 통계를 제공하는 애플리케이션을 개발 중입니다. 이 회사는 배송 통계를 추출하고 데이터를 읽기 쉬운 HTML 형식으로 구성하고 매일 아침 여러 이메일 주소로 보고서를 보내려고 합니다.
이러한 요구 사항을 충족하기 위해 솔루션 설계자는 어떤 단계 조합을 취해야 합니까? (2개를 선택하세요.)
<small>A company is developing an application that provides order shipping statistics for querying via a REST API. The company wants to extract the shipping statistics, format the data into a readable HTML format, and send the report to multiple email addresses every morning.
Which combination of steps should a solutions architect take to meet these requirements? (Select TWO.)</small>
선택지
A. 데이터를 Amazon Kinesis Data Firehose로 보내도록 애플리케이션을 구성합니다.
<small>Configure the application to send data to Amazon Kinesis Data Firehose.</small>
B. Amazon Simple Email Service(Amazon SES)를 사용하여 데이터 형식을 지정하고 보고서를 이메일로 보냅니다.
<small>Use Amazon Simple Email Service (Amazon SES) to format the data and send the report by email.</small>
C. AWS Glue 작업을 호출하여 데이터에 대한 애플리케이션의 API를 쿼리하는 Amazon EventBridge(Amazon CloudWatch Events) 예약 이벤트를 생성합니다.
<small>Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Glue job to query the application's API for the data.</small>
D. AWS Lambda 함수를 호출하여 데이터에 대한 애플리케이션의 API를 쿼리하는 Amazon EventBridge(Amazon CloudWatch Events) 예약 이벤트를 생성합니다.
<small>Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Lambda function to query the application's API for the data.</small>
E. Amazon S3에 애플리케이션 데이터를 저장합니다. 보고서를 이메일로 보낼 S3 이벤트 대상으로 Amazon Simple Notification Service(Amazon SNS) 주제를 생성합니다.
<small>Store the application data in Amazon S3. Create an Amazon Simple Notification Service (Amazon SNS) topic as an S3 event destination to send the report by email.</small>
정답 및 해설
정답은 B와 D입니다.
<small>The correct answers are B and D.</small>
이 문제의 요구사항을 충족시키기 위해서는 다음과 같은 솔루션이 필요합니다:
-
AWS Lambda 함수를 호출하여 데이터에 대한 애플리케이션의 API를 쿼리하는 Amazon EventBridge(Amazon CloudWatch Events) 예약 이벤트를 생성합니다. 이 방법을 통해 매일 아침 자동으로 배송 통계 데이터를 추출하고 처리할 수 있습니다.
-
Amazon Simple Email Service(Amazon SES)를 사용하여 데이터 형식을 HTML로 지정하고 보고서를 이메일로 보냅니다. 이 서비스를 통해 처리된 데이터를 읽기 쉬운 HTML 형식으로 변환하고, 여러 이메일 주소로 동시에 보고서를 전송할 수 있습니다.
이 솔루션은 서버리스 아키텍처를 활용하여 비용 효율적이고 확장 가능한 방식으로 요구사항을 충족시킵니다. Lambda 함수는 필요할 때만 실행되므로 리소스를 효율적으로 사용하며, Amazon SES는 대량의 이메일을 안정적으로 전송할 수 있는 능력을 제공합니다.
<small>To meet the requirements of this problem, the following solution is needed:
-
Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled event that invokes an AWS Lambda function to query the application's API for the data. This method allows for automatic extraction and processing of shipping statistics data every morning.
-
Use Amazon Simple Email Service (Amazon SES) to format the data into HTML and send the report by email. This service allows you to convert the processed data into an easy-to-read HTML format and send the report to multiple email addresses simultaneously.
This solution utilizes a serverless architecture to meet the requirements in a cost-effective and scalable manner. Lambda functions only run when needed, thus efficiently using resources, and Amazon SES provides the ability to reliably send large volumes of emails.</small>
오답 설명
A. Amazon Kinesis Data Firehose: 이 서비스는 실시간 스트리밍 데이터를 처리하는 데 유용하지만, 이 시나리오에서는 필요하지 않습니다. 문제는 정기적인 배치 처리를 요구하고 있습니다.
<small>A. Amazon Kinesis Data Firehose: While this service is useful for processing real-time streaming data, it's not necessary for this scenario. The problem requires periodic batch processing.</small>
C. AWS Glue: AWS Glue는 ETL(추출, 변환, 로드) 작업에 적합하지만, 이 경우 간단한 API 쿼리와 데이터 포맷팅만 필요하므로 과도한 솔루션입니다.
<small>C. AWS Glue: While AWS Glue is suitable for ETL (Extract, Transform, Load) jobs, it's an overengineered solution for this case where only simple API querying and data formatting are needed.</small>
E. Amazon S3 + Amazon SNS: 이 조합은 데이터 저장과 알림에는 유용하지만, 요구사항인 데이터 추출, HTML 포맷팅, 그리고 이메일 전송을 직접적으로 해결하지 않습니다.
<small>E. Amazon S3 + Amazon SNS: While this combination is useful for data storage and notifications, it doesn't directly address the requirements of data extraction, HTML formatting, and email sending.</small>
결론
이 문제는 AWS의 다양한 서비스를 조합하여 실제 비즈니스 요구사항을 해결하는 능력을 테스트합니다. 특히 서버리스 컴퓨팅(AWS Lambda), 이벤트 기반 자동화(Amazon EventBridge), 그리고 이메일 서비스(Amazon SES)의 통합적 활용이 중요합니다. 솔루션 아키텍트로서 이러한 서비스들의 특성을 이해하고, 비용 효율적이고 확장 가능한 솔루션을 설계할 수 있어야 합니다.
<small>This question tests the ability to combine various AWS services to solve real business requirements. In particular, it emphasizes the integrated use of serverless computing (AWS Lambda), event-driven automation (Amazon EventBridge), and email services (Amazon SES). As a solutions architect, it's important to understand the characteristics of these services and be able to design cost-effective and scalable solutions.</small>
댓글
댓글 쓰기