In Cloudfront what is the Origin Protocol policy that must be chosen to ensure that the communication with the origin is done either via http or https.
Choose an answer from the options below.
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - C.
Its clearly given in the aws documentation that the Origin Protocol Policy should be set accordingly.
For more information on Cloudfront CDN please see the below link:
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.htmlThe Origin Protocol Policy in Amazon CloudFront determines the protocol that CloudFront uses when communicating with the origin server. There are three options available:
A. HTTP: With this option, CloudFront will always use HTTP when communicating with the origin server, regardless of whether the viewer requested the content over HTTP or HTTPS. This option does not provide any encryption for the data being transmitted between CloudFront and the origin server.
B. HTTPS: With this option, CloudFront will always use HTTPS when communicating with the origin server, regardless of whether the viewer requested the content over HTTP or HTTPS. This option provides encryption for the data being transmitted between CloudFront and the origin server.
C. Match Viewer: With this option, CloudFront will use the same protocol as the viewer requested when communicating with the origin server. If the viewer requested the content over HTTP, CloudFront will use HTTP when communicating with the origin server. If the viewer requested the content over HTTPS, CloudFront will use HTTPS when communicating with the origin server. This option provides encryption for the data being transmitted between CloudFront and the origin server when the viewer requested the content over HTTPS.
D. None of the above: This option is not available in CloudFront and is not a valid answer.
Therefore, the correct answer to ensure that communication with the origin is done either via HTTP or HTTPS is option C: Match Viewer. With this option, CloudFront will use the same protocol as the viewer requested when communicating with the origin server, providing encryption for the data being transmitted between CloudFront and the origin server when the viewer requested the content over HTTPS.