Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Amazon Web Services AWS Certified Developer - Associate DVA-C02 Question # 169 Topic 17 Discussion

Amazon Web Services AWS Certified Developer - Associate DVA-C02 Question # 169 Topic 17 Discussion

DVA-C02 Exam Topic 17 Question 169 Discussion:
Question #: 169
Topic #: 17

A developer is building an API that uses an Amazon CloudFront distribution to forward requests to an AWS Lambda function URL. The developer must ensure that the function URL can be accessed only through the CloudFront distribution and not directly.

Which solution will meet this requirement?


A.

Create a resource-based policy for the CloudFront distribution. Configure the policy to allow access to the function URL.


B.

Configure a resource-based policy for the Lambda function to allow only the CloudFront distribution to access the function URL. Configure the distribution to use an origin access control (OAC) for requests to the function URL.


C.

Create an IAM role that has permissions to invoke the function URL. Configure a service role that has a CloudFront trust policy and permissions to make requests to the function URL.


D.

Configure a resource-based policy for the Lambda function to allow only the CloudFront distribution ' s IP address range to access the function.


Get Premium DVA-C02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.