Correct Answer – B
Configuration (.config) files for Elastic Beanstalk are put in the .ebextensions folder together with other application codes. Please check for the details of setting configurations during environment creation.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-configuration-methods-during.html#configuration-options-during-console-ebextensions
Option A is incorrect: Because firstly, it should be cron-linux.config. Secondly, if AWS Elastic Beanstalk CLI is used, the create-environment command should add options such as --environment-name test-env.
Option B is CORRECT: Because cron-linux.config has been put into the right place and eb create command is suitable to create the environment.
Option C is incorrect: Because cron-linux.cfg.yml has been put into the folder of .elasticbeanstalk/saved_configs/. This is how saved configuration is used for Elastic Beanstalk. However, in this case, the config file instead of a saved configuration is needed to set up the cron job. Besides, the AWS Elastic Beanstalk CLI command is used incorrectly.
Option D is incorrect: Because cron-linux.config should be placed into .ebextensions rather than .elasticbeanstalk/saved_configs/.