
Answer-first summary for fast verification
Answer: Adopt a Compute Savings Plan, optimize Lambda function parameters, and ensure Lambda connects to the private subnet housing EC2 instances.
The correct answer is C. A Compute Savings Plan is more flexible than an EC2 Instance Savings Plan because it covers both EC2 and Lambda usage, allowing the company to save on all application resources as the number of Lambda functions increases. Connecting the Lambda functions to the private subnet that contains the EC2 instances ensures low network latency, meeting the company's performance goals. Therefore, Option C maximizes savings and optimizes network performance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company operates an application using Amazon EC2 and AWS Lambda within a VPC configured with both public and private subnets. EC2 instances are placed in a private subnet, necessitating direct network access by Lambda functions for application operation. The company plans for a 1-year application runtime with an expanding Lambda function count. They seek a solution to optimize costs and reduce latency. Which approach should be adopted?
A
Utilize an EC2 Instance Savings Plan, refine Lambda function performance metrics, and establish a private subnet connection for Lambda.
B
Employ an EC2 Instance Savings Plan, enhance Lambda function efficiency, and use a public subnet within the same VPC for Lambda connectivity.
C
Adopt a Compute Savings Plan, optimize Lambda function parameters, and ensure Lambda connects to the private subnet housing EC2 instances.
D
Select a Compute Savings Plan, streamline Lambda function settings, and maintain Lambda within the native Lambda service VPC.
No comments yet.