exam questions

Exam ANS-C00 All Questions

View all questions & answers for the ANS-C00 exam

Exam ANS-C00 topic 1 question 55 discussion

Exam question from Amazon's ANS-C00
Question #: 55
Topic #: 1
[All ANS-C00 Questions]

A Network Engineer is designing a new system on AWS that will take advantage of Amazon CloudFront for both content caching and for protecting the underlying origin. There is concern that an external agency might be able to access the IP addresses for the application's origin and then attack the origin despite it being served by CloudFront. Which of the following solutions provides the strongest level of protection to the origin?

  • A. Use an IP whitelist rule in AWS WAF within CloudFront to ensure that only known-client IPs are able to access the application.
  • B. Configure CloudFront to use a custom header and configure an AWS WAF rule on the origin's Application Load Balancer to accept only traffic that contains that header.
  • C. Configure an AWS Lambda@Edge function to validate that the traffic to the Application Load Balancer originates from CloudFront.
  • D. Attach an origin access identity to the CloudFront origin that allows traffic to the origin that originates from only CloudFront.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
PANDU
Highly Voted 3 years, 8 months ago
Its B , Origin Access identity is only valid for s3 origin not ec2 or ALB
upvoted 18 times
ohcan
3 years, 8 months ago
but the exposed case says the want to protect the "origing" not specifying they are using ALB or EC2, so the default option would be D, right?
upvoted 1 times
jason2009
3 years, 6 months ago
Based on shared-responsibilities principle, S3 is completely managed by AWS and it's none of your concern that there is a DDOS attack on AWS origins. Also besides HA settings Amazon utilize for S3, there is a technique called shuffle sharding that shields S3 for DDOS. Regardless, you don't need to worry about origins you have no control.
upvoted 1 times
StelSen
3 years, 6 months ago
S3 is a managed service by AWS. Not completely managed by AWS.They have options like Bucket policy, KMS, Block Public access etc., (Its the responsibility of Customer under Shared responsibility model). I can't simply ignore DDOS attack when my data outgoing is getting charged. Also AWS has OAI in CF to ensure S3 can access only for CF.
upvoted 1 times
...
...
...
Rim007
3 years, 7 months ago
I agree with you: Answer should be : B
upvoted 3 times
...
sapien45
3 years, 2 months ago
I was rooting for D, after reading the blog switched to B https://aws.amazon.com/blogs/security/how-to-enhance-amazon-cloudfront-origin-security-with-aws-waf-and-aws-secrets-manager/
upvoted 1 times
...
...
dpvnme
Highly Voted 3 years, 8 months ago
DDDDDDDDDDD
upvoted 11 times
...
clooudy
Most Recent 3 years ago
Selected Answer: B
Answer B https://aws.amazon.com/blogs/security/how-to-enhance-amazon-cloudfront-origin-security-with-aws-waf-and-aws-secrets-manager/
upvoted 1 times
...
clooudy
3 years ago
Selected Answer: B
Answer B https://aws.amazon.com/blogs/security/how-to-enhance-amazon-cloudfront-origin-security-with-aws-waf-and-aws-secrets-manager
upvoted 1 times
...
FunkyB
3 years, 4 months ago
I am voting for B, How to enhance Amazon CloudFront origin security with AWS WAF and AWS Secrets Manager, https://aws.amazon.com/blogs/security/how-to-enhance-amazon-cloudfront-origin-security-with-aws-waf-and-aws-secrets-manager/
upvoted 2 times
...
StelSen
3 years, 6 months ago
Option-B is correct. Because of below: "There is concern that an external agency might be able to access the IP addresses for the application's origin " - This reveals that Origin is EC2 instance (which has IP Address). Not S3. So ALB with WAF will protect Origin and using CF with Custom header will allow CF to safely interact with ALB.
upvoted 2 times
...
Huy
3 years, 6 months ago
Among these answers B is only valid choice. Regarding security, more stronger protection is scheduling a Lambda function to update Security Group of the origin. The Lambda function can get Edge Location IPs and update the SG. (Of-course with limited edge locations only)
upvoted 1 times
...
Ishu_awsguy
3 years, 6 months ago
B is the answer. Since OIA is only for S3
upvoted 2 times
...
Santya
3 years, 6 months ago
Answer is B, OAI is for S3 endpoint.. Guys just stop guessing answers and if you comment with your answers provide proof for the answer
upvoted 2 times
...
jason2009
3 years, 7 months ago
D??? Seriously people. Do you even know what is an OAI?
upvoted 2 times
clooudy
3 years ago
what are you trying to say the answer was
upvoted 1 times
...
...
jonclem
3 years, 7 months ago
I believe the correct response is D. I'm intrigued with the some of these responses though, why would you use an ALB with CloudFront??
upvoted 2 times
...
2aldous
3 years, 7 months ago
Answer is B. D. Is valid to S3 The questions say "ip address"
upvoted 3 times
...
sensor
3 years, 7 months ago
I dont see what eliminate C option? IMO both B and C are valid options. Acc to official study guide B custom header usage in past is more of 'static nature' whereas lambda@edge offers programatic way to populate values in custom header dynamically 'making it even more difficult to subvert your origin access enforcement mechanisms' The question requires 'strongest level of protection' Correct answer: C
upvoted 1 times
cardiryh
3 years, 7 months ago
The question say "There is concern that an external agency might be able to access the IP addresses for the application's origin and then attack the origin " Since the attack is on the IP of the origin, CF is bypassed. for Answer B, the WAF ensures that only CF is communicating with the origin. I go with B
upvoted 1 times
...
...
kvirk
3 years, 7 months ago
After reading the question again, i think B is the correct answer. Keyword is "IP addresses for the applications origin"
upvoted 2 times
...
kvirk
3 years, 7 months ago
I think the answer is D
upvoted 2 times
...
rootx
3 years, 7 months ago
question said "IP addresses for the applications origin" so we can assume it's not talking about s3 and then D can't be an option since OAI concerns only S3 as origin Valid option is B
upvoted 4 times
jpvdham
3 years, 7 months ago
Agree, OIA is S3 only
upvoted 1 times
...
...
Averageguy
3 years, 7 months ago
https://aws.amazon.com/vi/about-aws/whats-new/2016/01/amazon-cloudfront-adds-new-origin-security-features/ Add or modify request headers forwarded from CloudFront to your origin (launched Dec 28th): Now you can configure CloudFront to add custom headers or override the value of existing request headers when CloudFront forwards requests to your origin. You can use these headers to help validate that requests made to your origin were sent from CloudFront (shared secret) and configure your origin to only allow requests that contain the custom header values that you specify. This feature also helps with setting up Cross-Origin Request Sharing (CORS) for your CloudFront distribution - you can configure CloudFront to always add custom headers to your origin to accommodate viewers that don't automatically include those headers in requests. It also allows you to disable varying on the Origin header, which improves your cache hit ratio, yet forward the appropriate headers so that your origin can respond with the CORS header. For more information, see Forwarding Custom Headers to Your Origin in the Amazon CloudFront Developer Guide. Correct Answer is B !
upvoted 8 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago