Ends in

ALL AWS Specialty Practice Exams for only $17.99 $13.99 each!

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

Home Forums AWS AWS Certified Solutions Architect Professional Cloudfront signed URL vs signed cookies

  • Cloudfront signed URL vs signed cookies

  • khawaja

    August 24, 2021 at 9:37 am

    You are working as a Solutions Architect for an international insurance company that has clients all across the globe. They have financial files that are stored in an S3 bucket which is behind CloudFront. At present, their clients can access their data by directly using an S3 URL or using their CloudFront distribution. The company wants to deliver their content to a specific client in California and they need to make sure that only that client can access the data.

    Which of the following options is a valid solution that meets the above requirements? (Select TWO.)

    The correct answer to above question uses signed URL rather than signed cookies. But reading the question it seems like each client has multiple files and not just one. So don’t you think using signed cookies is a better idea?

  • Kenneth-Samonte-Tutorials-Dojo

    August 24, 2021 at 10:58 pm

    Hi khawaja,

    Thank you for sharing your feedback on this question.

    Yes, it is possible to use signed cookies for restricting read access to the files in the S3 bucket however, for implementation on a single client I think the signed URLs are still preferable.

    The signed cookies are helpful if for example, you want a group of users that want to access the “premium users only” page of your website, then all accounts that have that cookie are allowed. In this setup, you also need to have your application always send the “Set-Cookie” header to be used by CloudFront for verification. Also, the signed cookies are only a feature for the CloudFront distribution. If any of the other clients know the URL of the S3 object, they can directly access it.

    If you use Signed URLs, both Amazon CloudFront and S3 natively support the signing of URLs, therefore, the users only having the direct S3 url of the object will not be allowed, because access is only limited to pres-signed URLs.

    Hope this helps.

    Let us know if you need further assistance. The Tutorials Dojo team is dedicated to helping you pass your AWS exam!


    Kenneth Samonte @ Tutorials Dojo

Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018