Ends in
00
hrs
00
mins
00
secs
SHOP NOW

💝 48-Hour Valentine's Sale Extension! Get 30% OFF Any Reviewer. Use coupon code: VDAYSALE2026 & 5% OFF Store Credits/Gift Cards

Find answers, ask questions, and connect with our
community around the world.

Home Forums AWS AWS Certified Solutions Architect Professional Category: CSAP – Continuous Improvement for Existing Solutions – review mode 1 Reply To: Category: CSAP – Continuous Improvement for Existing Solutions – review mode 1

  • Irene-TutorialsDojo

    Administrator
    January 31, 2026 at 12:25 pm

    Hello Marcos Daniel Santos,

    Thank you for reaching out and for sharing your reasoning.


    In this scenario, Lambda@Edge is indeed a correct choice because it allows authentication logic to run at AWS edge locations closer to users, which helps reduce login latency without requiring additional regional deployments. However, increasing the CloudFront cache hit ratio does not address the root issue, as login and authentication requests are dynamic and user-specific, and therefore are typically not cacheable by CloudFront.

    Regarding origin failover, while it is commonly associated with availability and disaster recovery, it also directly impacts perceived performance in this case. The HTTP 504 errors indicate that the origin is timing out, causing users to wait longer or retry their login attempts.

    By configuring a CloudFront origin group with failover, CloudFront can automatically route requests to a healthy origin when the primary origin is unresponsive, reducing timeouts and improving the overall login experience. This approach improves both reliability and user-perceived performance with minimal additional cost, which aligns with the requirements of the question.

    If you have any further questions or need additional clarification, feel free to reach out anytime.

    Cheers,

    Irene @ Tutorials Dojo

Skip to content