近几周CHATGPT非常火,我们也不能免俗试试用CHATGPT来解答一下SAA问题,看看CHATGPT的思路准确不准确。

本次选择SAA的官方样题,链接如下

https://d1.awsstatic.com/training-and-certification/docs-sa-assoc/AWS-Certified-Solutions-Architect-Associate_Sample-Questions.pdf

我们在此抽样一道题来做一下解答。

An application running on AWS uses an Amazon Aurora Multi-AZ DB cluster deployment for its database. When evaluating performance metrics, a solutions architect discovered that the database reads are causing high I/O and adding latency to the write requests against the database. What should the solutions architect do to separate the read requests from the write requests?

A) Enable read-through caching on the Aurora database.

B) Update the application to read from the Multi-AZ standby instance.

C) Create an Aurora replica and modify the application to use the appropriate endpoints.

D) Create a second Aurora database and link it to the primary database as a read replica.

先把题目直接抛给CHATGPT,得到以下内容

除了Global Database有点发散以外,其实它已经提出了Replica的方案,并且进一步提到可以使用Redis来offload request,当然现在Serverless当道,最后还提了一下Aurora Serverless(勉强算是一种提供任意规模性能方案

这时我们把选项给他,看他如何判断

Hmm,有点一言难尽,我们看看它对C是如何解释的

Option C) Create an Aurora replica and modify the application to use the appropriate endpoints is not correct because an Aurora replica refers to a read replica, not a separate DB cluster. To separate read requests from write requests, you need to create a separate Aurora DB cluster and link it to the primary cluster as a read replica.

其实这也可以看到CHATGPT的问题,虽然它的逻辑可能是自洽的,文字也很多,但是事实上它是不清楚的,我也看到很多朋友直接拿它来生成IAM Policy了,内容也是不完整。

总结一下,CHATGPT可以用来解决一些通用的问题(然而这些问题也是最不需要它来解决的问题),可能用来写文章比较合适。