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 223 discussion

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

A city is implementing an election results reporting website that will use Amazon CloudFront. The website runs on a fleet of Amazon EC2 instances behind an
Application Load Balancer (ALB) in an Auto Scaling group. Election results are updated hourly and are stored as .pdf files in an Amazon S3 bucket. A security engineer needs to ensure that all external access to the website goes through CloudFront.
Which solution meets these requirements?

  • A. Create an IAM role that allows CloudFront to access the specific S3 bucket. Modify the S3 bucket policy to allow only the new IAM role to access its contents. Create an interface VPC endpoint for CloudFront to securely communicate with the ALB.
  • B. Create an IAM role that allows CloudFront to access the specific S3 bucket. Modify the S3 bucket policy to allow only the new IAM role to access its contents. Associate the ALB with a security group that allows only incoming traffic from the CloudFront service to communicate with the ALB.
  • C. Create an origin access identity (OAI) in CloudFront. Modify the S3 bucket policy to allow only the new OAI to access the bucket contents. Create an interface VPC endpoint for CloudFront to securely communicate with the ALB.
  • D. Create an origin access identity (OAI) in CloudFront. Modify the S3 bucket policy to allow only the new OAI to access the bucket contents. Associate the ALB with a security group that allows only incoming traffic from the CloudFront service to communicate with the ALB.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
[Removed]
Highly Voted 3 years, 9 months ago
D for me "Whitelist Amazon CloudFront IPs on your custom origin’s firewall. A custom origin is an HTTP(S) endpoint, for example, an HTTP server on an Amazon EC2 instance or an HTTP server that you manage p" : https://aws.amazon.com/blogs/networking-and-content-delivery/serving-private-content-using-amazon-cloudfront-aws-lambdaedge/
upvoted 21 times
...
DayQuil
Highly Voted 3 years, 9 months ago
D. There is NO interface endpoint for CloudFront. This makes D the only valid answer, even if it is not the most efficient solution.
upvoted 15 times
...
Raphaello
Most Recent 1 year, 4 months ago
Selected Answer: D
D is the correct answer CF <OAI/OAC>>>S3 CF <prefix list>>><SG of ALB>
upvoted 1 times
...
samCarson
2 years ago
Selected Answer: D
Creating an origin access identity (OAI) in CloudFront allows you to restrict access to the S3 bucket contents only through CloudFront. Modifying the S3 bucket policy to allow only the new OAI to access the bucket ensures that direct access to the S3 bucket is blocked. Associating the ALB with a security group that allows incoming traffic only from the CloudFront service ensures that all external access to the website goes through CloudFront and provides an additional layer of security.
upvoted 1 times
...
pal40sg
2 years, 1 month ago
Selected Answer: D
Create an origin access identity (OAI) in CloudFront: An OAI is a special CloudFront user that can be used to control access to the content in an S3 bucket. By creating an OAI, you can ensure that only CloudFront has permission to access the election result .pdf files stored in the S3 bucket. Modify the S3 bucket policy: Update the S3 bucket policy to allow access only to the OAI created in the previous step. This ensures that the .pdf files in the S3 bucket can only be accessed by CloudFront. Associate the ALB with a security group: Configure a security group for the ALB that allows incoming traffic only from the CloudFront service. This restricts direct access to the ALB and ensures that all external traffic is routed through CloudFront.
upvoted 1 times
...
sete213
2 years, 2 months ago
https://docs.aws.amazon.com/es_es/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html
upvoted 1 times
...
dan80
2 years, 3 months ago
Selected Answer: D
AWS privatelink endpoints serve 135 AWS services, CloudFront is not one of them yet. D is correct https://docs.aws.amazon.com/vpc/latest/privatelink/aws-services-privatelink-support.html
upvoted 2 times
...
boooliyooo
2 years, 5 months ago
Selected Answer: C
The correct answer is C. This solution meets the requirements of ensuring that all external access to the website goes through CloudFront. By creating an origin access identity (OAI) in CloudFront, you can ensure that only CloudFront is able to access the contents of the S3 bucket. Modifying the S3 bucket policy to allow only the new OAI to access the bucket contents will further restrict access to the contents of the bucket. Creating an interface VPC endpoint for CloudFront to securely communicate with the ALB will allow CloudFront to access the EC2 instances and the ALB within the VPC. Option D only mentions creating an origin access identity but it does not specify how the traffic will be secured and restricted to CloudFront Only.
upvoted 1 times
Ell89
2 years, 4 months ago
the whole point of an OAI is that IT DOES restrict the bucket to using CloudFront only.
upvoted 1 times
...
...
robertohyena
2 years, 6 months ago
Selected Answer: D
Source: https://aws.amazon.com/blogs/networking-and-content-delivery/limit-access-to-your-origins-using-the-aws-managed-prefix-list-for-amazon-cloudfront/
upvoted 1 times
...
hubekpeter
2 years, 7 months ago
Selected Answer: D
There's AWS managed prefix list for CloudFront that can be used in security group. This helps a lot, so you don't need to know exact CIDRs or IPs.
upvoted 1 times
...
DmitriIBM
2 years, 8 months ago
D because: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/restrict-access-to-load-balancer.html Note: New OAC feature added Aug 2022 will change this question soon, i think.
upvoted 1 times
DmitriIBM
2 years, 8 months ago
and: https://www.google.com/search?q=interface+vpc+endpoint&oq=interface+VPC+endpoint&aqs=edge.0.0i512j69i59j0i512l4j69i60l3.11135j0j4&sourceid=chrome&ie=UTF-8#kpvalbx=_C8haY6G9EvKpqtsPqqWliAs_37
upvoted 1 times
...
...
dcasabona
2 years, 11 months ago
Selected Answer: D
Option D.
upvoted 1 times
...
lotfi50
3 years ago
Selected Answer: D
D is the good answer
upvoted 1 times
...
lotfi50
3 years, 1 month ago
D is the good answer
upvoted 1 times
...
vpupkin
3 years, 8 months ago
D If your origin is an Elastic Load Balancing load balancer or an Amazon EC2 instance, you can use VPC security groups to allow only CloudFront to access your applications. You can accomplish this by creating a security group that only allows the specific IP ranges of CloudFront. https://aws.amazon.com/blogs/security/how-to-automatically-update-your-security-groups-for-amazon-cloudfront-and-aws-waf-by-using-aws-lambda/
upvoted 3 times
...
sanjaym
3 years, 8 months ago
D for sure.
upvoted 2 times
...
weurseuk
3 years, 8 months ago
D right, we are tested, we take the exam (hahaha), just try to see how your alb communicate with cloudfront ???
upvoted 2 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 ...