QuestionQ29

VerifiedNetwork Design

A company runs a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). The ALB serves as the origin for an Amazon CloudFront distribution. The company wants to implement a custom authentication system that provides a token to authenticated customers.

Before delivering content, the web application must ensure that GET/POST requests originate from authenticated customers. A network engineer must design a solution that enables the web application to identify authorized customers.

What is the MOST operationally efficient solution that satisfies these requirements?

Explanation

Lambda@Edge can inspect an authorization token in a CloudFront request, including a request body when the Include Body option is enabled, and add a custom request header before CloudFront forwards the request to the ALB origin. The application can trust that header to identify authenticated requests, while authentication processing occurs at the edge without operating additional inspection infrastructure.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!