exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 145 discussion

A company hosts a website analytics application on a single Amazon EC2 On-Demand Instance. The analytics software is written in PHP and uses a MySQL database. The analytics software, the web server that provides PHP, and the database server are all hosted on the EC2 instance. The application is showing signs of performance degradation during busy times and is presenting 5xx errors. The company needs to make the application scale seamlessly.
Which solution will meet these requirements MOST cost-effectively?

  • A. Migrate the database to an Amazon RDS for MySQL DB instance. Create an AMI of the web application. Use the AMI to launch a second EC2 On-Demand Instance. Use an Application Load Balancer to distribute the load to each EC2 instance.
  • B. Migrate the database to an Amazon RDS for MySQL DB instance. Create an AMI of the web application. Use the AMI to launch a second EC2 On-Demand Instance. Use Amazon Route 53 weighted routing to distribute the load across the two EC2 instances.
  • C. Migrate the database to an Amazon Aurora MySQL DB instance. Create an AWS Lambda function to stop the EC2 instance and change the instance type. Create an Amazon CloudWatch alarm to invoke the Lambda function when CPU utilization surpasses 75%.
  • D. Migrate the database to an Amazon Aurora MySQL DB instance. Create an AMI of the web application. Apply the AMI to a launch template. Create an Auto Scaling group with the launch template Configure the launch template to use a Spot Fleet. Attach an Application Load Balancer to the Auto Scaling group.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Konb
Highly Voted 1 year, 7 months ago
Selected Answer: D
I was tempted to pick A but then I realized there are two key requirements: - scale seamlessly - cost-effectively None of A-C give seamless scalability. A and B are about adding second instance (which I assume does not match to "scale seamlessly"). C is about changing instance type. Therefore D is only workable solution to the scalability requirement
upvoted 21 times
pbpally
1 year, 7 months ago
Yup. Got me too. I picked A, saw D, and then reread the "scale seamlessly" part. D is correct.
upvoted 6 times
...
NayeraB
10 months, 1 week ago
But wouldn't RDS scale as well? Also Spot instances seems like a bit of a risky decision
upvoted 2 times
...
...
genny
Highly Voted 1 year, 8 months ago
Selected Answer: A
I wouldn't run my website on spot instances. Spot instances might be terminated at any time, and since I need to run analytics application it's not an option for me. And using route 53 for load balancing of 2 instances is an overkill. I go with A.
upvoted 11 times
AZ_Master
1 year, 1 month ago
It is spot fleet - not spot instances. They can include On-Demand instances and can also maintain the target capacity automatically. ---- A Spot Fleet is a set of Spot Instances and optionally On-Demand Instances that is launched based on criteria that you specify. The Spot Fleet selects the Spot capacity pools that meet your needs and launches Spot Instances to meet the target capacity for the fleet. By default, Spot Fleets are set to maintain target capacity by launching replacement instances after Spot Instances in the fleet are terminated. Ref: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html
upvoted 13 times
eb7be10
8 months ago
While Spot Fleet is temporary, the Auto-Scaling Group builds it back again and again. D is the best answer.
upvoted 2 times
...
...
...
PaulGa
Most Recent 2 months, 1 week ago
Selected Answer: D
Ans D - Like Konb (1 year, 5 months ago) I almost picked A, but for the same reasons of seamless scaling it has to be D
upvoted 2 times
...
carlossarmient
2 months, 4 weeks ago
D aswer is forcing you to use the new "feature" of aws. if you have a performance issue with the ddbb, front and back all in on your ec2 intances. the best way to solve that issue is move de ddbb to RDS and create a new ec2 intances. BUT we need to sell the aws unique service.
upvoted 2 times
...
PaulGa
3 months ago
Selected Answer: D
Ans D - I was tempted with AAns D - I was tempted with A but then thought that's too obvious and scaling might be an issue... so looking at Spot Fleets "Fleets provide the following features and benefits, enabling you to maximize cost savings and optimize availability and performance when running applications on multiple EC2 instances" it has to be Ans D. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Fleets.html
upvoted 2 times
...
bignatov
3 months, 3 weeks ago
Selected Answer: A
Option A is the best balance between cost-effectiveness and scalability. It allows the application to scale horizontally with minimal changes while ensuring the database is managed and can scale independently, reducing the risk of performance degradation during peak times.
upvoted 1 times
bignatov
3 months, 3 weeks ago
i think it is not D, because amazon aurora is much expensive and also the spot instances can be interrupted, even they are most cost effective in the requirements is not mentioned that the workload is stateless and can be interrupted.
upvoted 1 times
...
...
maryam_sh
4 months, 2 weeks ago
Selected Answer: A
A, not D > Using Spot Instances with an Auto Scaling group adds complexity and risk to the infrastructure
upvoted 1 times
MatAlves
3 months, 3 weeks ago
It is not "spot instances", but "spot fleet". A Spot Fleet is a set of Spot Instances and optionally On-Demand Instances that is launched based on criteria that you specify. The Spot Fleet selects the Spot capacity pools that meet your needs and launches Spot Instances to meet the target capacity for the fleet. By default, Spot Fleets are set to maintain target capacity by launching replacement instances after Spot Instances in the fleet are terminated. Ref: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html
upvoted 1 times
...
...
jaradat02
4 months, 4 weeks ago
Selected Answer: D
I don't think D is the optimal solution. We certainly can find other solutions that are more cost effective and fulfill the same requirements, but among the provided options, I think D is the most reasonable.
upvoted 2 times
...
gt520490aws
5 months, 4 weeks ago
PHP....
upvoted 1 times
...
awsgeek75
11 months, 1 week ago
Selected Answer: D
I'll pick D because it sounds fun :)
upvoted 4 times
...
pentium75
12 months ago
Selected Answer: D
"Scale seamlessly", none of A-C include scaling at all.
upvoted 2 times
...
xdkonorek2
1 year, 1 month ago
Selected Answer: D
spot instance receives 2 minutes interruption notice, it should be enough for requests to finish, it's quite unusal for app to run longer requests only option D allow for seamless scaling with autoscaling group
upvoted 2 times
...
BrijMohan08
1 year, 3 months ago
Selected Answer: B
Option B is a cost-effective choice that combines the benefits of database migration to RDS, horizontal scaling with EC2 instances, and control over traffic distribution with Route 53 weighted routing, making it the best solution for the given requirements.
upvoted 2 times
pentium75
12 months ago
But there's no scaling at all in B.
upvoted 4 times
...
...
TariqKipkemei
1 year, 3 months ago
Selected Answer: D
Scale seamlessly = Autoscaling group, Amazon Aurora MySQL DB instance Cost effective = Spot Fleet
upvoted 5 times
...
Guru4Cloud
1 year, 4 months ago
Selected Answer: D
The key reasons are: Migrating the database to Amazon Aurora MySQL provides a scalable, high performance database to support the application. Creating an AMI of the web application and using it in an Auto Scaling group with Spot instances allows cheap and efficient scaling of the web tier. The Application Load Balancer distributes traffic across the Auto Scaling group. Spot instances in an Auto Scaling group allow cost-optimized automatic scaling based on demand. This approach provides high availability and seamless scaling without manual intervention.
upvoted 5 times
...
cookieMr
1 year, 6 months ago
D is correct because migrating the database to Amazon Aurora provides better scalability and performance compared to Amazon RDS for MySQL. Creating an AMI of the web application allows for easy replication of the application on multiple instances. Using a launch template and Auto Scaling group with Spot Fleet provides cost optimization by leveraging spot instances. Adding an Application Load Balancer ensures the load is distributed across the instances for seamless scaling. A is incorrect because using an Application Load Balancer with multiple EC2 instances is a better approach for scalability compared to relying on a single instance. B is incorrect because weighted routing in Amazon Route 53 distributes traffic based on fixed weights, which may not dynamically adjust to the changing load. C is incorrect because using AWS Lambda to stop and change the instance type based on CPU utilization is not an efficient way to handle scaling for a web application. Auto Scaling is a better approach for dynamic scaling.
upvoted 4 times
...
jdr75
1 year, 8 months ago
Selected Answer: D
the options that said "launch a second EC2", have no sense ... why 2?, why not 3 or 4 or 5? so options A and B drop. C is no sense (Lambda doing this like a Scaling Group?, absurd) Has to be D. Little extrange cos' Aurora is a very good solution, but NOT CHEAP (remember: cost-effectively). To be honest, the most cost-effectively is B je je
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago