1 Answers
Hi Deepak and Brian,
Pro-level questions will have multiple dimensions that you must take into account. If you picked Fargate because you saw "minimize maintenance", then you have fallen into a trap that AWS will set for you. You were looking for an answer rather than eliminating answers.
Additionally, Pro questions are not written as complete scenarios. They are intentionally short on details and you must infer some things and not assume other things. Brian falls into this trap too by assuming that RDS will work for our landscape. The data store might be DB2, MongoDB or simple file storage…obviously none of which work with RDS…the question does not say so we cannot assume.
Using containers does not mean that we cannot persist data. In fact, AWS specifically recommends if you need to persist data, use the EC2 hosted version of ECS. They specifically recommend against using Fargate as there’s not a good way to manage the underlying resources and therefore not easy to persist data without lots of extra work.
Read-up on this here: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html
–Scott
Thanks Scott
If you deploy a database as a container, the data could go away if the container goes down. I know there are many ways to persist the data, but that isn’t mentioned in the answer. Answer 1 seems like the best answer.