You have been called in to consult with a Mobile App company around a challenge. Their app, ABCom, allows people to take very high-resolution multi-megabyte pictures of their food and derives the nutritional value from the photo. They are due to launch within 5 days and must be ready to scale as the app is expected to be a hit. Unfortunately, the machine learning portion of the app is not yet perfected so they have recruited many analysts to view the photos, lookup the nutritional value and return the info to the user.
How would you best architect for this scenario?
A. Create a pub/sub architecture, supplying the analysts with a custom program they can use to receive images pushed from SQS queues and process the images.
B. Use SNS to create a process which will email received images equally across a set of email accounts. Provide the analysts with a custom program to read those mailboxes and process the images.
C. Use Kinesis Data Stream and Kinesis Firehose to take in the image and save them off to S3. Write a custom program that analysts can use to view the S3 images and process them.
D. Use AWS SWF to receive the images from the mobile app. Use the weighted routing feature in SWF to forward the images equally across a pool of analysts to process the images.
E. Configure the app to upload the image to S3. Using S3 Events, trigger a message to an SQS queue linking to the image. Provide analysts with a custom program to poll the queue and process the images.
E
技巧:排除明顯錯誤選項,在沒有明顯錯誤的選項中選擇最合理的選項。
A. 不正確。明顯錯誤選項。Amazon SQS (Amazon Simple Queue Service) 是一種完全托管的消息隊列服務(wù),可輕松分離和擴展微服務(wù)、分布式系統(tǒng)及無服務(wù)器應(yīng)用程序。SQS 采用 push/pull ,而非 pub/sub 架構(gòu)。
B. 不正確。明顯錯誤選項。Amazon SNS(Amazon Simple Notification Service)是完全托管的 pub/sub 服務(wù),Amazon SNS 遵循“發(fā)布/訂閱”(pub/sub) 消息收發(fā)范式,客戶端無須無需定期檢查或“輪詢”新信息和更新。每個訂閱者都會收到完全相同數(shù)量和內(nèi)容的消息的副本。
C. 不正確。不太恰當(dāng)?shù)倪x項。存儲在 Kinesis 數(shù)據(jù)流中的數(shù)據(jù)最大值為 1MB,SNS 和 SQS 能夠存儲的消息內(nèi)容的最大值為 256KB,而用戶上傳的圖片都是高分辨率的圖片,尺寸很可能遠遠超過 1M大小,因此這三種服務(wù)都無法充分滿足業(yè)務(wù)需求。
D. 不正確。明顯錯誤的選項。因為 Amazon SWF (Simple Workflow Service) 雖然提供了提供了一種構(gòu)建、運行和擴展具有并行或順序步驟的后臺任務(wù)的方法,但是并不能為單獨的任務(wù)分配權(quán)重。
E. 正確。