An administration team needs to secure a collection of premium media files delivered via an Amazon CloudFront distribution. The media files are stored in a private Amazon S3 bucket and encrypted using an AWS KMS customer managed key. The security requirements state that the S3 bucket must not be publicly accessible, and access to the files must be restricted to authorized subscribers. Additionally, subscribers must be able to view multiple files in a single session without changing the application's current URL paths.
Which combination of configurations will meet these requirements? (Select TWO.)
- Configure the CloudFront distribution to use signed cookies, and update the application to set these cookies in the user's browser.Cevap
- Configure the CloudFront distribution to use Origin Access Control (OAC), and update both the S3 bucket policy and the KMS key policy to allow the CloudFront service principal access.Cevap
- CConfigure the CloudFront distribution to use Origin Access Identity (OAI), and update both the S3 bucket policy and the KMS key policy to allow the OAI access.
- DConfigure the CloudFront distribution to use signed URLs, and configure the application to generate a unique signed URL for every media file request.
- EConfigure the CloudFront origin settings to assume an IAM role with S3 and KMS permissions, and attach a trust policy allowing CloudFront to assume the role.
Cevap
The correct configurations are to use signed cookies to restrict access to multiple files without altering URLs, and to use Origin Access Control (OAC) while updating both the S3 bucket policy and the KMS key policy to allow access to the CloudFront service principal.
To secure premium files stored in S3 and encrypted with SSE-KMS while maintaining the same URL paths for multiple files, the SysOps administrator must configure CloudFront signed cookies and Origin Access Control (OAC). Signed cookies allow users to access multiple premium files in a single session without modifying individual resource URLs, which would be required if signed URLs were used. Furthermore, OAC is the only origin access method that supports S3 buckets encrypted with custom KMS keys (SSE-KMS). The KMS key policy must be updated to grant the CloudFront service principal (cloudfront.amazonaws.com) permission to decrypt the objects using the key.
Adım Adım Çözüm
Anahtar Kavram
CloudFront Private Content Security and KMS-Encrypted Origins