For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 7Question 40
    Hard1 markMultiple Choice
    Domain 2.4: ReliabilityReliabilityAuto ScalingEBS

    AWS SAP-C02 · Question 40 · Domain 2.4: Reliability

    A company is designing a highly available architecture for a stateful legacy application. The application runs on a single EC2 instance and stores session data locally on its EBS volume. The application cannot be refactored. How can the architect ensure that if the EC2 instance fails, the application is automatically recovered with its session data intact?

    Answer options:

    A.

    Use Amazon EFS instead of EBS for the session data.

    B.

    Put the EC2 instance in an Auto Scaling group with a minimum and maximum size of 1. Configure a lifecycle hook to attach the existing EBS volume to the new instance upon launch.

    C.

    Enable EC2 Auto Recovery. If the instance fails, Auto Recovery will migrate the instance to new hardware with the EBS volume attached.

    D.

    Use AWS Backup to take continuous snapshots and restore them automatically using AWS CloudFormation.

    How to approach this question

    Find a way to maintain state with an ASG of 1.

    Full Answer

    B.Put the EC2 instance in an Auto Scaling group with a minimum and maximum size of 1. Configure a lifecycle hook to attach the existing EBS volume to the new instance upon launch.✓ Correct
    An Auto Scaling group with a size of 1 ensures high availability. Because the app is stateful, a lifecycle hook can be used to trigger a Lambda function that detaches the EBS volume from the failed instance and attaches it to the newly launched instance.

    Common mistakes

    Relying on EC2 Auto Recovery, which doesn't protect against OS-level failures.
    Question 39All questionsQuestion 41

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A global enterprise is designing a multi-region network architecture connecting 50 AWS accounts a...HardQ02A company is migrating its hybrid network to AWS. They have two 10 Gbps AWS Direct Connect connec...HardQ03An enterprise has 100 AWS accounts in AWS Organizations. The security team mandates that all Amaz...MediumQ04A financial company requires that all EBS volumes, S3 buckets, and RDS databases be encrypted usi...EasyQ05An enterprise is designing a disaster recovery strategy for a critical application running on Ama...Hard
    View all 75 questions →