Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

AWS Cloud Practitioner Sale - Get a Chance to Win FREE Access to our new DEA Practice Exams

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

Home Forums AWS AWS Certified Security – Specialty Diagnostic Test – Incorrect answer Reply To: Diagnostic Test – Incorrect answer

  • Neil-TutorialsDojo

    Member
    May 3, 2024 at 11:58 am

    Hi Viktor Krasheninnikov,

    Good day! Thank you for your feedback.

    Referring from the explanation given: “Although adding logic to serve content or redirect the user to login can prevent unauthenticated users from accessing the index.html, the CloudFront functions feature remains inadequate because it cannot utilize certain libraries. To satisfy the requirement for this solution, you must use libraries to validate the JWTs, which is outside the capability of CloudFront functions. Keep in mind that CloudFront functions serve a similar purpose as the Lambda@edge function, a middleware service that allows developers to run code; however, it is only ideal for short and simple tasks.

    Thus the Accepted answer: “Deploy an Amazon Cognito hosted user interface (UI) for the login. Integrate Lambda@Edge logic into the CloudFront distribution to decide between serving content or redirecting to the login.”

    I hope this helps.

    Regards,
    Neil @ Tutorials Dojo