Examtopics

AWS Certified Security - Specialty
  • Topic 1 Question 203

    A company is using an Amazon CloudFront distribution to deliver content from two origins. One origin is a dynamic application that is hosted on Amazon EC2 instances. The other origin is an Amazon S3 bucket for static assets.

    A security analysis shows that HTTPS responses from the application do not comply with a security requirement to provide an X-Frame-Options HTTP header to prevent frame-related cross-site scripting attacks. A security engineer must make the full stack compliant by adding the missing HTTP header to the responses.

    Which solution will meet these requirements?

    • Create a Lambda@Edge function. Include code to add the X-Frame-Options header to the response. Configure the function to run in response to the CloudFront origin response event.

    • Create a Lambda@Edge function. Include code to add the X-Frame-Options header to the response. Configure the function to run in response to the CloudFront viewer request event.

    • Update the CloudFront distribution by adding X-Frame-Options to custom headers in the origin settings.

    • Customize the EC2 hosted application to add the X-Frame-Options header to the responses that are returned to CloudFront.


    シャッフルモード