하위 문제 풀이는 개인적 의견일 수 있습니다. AWS 공식 문서를 참조하는 것을 추천 드립니다.
[영문]
An application development team is designing a microservice that will convert large images to smaller, compressed images. When a user uploads an image through the web interface, the microservice should store the image in an Amazon S3 bucket, process and compress the image with an AWS Lambda function, and store the image in its compressed form in a different S3 bucket.
A solutions architect needs to design a solution that uses durable, stateless components to process the images automatically.
Which combination of actions will meet these requirements? (Choose two.)
- A. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure the S3 bucket to send a notification to the SQS queue when an image is uploaded to the S3 bucket.
- B. Configure the Lambda function to use the Amazon Simple Queue Service (Amazon SQS) queue as the invocation source. When the SQS message is successfully processed, delete the message in the queue.
- C. Configure the Lambda function to monitor the S3 bucket for new uploads. When an uploaded image is detected, write the file name to a text file in memory and use the text file to keep track of the images that were processed.
- D. Launch an Amazon EC2 instance to monitor an Amazon Simple Queue Service (Amazon SQS) queue. When items are added to the queue, log the file name in a text file on the EC2 instance and invoke the Lambda function.
- E. Configure an Amazon EventBridge (Amazon CloudWatch Events) event to monitor the S3 bucket. When an image is uploaded, send an alert to an Amazon ample Notification Service (Amazon SNS) topic with the application owner's email address for further processing.
[한글] (번역기)
한 애플리케이션 개발 팀이 큰 이미지를 더 작은 압축 이미지로 변환하는 마이크로서비스를 설계하고 있습니다. 사용자가 웹 인터페이스를 통해 이미지를 업로드하면 마이크로서비스는 이미지를 Amazon S3 버킷에 저장하고, AWS 람다 함수로 이미지를 처리 및 압축한 다음, 압축된 형태의 이미지를 다른 S3 버킷에 저장해야 합니다.
솔루션 설계자는 내구성 있는 상태 비저장 구성 요소를 사용하여 이미지를 자동으로 처리하는 솔루션을 설계해야 합니다.
이러한 요구 사항을 충족하는 작업 조합은 무엇인가요? (두 가지를 선택하세요.)
A. Amazon SQS(Amazon Simple Queue Service) 대기열을 만듭니다. 이미지가 S3 버킷에 업로드될 때 SQS 대기열에 알림을 보내도록 S3 버킷을 구성합니다.
B. Amazon SQS(Amazon Simple Queue Service) 큐를 호출 소스로 사용하도록 Lambda 함수를 구성합니다. SQS 메시지가 성공적으로 처리되면 대기열에서 메시지를 삭제합니다.
C. 새 업로드가 있는지 S3 버킷을 모니터링하도록 람다 함수를 구성합니다. 업로드된 이미지가 감지되면 파일 이름을 메모리에 있는 텍스트 파일에 쓰고 이 텍스트 파일을 사용하여 처리된 이미지를 추적합니다.
D. Amazon EC2 인스턴스를 시작하여 Amazon SQS(Amazon Simple Queue Service) 대기열을 모니터링합니다. 항목이 대기열에 추가되면 EC2 인스턴스의 텍스트 파일에 파일 이름을 기록하고 람다 함수를 호출합니다.
E. S3 버킷을 모니터링하도록 Amazon EventBridge(Amazon CloudWatch 이벤트) 이벤트를 구성합니다. 이미지가 업로드되면 추가 처리를 위해 애플리케이션 소유자의 이메일 주소가 포함된 Amazon SNS(Amazon ample Notification Service) 항목에 알림을 보냅니다.
[풀이]
- 큰 이미지 압축, 이미지 S3 버킷에 저장하고 람다 함수로 이미지 처리 후 다시 S3 저장, 상태 비저장 컴포넌트를 이용해 이미지 자동으로 처리하는 솔루션 설계
- 상태 비저장이라는 키워드와 내구성이라는 키워드에 집중 해보기
- SQS가 내구성을 보장해줄 순 있을 것 같은데 상태 비저장 즉 Stateless 인지는 확인이 필요할듯
- A의 경우 SQS 큐에 메시지가 들어갈 경우 메시지는 무조건 적으로 전달되며, retry 옵션을 통해서 실패 시 다시 보내주기 때문에 내구성을 보장해준다. 또한 대기열에 알림을 보낸 후 stateless 서비스인 lambda로 전송하게 되면 이미지를 자동으로 처리할 수 있다.
- B의 경우도 A와 동일하다.
[출처] : https://www.examtopics.com/exams/amazon/aws-certified-solutions-architect-associate-saa-c03/view/
위 문제에 대한 저작권은 상위 출처 링크에 있으며 해당 게시글로 문제 시 댓글 부탁 드리며 삭제 조치 진행 하겠습니다.
'자격증 > AWS SAA' 카테고리의 다른 글
[SAA-C03][문제 풀이] EBS 데이터 안정적 복제 문제 (0) | 2023.10.16 |
---|---|
[SAA-C03][문제 풀이] 타사 방화벽 어플라이언스 웹 트래픽 검사 문제 (0) | 2023.10.16 |
[SAA-C03][문제 풀이] EC2 S3 문서 저장 문제 (0) | 2023.10.16 |
[SAA-C03][문제 풀이] 데이터 레이크 데이터 시각화 문제 (1) | 2023.10.13 |
[SAA-C03][문제 풀이] 트래픽 검사 및 필터링 문제 (0) | 2023.10.12 |