SAP-C02 Question 348
Select 2Your organization has deployed a multi-tier web application on AWS. The application consists of an Application Load Balancer (ALB) in front, several EC2 instances in an Auto Scaling group for the application layer, and an Amazon RDS database for the backend layer. The company wants to minimize data transfer costs while ensuring high availability. Which of the following strategies should you recommend? (Select TWO.)
- A
Enable cross-zone load balancing on the Application Load Balancer.
- B
Use an Amazon CloudFront distribution in front of the Application Load Balancer.
- C
Configure the EC2 instances to communicate with the RDS database using private IP addresses.
- D
Move the RDS database to a different AWS Region closer to most users.
- E
Enable AWS Direct Connect for all traffic between the application and users.
Show answer and explanation
Correct answers: A, C
Explanation
To minimize data transfer costs, enabling cross-zone load balancing reduces inter-AZ charges, and ensuring communication between EC2 instances and RDS uses private IPs avoids unnecessary public data transfer costs. Other options either increase costs or address unrelated use cases.
- A. Correct.
Enabling cross-zone load balancing on the ALB reduces inter-AZ data transfer charges when the load balancer distributes traffic across multiple AZs. This can help lower costs.
- B. Incorrect.
Using CloudFront can reduce costs by caching content and reducing the number of requests that reach the ALB. However, CloudFront does not directly minimize data transfer costs between the ALB and backend services.
- C. Correct.
Configuring EC2 instances to communicate with the RDS database using private IP addresses avoids unnecessary public internet data transfer charges and ensures traffic stays within the same VPC.
- D. Incorrect.
Moving the RDS database to another AWS Region would introduce inter-region data transfer costs, which are typically higher than intra-region costs, and is not a cost-effective solution.
- E. Incorrect.
AWS Direct Connect is primarily used for secure and low-latency connectivity between on-premises and AWS resources, not for minimizing costs within AWS resources.