
Answer-first summary for fast verification
Answer: Employ Amazon Cognito for user account management and API access control. Store photos in Amazon S3 and reference them with S3 keys in DynamoDB for retrieval.
Option B is the correct answer because it leverages Amazon Cognito for user authentication, which is a secure and scalable solution for managing user accounts, and controls API access through API Gateway. This minimizes operational overhead. Additionally, storing photos in Amazon S3 is appropriate for handling files ranging from 300 KB to 5 MB, and referencing these photos with S3 keys in the DynamoDB table allows for efficient retrieval. Options A and D are not viable as DynamoDB has a size limit of 400 KB per item, making it unsuitable for storing photos. Option C is not recommended due to the overhead of creating individual IAM users for each application user.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A developer is creating a cloud-based photo storage application for tens of thousands of users, utilizing an Amazon API Gateway REST API with AWS Lambda for processing. Photos, ranging from 300 KB to 5 MB, are stored with details in Amazon DynamoDB. Users must register and have the capability to upload and access their photos. What is the solution with the least operational overhead?
A
Utilize Amazon Cognito for user account management and API access control via a user pool authorizer. Store photos and details in DynamoDB and retrieve from there.
B
Employ Amazon Cognito for user account management and API access control. Store photos in Amazon S3 and reference them with S3 keys in DynamoDB for retrieval.
C
Create individual IAM users during sign-up for API access. Store photos in S3 with S3 keys noted in DynamoDB for photo retrieval.
D
Manage user accounts with a DynamoDB users table and a Lambda authorizer for API access control. Store photos in S3 and use S3 keys in DynamoDB for retrieval.
No comments yet.