Using Content Delivery Network (CDN), an administrator would like to serve varying types of content based on the viewer's browser cookies.
Which is the most appropriate serverless technique that can be used to achieve this?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer - B.
AWS Lambda@Edge is a serverless service that makes it possible to run event-triggered functions on Edge Locations within the AWS Content Delivery Network.
Using AWS CloudFront, an administrator can introduce decision-making and compute processing closer to the viewer's location.
Thereby it improves on their browsing experience.
https://aws.amazon.com/lambda/edge/Option A is INCORRECT because AWS CodeCommit is inappropriate in addressing the scenario.
It is a service that allows for the management of software development versions and software development assets.
These include binary files, documents and source code.
Option C is INCORRECT because AWS CodeStar is a service used to manage software development projects.
It is not the appropriate Option for the scenario.
CodeStar project makes it possible to develop, build and deploy applications.
Option D is INCORRECT because it is not the best solution though it can be used in the scenario to write, run and deploy code.
It is an integrated development environment (IDE) that can accommodate various runtimes.
Since the Lambda@Edge is best suited to meet the requirements of the scenario, this makes this Option incorrect.
The most appropriate serverless technique to serve varying types of content based on viewer's browser cookies using Content Delivery Network (CDN) in AWS is AWS Lambda@Edge (Option B).
AWS Lambda@Edge is a serverless compute service that allows you to run Lambda functions to modify content that's served through CloudFront, AWS's CDN service. With Lambda@Edge, you can modify requests and responses to customize content delivery based on the client's needs. This service allows you to execute custom code without deploying and managing servers, as Lambda@Edge automatically scales and provisions resources as needed.
Using Lambda@Edge, an administrator can write a Lambda function to detect the presence of a specific cookie in a viewer's request, and use the cookie to determine what content to serve in response. Lambda@Edge can modify the response header to serve the appropriate content type or redirect the viewer to a different location based on the content they're requesting.
AWS CodeCommit (Option A) is a source control service that allows teams to collaborate on code changes. It is not used to serve content based on viewer's browser cookies.
AWS CodeStar (Option C) is a development platform that allows you to quickly develop, build, and deploy applications on AWS. It is not used to serve content based on viewer's browser cookies.
AWS Cloud9 (Option D) is an integrated development environment (IDE) that allows developers to write, run, and debug code in the cloud. It is not used to serve content based on viewer's browser cookies.