Prev Question
Next Question

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.

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *