DVA-C02 Question 85
Select 2A development team is building a photo-sharing application. The application will allow users to upload photos, which need to be stored durably and retrieved quickly. Additionally, metadata about each photo, such as upload timestamps and user information, must be searchable. Which combination of AWS cloud storage options is the most appropriate for this use case?
- A
Amazon S3 for storing photos and Amazon DynamoDB for storing metadata
- B
Amazon RDS for storing both photos and metadata
- C
Amazon EFS for storing photos and Amazon ElastiCache for storing metadata
- D
Amazon S3 for storing photos and Amazon Aurora for storing metadata
- E
Amazon S3 Glacier for storing photos and Amazon DynamoDB for storing metadata
Show answer and explanation
Correct answers: A, D
Explanation
For a photo-sharing application, storing photos in Amazon S3 is the best choice due to its durability, scalability, and ability to store large objects. For metadata, Amazon DynamoDB is well-suited when low-latency queries are required, while Amazon Aurora can be used for structured metadata with complex query requirements. Glacier is unsuitable for this use case due to its archival nature, and neither RDS nor EFS are optimized for this kind of workload. Therefore, the correct answers are Amazon S3 for photos combined with either DynamoDB or Aurora for metadata.
- A. Correct.
Amazon S3 is ideal for storing photos as it is a durable, scalable object storage service. Amazon DynamoDB is a highly available NoSQL database that works well for storing and querying metadata such as timestamps and user information.
- B. Incorrect.
Amazon RDS is a relational database service that might be overkill for storing both photos and metadata. It is not optimized for storing large binary objects like photos.
- C. Incorrect.
Amazon EFS is a file storage service designed for shared file systems but is not optimized for object storage like photos. ElastiCache is an in-memory caching service, which is not suitable for durable metadata storage.
- D. Correct.
Amazon S3 is suitable for storing photos, while Amazon Aurora (a relational database) can efficiently handle structured metadata with complex queries or relationships.
- E. Incorrect.
Amazon S3 Glacier is designed for archival storage and is not suitable for quick retrieval of photos in a user-facing application. DynamoDB, while suitable for metadata, does not compensate for the slow retrieval of Glacier.