You have been tasked with deploying a scalable distributed system using AWS OpsWorks. Your distributed system is
required to scale on demand. As it is distributed, each node must hold a configuration file that includes the hostnames of
the other instances within the layer. How should you configure AWS OpsWorks to manage scaling this application
dynamically?
A.
Create a Chef Recipe to update this configuration file, configure your AWS OpsWorks stack to use custom cookbooks, and assign this
recipe to the Configure LifeCycle Event of the specific layer.
B.
Update this configuration file by writing a script to poll the AWS OpsWorks service API for new instances.
Configure your base AMI to execute this script on Operating System startup.
C.
Create a Chef Recipe to update this configuration file, configure your AWS OpsWorks stack to use custom cookbooks, and assign this
recipe to execute when instances are launched.
D.
Configure your AWS OpsWorks layer to use the AWS-provided recipe for distributed host configuration, and configure the instance
hostname and file path parameters in your recipes settings.
Cannot be B and C.
A seems better than D.
A
http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-events.html
see example of “Configure” and you will know why choose A.
right. `configure` will run when instance is on/off line on all instances, which is perfect here.
A