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 5Question 47
    Hard1 markMultiple Choice
    Domain 3.4: Reliability ImprovementReliabilityEC2EBSAutomation

    AWS SAP-C02 · Question 47 · Domain 3.4: Reliability Improvement

    A company is designing a highly available architecture for a stateful legacy application. The application runs on EC2 instances and stores session state on the local EBS volumes. The application cannot be rewritten to use an external session store (like ElastiCache). The architecture must ensure that if an EC2 instance fails, a new instance is launched and the exact same EBS volume (with the session state) is attached to it automatically. Which combination of services and features should be used? (Select TWO)

    Answer options:

    A.

    Use an Amazon EC2 Auto Scaling group with a minimum and maximum size of 1.

    B.

    Create an AWS Lambda function triggered by EventBridge (EC2 instance state change) to detach the EBS volume from the failed instance and attach it to the new instance.

    C.

    Use Amazon EFS instead of EBS and mount it to the Auto Scaling group via user data.

    D.

    Configure the Auto Scaling group to use an EBS snapshot lifecycle policy to restore the volume.

    E.

    Use AWS Elastic Beanstalk with persistent storage enabled.

    F.

    Enable EBS Multi-Attach on the volume and attach it to all instances in the Auto Scaling group.

    How to approach this question

    Identify the pattern for stateful EC2 failover (ASG size 1 + Lambda automation).

    Full Answer

    Use an Amazon EC2 Auto Scaling group with a minimum and maximum size of 1., Create an AWS Lambda function triggered by EventBridge (EC2 instance state change) to detach the EBS volume from the failed instance and attach it to the new instance.
    For legacy stateful applications that cannot be refactored, a common pattern is the 'floating EBS volume'. You use an Auto Scaling group with Min=1, Max=1 to ensure high availability of the compute. If the instance dies, ASG launches a new one. You use Amazon EventBridge to detect the ASG launch event, which triggers a Lambda function. The Lambda function finds the persistent EBS volume, detaches it from the dead instance, and attaches it to the newly launched instance.

    Common mistakes

    Suggesting EFS or Multi-Attach, which require application/OS level support that legacy apps often lack.
    Question 46All questionsQuestion 48

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

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A global enterprise is redesigning its AWS network architecture across 50 AWS accounts and 3 AWS ...HardQ02A company uses AWS Organizations to manage multiple accounts. The security team mandates that no ...MediumQ03A financial institution requires a disaster recovery strategy for its critical trading applicatio...HardQ04An enterprise is setting up a new multi-account AWS environment using AWS Control Tower. They nee...MediumQ05A company has a complex AWS environment with hundreds of linked accounts under AWS Organizations....Hard
    View all 75 questions →