Courseiva
Cloud Architecture and DesignmediumMultiple SelectObjective-mapped

CV0-004 Cloud Architecture and Design Practice Question

A company is migrating a legacy stateful application to the cloud. The application currently runs on a single server and stores session data locally. To enable horizontal scaling, which two design changes should the architect recommend? (Select TWO.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Move session state to a shared database or cache

To horizontally scale a stateful application, session data must be externalized (e.g., to a database or cache) and the application should be designed to be stateless so any instance can handle any request.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Add more storage to the existing instance

    Why it's wrong here

    Storage increase does not enable horizontal scaling.

  • Implement sticky sessions on the load balancer

    Why it's wrong here

    Sticky sessions limit scaling and introduce coupling.

  • Move session state to a shared database or cache

    Why this is correct

    Externalizing session state allows any instance to serve any user.

  • Use a larger instance type for the application server

    Why it's wrong here

    This is vertical scaling, not horizontal.

  • Refactor the application to be stateless

    Why this is correct

    Stateless design enables any instance to handle any request.

About these practice questions

Courseiva writes every CV0-004 question from scratch — 977 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.