Q30 — AWS SAA-C03 第3章

第 30/65 题 | ← 返回第3章

Q160.一家公司正在 AWS 上创建电子商务网站的原型.该网站包含一个 Application Load Balancer. 一个用于 Web 服务器的 Amazon EC2 实例的 Auto Scaling 组,以及一个使用单可用区配置运行的 Amazon RDS for MySQL 数据库实例.在搜索产品目录时,网站响应缓慢.产品目录是 MySQL 数据库中的一组表,公司不经常更新.解决方案架构师已确定在进行产品目录搜索时数据库实例上的 CPU 使用率很高.在搜索产品目录期间,解决方案架构师应该推荐什么来提高网站的性能?

正确答案: B. 实施 Amazon ElastiCache for Redis 集群来缓存产品目录.使用延迟加载来填充缓存.

解析

To improve the performance of the ecommerce website during searches of the product catalog, a solutions architect should recommend implementing an Amazon ElastiCache for Redis cluster to cache the product catalog. Therefore, option B is the correct answer.Option A suggests migrating the product catalog to an Amazon Redshift database. While this may provide benefits in terms of improved query performance, it is not necessary and could increase operational overhead.Option C suggests adding an additional scaling policy to the Auto Scaling group, but this will not necessarily address the underlying issue of high CPU utilization on the RDS instance.Option D suggests turning on Multi-AZ configuration for the DB instance and configuring EC2 instances to throttle product catalog queries. While Multi-AZ deployment can provide high availability and automatic failover, it will not directly address the issue of high CPU utilization.By implementing an Amazon ElastiCache for Redis cluster, the frequently accessed data from the MySQL database can be stored in-memory, allowing for faster access times. Lazy loading can also be used to populate the cache with data as needed, reducing the impact on the database. This approach will improve the performance of the website during searches of the product catalog without requiring changes to the underlying data model or application code. 为了提高电子商务网站在搜索产品目录时的性能,解决方案架构师应该建议为Redis集群实现一个Amazon ElastiCache来缓存产品目录。因此,选项B是正确答案。选项A建议将产品目录迁移到Amazon Redshift数据库。虽然这可能在改进查询性能方面提供好处,但这不是必需的,并且可能增加操作开销。选项C建议向Auto scaling组添加一个额外的伸缩策略,但这并不一定能解决RDS实例上CPU利用率高的潜在问题。选项D建议为DB实例打开Multi-AZ配置,并配置EC2实例来限制产品目录查询。虽然Multi-AZ部署可以提供高可用性和自动故障转移,但它不能直接解决高CPU利用率的问题。通过为Redis集群实现Amazon ElastiCache, MySQL数据库中频繁访问的数据可以存储在内存中,从而加快访问速度。延迟加载还可以用于根据需要向缓存中填充数据,从而减少对数据库的影响。这种方法将提高网站在搜索产品目录时的性能,而不需要更改底层数据模型或应用程序代码。