DVA-C02 exam dumps

DVA-C02 practice question 65 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 65

Single answer

You are developing a serverless application using AWS Lambda, and your application requires low-latency access to session data such as user preferences and authentication tokens. The data needs to persist for the session's duration, and each session has a unique identifier. Which AWS service is the most suitable for storing and retrieving this data?

  1. A

    Amazon S3

  2. B

    Amazon RDS

  3. C

    Amazon DynamoDB

  4. D

    Amazon ElastiCache

Show answer and explanation

Correct answer: D

Explanation

Amazon ElastiCache is the optimal choice for storing and retrieving session data in this scenario because it provides ultra-low latency due to its in-memory architecture. Session data, such as user preferences and authentication tokens, requires quick access and updates, which ElastiCache is specifically designed to handle. While other options like DynamoDB or RDS might work, they cannot match the performance of an in-memory data store like ElastiCache for such use cases.

  • A. Incorrect.

    Amazon S3 is designed for object storage and is not optimized for low-latency access to session-related data. It lacks the ability to quickly retrieve or update small, frequently accessed data items such as session data.

  • B. Incorrect.

    Amazon RDS is a managed relational database service, which is better suited for structured data and complex queries. However, it is not ideal for low-latency session data retrieval, as relational databases typically have higher query latencies compared to in-memory solutions.

  • C. Incorrect.

    Amazon DynamoDB is a fully managed NoSQL database with low latency for key-value access. While it is a strong option for session data, it does not provide the same ultra-low latency as in-memory solutions like Amazon ElastiCache.

  • D. Correct.

    Amazon ElastiCache is an in-memory data store designed for ultra-low latency access. It is highly suitable for session data storage and retrieval, as it provides fast response times and supports key-value storage patterns.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam