SAP-C02 · Question #265
An events company runs a ticketing platform on AWS. The company's customers configure and schedule their events on the platform. The events result in large increases of traffic to the platform. The…
The correct answer is A. Create a gateway VPC endpoint for the S3 bucket. E. Replace the predictive scaling policy with scheduled scaling policies for the scheduled events. To optimize the cost of the platform, the company should create a gateway VPC endpoint for the S3 bucket to eliminate NAT Gateway charges for S3 traffic and replace the predictive scaling policy with scheduled scaling for known event times.
Question
An events company runs a ticketing platform on AWS. The company's customers configure and schedule their events on the platform. The events result in large increases of traffic to the platform. The company knows the date and time of each customer's events. The company runs the platform on an Amazon Elastic Container Service (Amazon ECS) cluster. The ECS cluster consists of Amazon EC2 On-Demand Instances that are in an Auto Scaling group. The Auto Scaling group uses a predictive scaling policy. The ECS cluster makes frequent requests to an Amazon S3 bucket to download ticket assets. The ECS cluster and the S3 bucket are in the same AWS Region and the same AWS account. Traffic between the ECS cluster and the S3 bucket flows across a NAT gateway. The company needs to optimize the cost of the platform without decreasing the platform's availability. Which combination of steps will meet these requirements? (Choose two.)
Options
- ACreate a gateway VPC endpoint for the S3 bucket.
- BAdd another ECS capacity provider that uses an Auto Scaling group of Spot Instances. Configure
- CCreate On-Demand Capacity Reservations for the applicable instance type for the time period of
- DEnable S3 Transfer Acceleration on the S3 bucket.
- EReplace the predictive scaling policy with scheduled scaling policies for the scheduled events.
How the community answered
(25 responses)- A64% (16)
- B4% (1)
- C20% (5)
- D12% (3)
Why each option
To optimize the cost of the platform, the company should create a gateway VPC endpoint for the S3 bucket to eliminate NAT Gateway charges for S3 traffic and replace the predictive scaling policy with scheduled scaling for known event times.
Creating a gateway VPC endpoint for S3 allows traffic between the ECS cluster and the S3 bucket to flow privately within the AWS network, bypassing the NAT Gateway and eliminating associated data processing and data transfer costs.
Adding Spot Instances could reduce EC2 costs, but it doesn't address the specific NAT Gateway cost for S3 traffic, nor does it necessarily provide more precise scaling for known events than scheduled scaling.
On-Demand Capacity Reservations guarantee capacity but typically incur the same or higher cost than standard On-Demand instances, which goes against the goal of cost optimization.
S3 Transfer Acceleration is used to speed up data transfers to S3 over long distances, which is not applicable here as the ECS cluster and S3 bucket are in the same AWS Region.
Since the company knows the exact date and time of traffic increases due to events, replacing predictive scaling with scheduled scaling policies enables precise provisioning of EC2 instances only when needed, avoiding unnecessary instance runtime and cost compared to a predictive model.
Concept tested: VPC Endpoint cost optimization, Auto Scaling policies for known demand
Source: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-s3.html
Community Discussion
No community discussion yet for this question.