Soru

Zorluk: KolayAWS Elastic Beanstalk

A developer is preparing a source bundle to deploy a web application to AWS Elastic Beanstalk. The developer wants to include configuration files that install additional software packages and define system environment variables. In which directory must these configuration files be placed to ensure Elastic Beanstalk processes them during deployment?

  1. A
    A folder named ebextensions without a leading dot at the root level of the application source bundle
  2. B
    A folder named .elasticbeanstalk at the root level of the application source bundle
  3. A folder named .ebextensions at the root level of the application source bundleCevap
  4. D
    A folder named .ebextensions nested inside the primary source code directory, such as src/

Cevap

A folder named .ebextensions at the root level of the application source bundle
The correct answer specifies placing files in a directory named .ebextensions at the root level of the application source bundle. AWS Elastic Beanstalk automatically looks for configuration files with a .config extension inside this directory during deployment to customize the environment's resource configuration.

Adım Adım Çözüm

1
Identify the mechanism Elastic Beanstalk uses for custom configuration files.
Elastic Beanstalk relies on YAML or JSON configuration files (ending in .config) to configure the environment.
This allows developers to define packages, services, files, and commands to run on the EC2 instances.
2
Determine the required naming convention and location for these files.
The configuration files must be stored within a directory named .ebextensions, which must be located at the root of the application source bundle.
Elastic Beanstalk only parses configuration files that are situated in this specific root folder.

Anahtar Kavram

AWS Elastic Beanstalk Custom Configurations (.ebextensions)
Bu soruyu puanla