Topic 1 Question 186
A developer needs to deploy an application running on AWS Fargate using Amazon ECS. The application has environment variables that must be passed to a container for the application to initialize.
How should the environment variables be passed to the container?
Define an array that includes the environment variables under the environment parameter within the service definition.
Define an array that includes the environment variables under the environment parameter within the task definition.
Define an array that includes the environment variables under the entryPoint parameter within the task definition.
Define an array that includes the environment variables under the entryPoint parameter within the service definition.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B👍 3Digo30sp2023/10/06
- 正解だと思う選択肢: B
B is correct
👍 2dilleman2023/10/11 - 正解だと思う選択肢: B
Following ChatGPT 3.5, The correct option is B When using Amazon ECS, the task definition is where you define parameters for your containers, including environment variables. The environment parameter within the task definition allows you to specify environment variables for your containers. This approach provides a clear separation of concerns, allowing you to define the environment variables at the task definition level, which is then used by the service when running tasks. Option A is incorrect because the environment variables are typically defined in the task definition rather than the service definition.
Options C and D are incorrect because the entryPoint parameter is used for specifying the entry point (command) for the container, not for defining environment variables.
👍 1TanTran042023/12/12
シャッフルモード