0 votes
in AWS by

You are a developer for a company. You have been asked to deploy an application for development purposes onto an Elastic beanstalk environment. You need to ensure that custom software is installed on the backend Linux servers launched as part of the Elastic Beanstalk environment.

Which of the following can be used to achieve this? Choose 2 answers from the options given below.

1 Answer

0 votes
by

Answer - B and C.

The AWS Documentation mentions the following.

AWS Elastic Beanstalk supports many configuration options that let you modify the settings applied to resources in your environment.

Several of these options have default values that can be overridden to customize your environment.

Other options can be configured to enable additional features.

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.

Option A is invalid because the configuration file needs to be in YAML or JSON format.

Option D is invalid because the configuration file needs to be placed in the .ebextensions folder.

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

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

To ensure that custom software is installed on the backend Linux servers launched as part of the Elastic Beanstalk environment, we can use AWS Elastic Beanstalk extensions. Elastic Beanstalk extensions are simple configuration files that customize the environment and applications. These files can be written in YAML, JSON, or XML format.

To achieve this, we need to create a file with the required package names to be installed on the server and place it in the ".ebextensions" folder in your application source bundle.

The correct answers are B and C: B. Create a YAML file with the required package names to be installed on the server. C. Place the file in the .ebextensions folder in your Application Source Bundle.

The YAML file can be named anything, but it must have the ".config" extension. For example, we could create a file named "install_packages.config" and put it in the ".ebextensions" folder in our application source bundle.

Here is an example YAML file that installs a custom package on the backend Linux servers:

packages: yum: custom-package: []

This YAML file can be used to install the "custom-package" using the yum package manager. Similarly, we can use this file to install other packages as well.

In summary, to install custom software on the backend Linux servers launched as part of the Elastic Beanstalk environment, we need to create a YAML file with the required package names, place it in the ".ebextensions" folder in our application source bundle, and then upload the source bundle to Elastic Beanstalk.

...