Multiple Choice
A company's web application will be migrated to AWS. The application is designed so that there is no server-side code required. As part of the migration, the company would like to improve the security of the application by adding HTTP response headers, following the Open Web Application Security Project (OWASP) secure headers recommendations. How can this solution be implemented to meet the security requirements using best practices?
A) Use an Amazon S3 bucket configured for website hosting, then set up server access logging on the S3 bucket to track user activity. Then configure the static website hosting and execute a scheduled AWS Lambda function to verify, and if missing, add security headers to the metadata.
B) Use an Amazon S3 bucket configured for website hosting, then set up server access logging on the S3 bucket to track user activity. Configure the static website hosting to return the required security headers.
C) Use an Amazon S3 bucket configured for website hosting. Create an Amazon CloudFront distribution that refers to this S3 bucket, with the origin response event set to trigger a Lambda@Edge Node.js function to add in the security headers.
D) Use an Amazon S3 bucket configured for website hosting. Create an Amazon CloudFront distribution that refers to this S3 bucket. Set "Cache Based on Selected Request Headers" to "Whitelist," and add the security headers into the whitelist.
Correct Answer:

Verified
Correct Answer:
Verified
Q497: You are creating a new API for
Q498: Some of your EC2 instances are configured
Q499: A DevOps Engineer must improve the monitoring
Q500: You need your CI to build AMIs
Q501: A DevOps Engineer wants to prevent Developers
Q503: A company is using AWS CodeDeploy to
Q504: When building a Docker image, you are
Q505: An ecommerce company is receiving reports that
Q506: What is the main difference between calling
Q507: A DevOps Engineer has been asked to