AWS SAA-C03 #152

文章讨论了如何通过创建AWSLambda函数和AmazonEventBridge规则来自动化一个每天仅运行12小时的三层Web应用的MySQL数据库实例,以最小化成本。最佳选项是D,避免了额外的复杂性和成本,只在需要时付费。

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.


The best option to meet these requirements is Option D.

Creating AWS Lambda functions to start and stop the DB instance, and using Amazon EventBridge (Amazon CloudWatch Events) scheduled rules to invoke the Lambda functions, allows you to automate the process of starting and stopping the DB instance according to the company’s operational hours. This can significantly reduce costs as you’re only paying for the DB instance when it’s in use. Configuring the Lambda functions as event targets for the rules ensures that the start and stop operations are performed reliably.

The other options are not as cost-effective or efficient for this specific use case. For example, Option A involves using AWS Systems Manager Session Manager, which is not necessary for this scenario. Option B suggests using Amazon ElastiCache for Redis, which would add additional costs and complexity. Option C suggests using an EC2 instance to control the RDS instance, which is less efficient and could lead to higher costs compared to using Lambda functions.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值