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 152 discussion

A company uses a three-tier web application to provide training to new employees. The application is accessed for only 12 hours every day. The company is using an Amazon RDS for MySQL DB instance to store information and wants to minimize costs.
What should a solutions architect do to meet these requirements?

  • A. Configure an IAM policy for AWS Systems Manager Session Manager. Create an IAM role for the policy. Update the trust relationship of the role. Set up automatic start and stop for the DB instance.
  • B. Create an Amazon ElastiCache for Redis cache cluster that gives users the ability to access the data from the cache when the DB instance is stopped. Invalidate the cache after the DB instance is started.
  • C. Launch an Amazon EC2 instance. Create an IAM role that grants access to Amazon RDS. Attach the role to the EC2 instance. Configure a cron job to start and stop the EC2 instance on the desired schedule.
  • D. Create AWS Lambda functions to start and stop the DB instance. Create Amazon EventBridge (Amazon CloudWatch Events) scheduled rules to invoke the Lambda functions. Configure the Lambda functions as event targets for the rules.
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
study_aws1
Highly Voted 2 years, 1 month ago
https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/ It is option D. Option A could have been applicable had it been AWS Systems Manager State Manager & not AWS Systems Manager Session Manager
upvoted 39 times
...
123jhl0
Highly Voted 2 years, 2 months ago
Selected Answer: A
A is true for sure. "Schedule Amazon RDS stop and start using AWS Systems Manager" Steps in the documentation: 1. Configure an AWS Identity and Access Management (IAM) policy for State Manager. 2. Create an IAM role for the new policy. 3. Update the trust relationship of the role so Systems Manager can use it. 4. Set up the automatic stop with State Manager. 5. Set up the automatic start with State Manager. https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-systems-manager/
upvoted 9 times
MatAlves
3 months, 3 weeks ago
The link you sent talks about "AWS Systems Manager State Manager", not "AWS Systems Manager Session Manager".
upvoted 2 times
...
NSA_Poker
7 months, 1 week ago
(A) & (D) both look correct & both are supported by a 2-part article. First part describes (D), the second (A). I don't have an issue with (A): Session vs State; I understand that State Manager is a capability of Systems Manager. Because Lambda is not free beyond the free-tier limit & (A) is more complete with IAM notes unlike (D), I would choose (A) on the exam. Schedule Amazon RDS stop and start using AWS Systems Manager (part-2) https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-systems-manager/ Schedule Amazon RDS stop and start using AWS Lambda (part-1) https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/
upvoted 2 times
...
Kien048
2 years, 1 month ago
And ofcause, D is working, so if A also right, the question is wrong.
upvoted 5 times
...
Kien048
2 years, 1 month ago
Look like State manager and Session manager use for difference purpose even both in same dashboard console.
upvoted 2 times
...
...
lofzee
Most Recent 6 months, 4 weeks ago
Selected Answer: D
D. You need to use AWS Systems Manager State Manager, not Systems Manager Session Manager.
upvoted 2 times
...
ManikRoy
7 months, 3 weeks ago
Selected Answer: D
Agree with study_aws1 comment. Lambda and event bridge solution is the correct answer. The option A was only possible if it had mentioned System manager state manager
upvoted 2 times
...
phongltktv
8 months ago
Selected Answer: C
we still pay for RDS even when the instance stops. So for cost-optimize -> C
upvoted 1 times
NSA_Poker
7 months, 1 week ago
While the instance is stopped, you’re charged for storage and backups, but not for the DB instance hours. https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/#:~:text=While%20the%20instance%20is%20stopped%2C%20you%E2%80%99re%20charged%20for%20storage%20and%20backups%2C%20but%20not%20for%20the%20DB%20instance%20hours.
upvoted 2 times
...
...
LP0905
9 months, 2 weeks ago
Selected Answer: D
Although both A and D is a workable solution, the requirements is to minimum cost. The benefits of automating the startup and shutdown of RDS DB instances using Lambda allows organizations to further reduce compute costs and simplify the administration of database environments that don’t need to be running continuously. https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/ For using system manager to accomplish the task works however keep in mind that although we’re stopping the databases, the storage costs for the databases still apply. https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-systems-manager/ Initially I also thought that A would be the correct answer however looking at the administration and cost I would go for D as a better solution instead.
upvoted 3 times
...
thewalker
10 months, 4 weeks ago
Selected Answer: A
To automatically shutdown an RDS instance during 09:00 PM to 09:00 AM and have it available between 09:00 AM to 09:00 PM, you can use AWS Systems Manager Maintenance Windows. Create two Maintenance Windows - one to stop the RDS instance at 09:00 PM and another to start it at 09:00 AM. For each Maintenance Window, select the "AWS-StopRDSInstance" and "AWS-StartRDSInstance" runbooks respectively and specify the cron expression for the schedule. Tag the RDS instance with a name so it can be identified by the runbooks. The runbooks will then automatically stop and start the RDS instance on the specified schedule without needing any manual intervention.
upvoted 1 times
thewalker
10 months, 4 weeks ago
This allows cost savings by shutting down the RDS instance during non-business hours while keeping it available during the day as per your requirements. Refer to the AWS documentation for more details on configuring Maintenance Windows and runbooks. https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/automatically-stop-and-start-an-amazon-rds-db-instance-using-aws-systems-manager-maintenance-windows.html https://repost.aws/questions/QUcVR5js8LSbOS_LE889Kdlg/automatically-stop-and-start-an-amazon-rds-db-instance-in-a-cdk-app
upvoted 1 times
...
...
theochan
11 months, 1 week ago
Guys, we still have to pay for RDS instance even we stopped it, isn't it?
upvoted 3 times
NSA_Poker
7 months, 1 week ago
While the instance is stopped, you’re charged for storage and backups, but not for the DB instance hours. https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/#:~:text=While%20the%20instance%20is%20stopped%2C%20you%E2%80%99re%20charged%20for%20storage%20and%20backups%2C%20but%20not%20for%20the%20DB%20instance%20hours.
upvoted 2 times
...
...
Ruffyit
1 year ago
AWS Lambda functions can be used to start and stop RDS instances programmatically. EventBridge scheduled rules can trigger the Lambda functions at specified times daily. This allows fully automating the starting and stopping of RDS on a schedule to match usage patterns. RDS billing is per hour when instance is running, so stopping when not in use significantly reduces costs. Using Lambda and EventBridge is simpler and more robust than cron jobs on EC2. ElastiCache and Systems Manager Session Manager are useful tools but do not directly address scheduled RDS start/stop.
upvoted 3 times
...
TariqKipkemei
1 year, 3 months ago
Selected Answer: D
You can use AWS Lambda and Amazon EventBridge to schedule a Lambda function to stop and start the idle databases with specific tags to save on compute costs. https://aws.amazon.com/blogs/database/schedule-amazon-rds-stop-and-start-using-aws-lambda/#:~:text=you%20to%20schedule%20a-,Lambda%20function,-to%20stop%20and%20start
upvoted 3 times
...
lemur88
1 year, 4 months ago
Selected Answer: D
Here is the recommended solutions which describes choice D - https://aws.amazon.com/blogs/database/save-costs-by-automating-the-start-and-stop-of-amazon-rds-instances-with-aws-lambda-and-amazon-eventbridge/
upvoted 2 times
...
Guru4Cloud
1 year, 4 months ago
Selected Answer: D
AWS Lambda functions can be used to start and stop RDS instances programmatically. EventBridge scheduled rules can trigger the Lambda functions at specified times daily. This allows fully automating the starting and stopping of RDS on a schedule to match usage patterns. RDS billing is per hour when instance is running, so stopping when not in use significantly reduces costs. Using Lambda and EventBridge is simpler and more robust than cron jobs on EC2. ElastiCache and Systems Manager Session Manager are useful tools but do not directly address scheduled RDS start/stop.
upvoted 4 times
...
cookieMr
1 year, 6 months ago
Selected Answer: D
By using AWS Lambda functions triggered by Amazon EventBridge scheduled rules, the company can automate the start and stop actions for the Amazon RDS for MySQL DB instance based on the 12-hour access period. This allows them to minimize costs by only running the DB instance when it is needed. Option A is not the most suitable solution because it refers to IAM policies for AWS Systems Manager Session Manager, which is primarily used for interactive shell access to EC2 instances and does not directly address the requirement of starting and stopping the DB instance. Option B is not the most suitable solution because it suggests using Amazon ElastiCache for Redis as a cache cluster, which may not provide the desired cost optimization for the DB instance. Option C is not the most suitable solution because launching an EC2 instance and configuring cron jobs to start and stop it does not directly address the requirement of minimizing costs for the Amazon RDS DB instance.
upvoted 4 times
...
Siva007
1 year, 7 months ago
Selected Answer: D
I got this question in real exam!
upvoted 5 times
srijrao
1 year, 6 months ago
why we need more than one lambda function to start and stop DB instance? btw how many questions came from this site?
upvoted 2 times
...
...
ccmc
1 year, 7 months ago
State Manager, a capability of AWS Systems Manager
upvoted 2 times
...
Ankit_EC_ran
1 year, 8 months ago
Selected Answer: D
Option D is correct
upvoted 2 times
...
Musti35
1 year, 8 months ago
Selected Answer: D
In a typical development environment, dev and test databases are mostly utilized for 8 hours a day and sit idle when not in use. However, the databases are billed for the compute and storage costs during this idle time. To reduce the overall cost, Amazon RDS allows instances to be stopped temporarily. While the instance is stopped, you’re charged for storage and backups, but not for the DB instance hours. Please note that a stopped instance will automatically be started after 7 days. This post presents a solution using AWS Lambda and Amazon EventBridge that allows you to schedule a Lambda function to stop and start the idle databases with specific tags to save on compute costs. The second post presents a solution that accomplishes stop and start of the idle Amazon RDS databases using AWS Systems Manager.
upvoted 5 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