0 votes
in AWS by

You're a developer at a company that needs to deploy an application using Elastic Beanstalk. There is a requirement to place a healthcheck.config file for the environment.

In which of the following location should this config file be placed to ensure that it is part of the elastic beanstalk environment?

1 Answer

0 votes
by

Answer - D.

The AWS Documentation mentions the following.

Elastic Beanstalk supports two methods of saving configuration option settings.

Configuration files in YAML or JSON format can be included in your application's source code in a directory named .ebextensions and deployed as part of your application source bundle.

You create and manage configuration files locally.

All other options are incorrect because the AWS documentation specifically mentions that you need to place custom configuration files in the .ebextensions folder.

For more information on the environment configuration method, please refer to the below URL-

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-configuration-methods-before.html

The correct answer is D. In the .ebextensions folder.

When using Elastic Beanstalk, the .ebextensions directory allows the user to configure a number of options for their application environment. This directory should be located in the root folder of your application.

The .ebextensions directory allows you to specify various configuration files, including healthcheck.config. The healthcheck.config file can be used to specify a URL that Elastic Beanstalk should use to determine whether the environment is healthy or not. This URL can be used to perform a simple HTTP GET request to a specific endpoint on your application.

By placing the healthcheck.config file in the .ebextensions directory, Elastic Beanstalk will recognize it as part of the environment configuration and will apply the settings specified in the file.

Therefore, option D (In the .ebextensions folder) is the correct answer.

...