CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 122: AWS Certified Developer Associate(Old)

A developer has created a web API that uses Amazon Elastic Container Service (Amazon ECS) and an Application Load Balancer (ALB). An Amazon CloudFront distribution uses the API as an origin for web clients. The application has received millions of requests with a JSON Web Token (JWT) that is not valid in the authoriza…

Nội dung câu hỏi

A developer has created a web API that uses Amazon Elastic Container Service (Amazon ECS) and an Application Load Balancer (ALB). An Amazon CloudFront distribution uses the API as an origin for web clients. The application has received millions of requests with a JSON Web Token (JWT) that is not valid in the authorization header. The developer has scaled out the application to handle the unauthenticated requests. What should the developer do to reduce the number of unauthenticated requests to the API?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Add a request routing rule to the ALB to return a 401 status code if the authorization header is missing.
  2. B. Add a container to the ECS task definition to validate JWTs Set the new container as a dependency of the application container.
  3. C. Create a CloudFront function for the distribution Use the crypto module in the function to validate the JWT. — đáp án hiện tại
  4. D. Add a custom authorizer for AWS Lambda to the CloudFront distribution to validate the JWT.

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề