SAA-C03 practice question 15 of 35
A company runs its application by using Amazon EC2 instances and AWS Lambda functions. The EC2 instances run in private subnets of a VPC. The Lambda…
Full set: 972 questionsDomain Design Cost-Optimized Architectures
The solution must address two key requirements: cost optimization for all compute resources (EC2 and Lambda) and direct network access from Lambda to EC2 instances in a private subnet. A Compute Savings Plan is the most suitable cost-optimization strategy as it provides discounts on both Amazon EC2 and AWS Lambda usage, accommodating the expected increase in Lambda functions. This is more comprehensive than an EC2 Instance Savings Plan, which only covers EC2. For direct network access, the Lambda functions must be configured to connect to the VPC where the EC2 instances reside. Placing the Lambda function's network interfaces in the same private subnets as the EC2 instances is the most direct and secure method to enable this communication.
A. An EC2 Instance Savings Plan does not provide cost savings for AWS Lambda, failing to meet the requirement to minimize costs on all application resources.
B. This option is incorrect for two reasons: an EC2 Instance Savings Plan does not cover Lambda, and connecting Lambda to public subnets is an unnecessary security risk.
D. If Lambda functions remain in the default service VPC, they cannot directly access EC2 instances within the customer's private VPC, violating a core networking requirement.
1. AWS Savings Plans User Guide: Under "Overview of Savings Plans
" the documentation specifies the coverage for different plans. It states
"Compute Savings Plans... automatically apply to EC2 instance usage... These plans also apply to Fargate and Lambda usage." In contrast
"EC2 Instance Savings Plans... only apply to EC2 instance usage." This supports the choice of a Compute Savings Plan to cover both resource types.
Source: AWS Savings Plans User Guide
"What are Savings Plans?"
"Savings Plans types" section.
2. AWS Lambda Developer Guide: The guide explains how to grant Lambda functions access to resources within a VPC. It states
"You can configure a function to connect to private subnets in a virtual private cloud (VPC) in your AWS account. Use Amazon Virtual Private Cloud (Amazon VPC) to create a private network for resources such as databases
cache instances
or internal services." This confirms that connecting Lambda to the VPC's subnets is the correct approach for network access.
Source: AWS Lambda Developer Guide
"Networking and VPC"
"Configuring VPC access for a Lambda function" section.
Keep practicing
Take the free SAA-C03 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SAA-C03 practice questions
- Question 1A solutions architect is designing the architecture for a two-tier web application. The w…
- Question 2A company has a VPC with multiple private subnets that host multiple applications. The ap…
- Question 3A company has established a new AWS account. The account is newly provisioned and no chan…
- Question 4A company wants a flexible compute solution that includes Amazon EC2 instances and AWS Fa…
- Question 5A company deployed a three-tier web application in a single Availability Zone in the us-e…
- Question 6A company serves its website by using an Auto Scaling group of Amazon EC2 instances in a …
