Q33 — AWS DEA-C01 Ch.1
Question 33 of 100 | ← Chapter 1
A company is developing an application that runs on Amazon EC2 instances. Currently, the data that the application generates is temporary. However, the company needs to persist the data, even if the EC2 instances are terminated. A data engineer must launch new EC2 instances from an Amazon Machine Image (AMI) and configure the instances to preserve the data. Which solution will meet this requirement?
- A. Launch new EC2 instances by using an AMI that is backed by an EC2 instance store volume that contains the application data. Apply the default settings to the EC2 instances.
- B. Launch new EC2 instances by using an AMI that is backed by a root Amazon Elastic Block Store (Amazon EBS) volume that contains the application data. Apply the default settings to the EC2 instances
- C. Launch new EC2 instances by using an AMI that is backed by an EC2 instance store volume. Attach an Amazon Elastic Block Store (Amazon EBS) volume to contain the application data. Apply the default settings to the EC2 instances ✓
- D. Launch new EC2 instances by using an AMI that is backed by an Amazon Elastic Block Store (Amazon EBS) volume. Attach an additional EC2 instance store volume to contain the application data. Apply the default settings to the EC2 instances.
Correct Answer: C. Launch new EC2 instances by using an AMI that is backed by an EC2 instance store volume. Attach an Amazon Elastic Block Store (Amazon EBS) volume to contain the application data. Apply the default settings to the EC2 instances
Explanation
为了满足数据持久化的需求,即使EC2实例被终止,数据也必须保留。AmazonEC2实例存储卷是临时的,不适用于需要持久化的数据。因此,选项A和D不正确。选项B提到使用包含应用程序数据的根EBS卷来启动新实例,但这种方法不会将数据存储在单独的卷上,可能不利于数据管理和备份。因此,最佳实践是使用EBS卷来专门存储需要持久化的数据,并将其附加到EC2实例上,如选项C所述。这样,即使EC2实例被终止,EBS卷中的数据也会保留,从而满足数据持久化的需求。