exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 186 discussion

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?

  • A. Define an array that includes the environment variables under the environment parameter within the service definition.
  • B. Define an array that includes the environment variables under the environment parameter within the task definition.
  • C. Define an array that includes the environment variables under the entryPoint parameter within the task definition.
  • D. Define an array that includes the environment variables under the entryPoint parameter within the service definition.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Digo30sp
Highly Voted 1 year, 7 months ago
Selected Answer: B
B) https://www.examtopics.com/discussions/amazon/view/28795-exam-aws-certified-developer-associate-topic-1-question-108/
upvoted 7 times
...
albert_kuo
Most Recent 8 months ago
Selected Answer: B
{ "containerDefinitions": [ { "name": "my-container", "image": "my-image", "environment": [ { "name": "ENV_VAR_1", "value": "value1" }, { "name": "ENV_VAR_2", "value": "value2" } ] } ] }
upvoted 1 times
...
65703c1
1 year ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
joshnort
1 year, 3 months ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html
upvoted 3 times
...
TanTran04
1 year, 5 months ago
Selected Answer: 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.
upvoted 4 times
...
dilleman
1 year, 7 months ago
Selected Answer: B
B is correct
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...