DVA-C02 exam dumps

DVA-C02 practice question 48 of 399

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

DVA-C02 Question 48

Select 3

You are developing a stateless web application on AWS that needs to handle a high volume of user requests. To ensure scalability and fault tolerance, which of the following strategies should you implement?

  1. A

    Store user session data in Amazon ElastiCache.

  2. B

    Store user session data on the local file system of the EC2 instances.

  3. C

    Use Elastic Load Balancing to distribute traffic across multiple application instances.

  4. D

    Deploy the application on multiple Availability Zones.

  5. E

    Use Amazon EBS volumes for session storage to ensure data persistence.

Show answer and explanation

Correct answers: A, C, D

Explanation

Stateless applications do not store session information or state on their local instances. Instead, they externalize session data to services like Amazon ElastiCache or Amazon DynamoDB, enabling instances to scale independently. Elastic Load Balancing and deploying across multiple Availability Zones ensure high availability and fault tolerance, which are critical for stateless architectures. Avoid using local file systems or instance-specific storage like EBS for session data, as these approaches make the application stateful and hinder scalability.

  • A. Correct.

    Storing user session data in Amazon ElastiCache is a good practice for stateless applications because it keeps the session state external to the application instances, allowing instances to scale independently.

  • B. Incorrect.

    Storing user session data on the local file system of EC2 instances makes the application stateful, which hinders scalability and fault tolerance as the session data is tied to a specific instance.

  • C. Correct.

    Elastic Load Balancing helps distribute incoming traffic across multiple instances, ensuring scalability and fault tolerance for stateless applications.

  • D. Correct.

    Deploying the application on multiple Availability Zones improves fault tolerance and high availability, which aligns with the principles of stateless application design.

  • E. Incorrect.

    Using Amazon EBS volumes for session storage ties the session state to specific instances, making the application stateful and less scalable.

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