exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 180 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 180
Topic #: 1
[All AWS Certified Security - Specialty Questions]

A company uses HTTP Live Streaming (HLS) to stream live video content to paying subscribers by using Amazon CloudFront. HLS splits the video content into chunks so that the user can request the right chunk based on different conditions. Because the video events last for several hours, the total video is made up of thousands of chunks.
The origin URL is not disclosed, and every user is forced to access the CloudFront URL. The company has a web application that authenticates the paying users against an internal repository and a CloudFront key pair that is already issued.
What is the simplest and MOST effective way to protect the content?

  • A. Develop the application to use the CloudFront key pair to create signed URLs that users will use to access the content.
  • B. Develop the application to use the CloudFront key pair to set the signed cookies that users will use to access the content.
  • C. Develop the application to issue a security token that Lambda@Edge will receive to authenticate and authorize access to the content.
  • D. Keep the CloudFront URL encrypted inside the application, and use AWS KMS to resolve the URL on-the-fly after the user is authenticated.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
brazuca
Highly Voted 3 years, 8 months ago
100% B, explanation here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html
upvoted 14 times
...
awscerti
Highly Voted 3 years, 8 months ago
B - Use signed cookies in the following cases: You want to provide access to multiple restricted files, for example, all of the files for a video in HLS format or all of the files in the subscribers' area of website. You don't want to change your current URLs.
upvoted 10 times
...
Raphaello
Most Recent 1 year, 4 months ago
Selected Answer: B
B is the correct answer. Signed cookies are used with multiple objects, unlike signed URLs.
upvoted 1 times
...
Ernestokoro
1 year, 9 months ago
Further read https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html
upvoted 1 times
...
Ernestokoro
1 year, 9 months ago
Ans B CloudFront signed URLs and signed cookies provide the same basic functionality: they allow you to control who can access your content. If you want to serve private content through CloudFront and you're trying to decide whether to use signed URLs or signed cookies, consider the following. Use signed URLs in the following cases: You want to restrict access to individual files, for example, an installation download for your application. Your users are using a client (for example, a custom HTTP client) that doesn't support cookies. Use signed cookies in the following cases: You want to provide access to multiple restricted files, for example, all of the files for a video in HLS format or all of the files in the subscribers' area of website. You don't want to change your current URLs.
upvoted 1 times
...
addy_prepare
1 year, 10 months ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html - Cookies are recommended to use with the HLS.
upvoted 1 times
...
Green53
2 years ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html It references HLS as an example to use signed cookies.But, then a blog post: https://aws.amazon.com/blogs/networking-and-content-delivery/secure-and-cost-effective-video-streaming-using-cloudfront-signed-urls/ Suggests signed urls! It doesn't state the client, so you can't assume either way. The blog post references Lambda and API Gateway, so seems pretty complicated to configure. As such, I'd go B.
upvoted 2 times
...
freddyman
2 years, 1 month ago
Selected Answer: A
Signed cookies is a good answer if the video is being played in a web browser, but the question doesn't specify the client. A standalone client on a phone or TV may not support cookies, in which case signed URLs would be a better option. AWS have a blog post on how to use CloudFront with HLS video here https://aws.amazon.com/blogs/networking-and-content-delivery/secure-and-cost-effective-video-streaming-using-cloudfront-signed-urls/
upvoted 1 times
...
Dmosh
2 years, 2 months ago
Selected Answer: A
Use signed URLs in the following cases: Your users are using a client (for example, a custom HTTP client) that doesn't support cookies.
upvoted 1 times
...
ITGURU51
2 years, 2 months ago
As per AWS: Use signed cookies in the following cases: You want to provide access to multiple restricted files, for example, all of the files for a video in HLS format or all of the files in the subscribers' area of website. You don't want to change your current URLs.
upvoted 1 times
...
Nikhil0222
2 years, 2 months ago
A Signed URLs can be generated by using a CloudFront key pair, which consists of a private key and a corresponding public key. The private key is used by the company's web application to create a digital signature of the URL, which is then appended to the URL as a query string parameter. When a user requests the URL with the signature, CloudFront verifies the signature using the corresponding public key, and then serves the content if the signature is valid. By generating signed URLs for each request, the origin URL is not disclosed, and the content is only accessible by users who have been authenticated by the company's web application. This method is more effective than simply encrypting the CloudFront URL, as it provides a higher level of security and ensures that only authorized users can access the content. Option B is not ideal, as signed cookies are intended for use cases where cookies are required for access control.
upvoted 1 times
...
arpgaur
2 years, 5 months ago
Option A is the simplest and most effective way to protect the content as it uses the CloudFront key pair to create signed URLs which are then provided to the user to access the content. While option B also uses the CloudFront key pair, it involves additional steps such as setting the signed cookies and managing the cookie expiration which adds complexity to the implementation.
upvoted 1 times
...
Rja148393
2 years, 11 months ago
Selected Answer: B
The question is given as an example for using signed cookies https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html
upvoted 2 times
...
sapien45
2 years, 11 months ago
Use signed cookies in the following cases: You want to provide access to multiple restricted files, for example, all of the files for a video in HLS format or all of the files in the subscribers' area of website. B
upvoted 2 times
...
rootblack
3 years, 3 months ago
A is correct. as described in the document "Use signed URLs in the following cases: - Your users are using a client (for example, a custom HTTP client) that doesn't support cookies."
upvoted 1 times
...
mx677
3 years, 4 months ago
Selected Answer: B
Use signed cookies in the following cases: You want to provide access to multiple restricted files, for example, all of the files for a video in HLS format or all of the files in the subscribers' area of website.
upvoted 1 times
...
bustedd
3 years, 4 months ago
Selected Answer: B
Signed Cookies and URL have the same functionality. however cookies should be used for these scenario since its a video. link below will provide answers. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...