exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 108 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 108
Topic #: 1
[All AWS Certified Developer Associate Questions]

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
jodeepak
Highly Voted 3 years, 6 months ago
Answer B https://docs.aws.amazon.com/AmazonECS/latest/userguide/task_definition_parameters.html#container_definitions
upvoted 14 times
Groot2
2 years, 1 month ago
Why the link is not https://docs.aws.amazon.com/AmazonECS/latest/userguide/taskdef-envfiles.html ?
upvoted 1 times
...
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
In Amazon ECS, environment variables for containers are defined in the task definition, not in the service definition or entryPoint. Specifically, you use the environment parameter within the container definition section of the task definition to pass environment variables to the container
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
We can define ECS with Fargate environment variables during the task definition
upvoted 2 times
...
janjitsu
1 year, 10 months ago
Selected Answer: B
as explained in https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html
upvoted 1 times
...
pancman
2 years, 1 month ago
Saw this question in the exam today (Feb 2023)
upvoted 3 times
...
sichilam
2 years, 3 months ago
B is the answer
upvoted 1 times
...
haazybanj
2 years, 6 months ago
Selected Answer: B
Answer B
upvoted 1 times
...
VijiTu
2 years, 10 months ago
You can also implement tighter control by setting up an AWS IAM policy to prevent users from creating an EBS volume unless it is encrypted Answer c holds good. Hence CD
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: B
ANS: B
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: B
ANS: B
upvoted 1 times
...
SHAAHIBHUSHANAWS
3 years, 4 months ago
B https://docs.aws.amazon.com/AmazonECS/latest/userguide/taskdef-envfiles.html
upvoted 2 times
...
Chinta
3 years, 6 months ago
B is correct
upvoted 1 times
...
saeidp
3 years, 6 months ago
B is correct
upvoted 2 times
...
requiem
3 years, 6 months ago
answer: B
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago