AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 107

A company wants to use a grid system for a proprietary enterprise in-memory data store on top of AWS. This system can run in multiple server nodes in any Linux-based distribution. The system must be able to reconfigure the entire cluster every time a node is added or removed. When adding or removing nodes, an /etc/cluster/nodes.config file must be updated, listing the IP addresses of the current node members of that cluster.

The company wants to automate the task of adding new nodes to a cluster.

What can a DevOps engineer do to meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it effectively uses AWS OpsWorks Stacks and a Chef recipe to automate the configuration of the cluster, ensuring that the /etc/cluster/nodes.config file is updated and services are restarted based on the current nodes. Option B relies on manual updates and version control, which is less efficient for automation. Option C introduces unnecessary complexity with S3 and polling, while Option D does not utilize the capabilities of AWS services like OpsWorks, making it less optimal for the requirement.