DVA-C02 Question 112
Select 2A developer is designing an application that processes large volumes of log files, which are required only for real-time analysis and are not needed after the analysis is complete. The application also needs to persist user-generated data such as profile pictures and account details for long-term storage. Which combination of storage solutions is most appropriate for this scenario?
- A
Use Amazon S3 for storing the log files and Amazon DynamoDB for user-generated data.
- B
Use Amazon EC2 instance store for storing the log files and Amazon S3 for user-generated data.
- C
Use Amazon EFS for storing the log files and Amazon RDS for user-generated data.
- D
Use Amazon EC2 instance store for storing the log files and Amazon DynamoDB for user-generated data.
- E
Use Amazon S3 for storing both the log files and user-generated data.
Show answer and explanation
Correct answers: B, D
Explanation
For ephemeral data like log files that are only required temporarily, Amazon EC2 instance store is the most suitable choice because it provides high-speed, temporary storage tied to an instance's lifecycle. For persistent data such as user-generated content that needs to be stored long-term, Amazon S3 and Amazon DynamoDB are excellent options due to their durability, scalability, and cost-effectiveness. The correct combination is to use ephemeral storage (EC2 instance store) for log files and persistent storage (S3 or DynamoDB) for user-generated data.
- A. Incorrect.
Amazon S3 is a persistent storage service that is well-suited for long-term storage of data. However, for ephemeral data like log files that are only needed temporarily, S3 is not the most efficient choice. Additionally, Amazon DynamoDB is a NoSQL database suitable for structured data, but it is not ideal for storing files like profile pictures.
- B. Correct.
Amazon EC2 instance store is a high-performance ephemeral storage solution that is ideal for temporary data like log files. Amazon S3 is a highly durable and scalable persistent storage solution, making it a great choice for user-generated data such as profile pictures.
- C. Incorrect.
Amazon EFS is a persistent file storage solution and is not well-suited for ephemeral data like log files. Amazon RDS is a relational database service designed for structured transactional data, which might not be the best fit for storing large binary files such as profile pictures.
- D. Correct.
Amazon EC2 instance store is ideal for ephemeral data like log files since it provides temporary, high-speed storage tied to the lifecycle of the EC2 instance. DynamoDB is a NoSQL database that is highly scalable and suitable for storing user-generated structured data such as account details.
- E. Incorrect.
Using Amazon S3 for both log files and user-generated data is not optimal because log files are ephemeral and S3 is designed for persistent storage. This would lead to unnecessary costs and inefficiencies.