Bird
0
0

You want to update your ECS service to run a new version of your app with environment variables and increased memory. Which part of the task definition should you modify?

hard📝 Application Q15 of 15
AWS - ECS and Fargate
You want to update your ECS service to run a new version of your app with environment variables and increased memory. Which part of the task definition should you modify?
AChange the taskRoleArn to a new IAM role
BModify the family name of the task definition
CUpdate the containerDefinitions section to include new environment variables and increase the memory value
DAdd a new volume definition without changing container settings
Step-by-Step Solution
Solution:
  1. Step 1: Identify where environment variables and memory are set

    Environment variables and memory limits are set inside the containerDefinitions section of the task definition.
  2. Step 2: Understand the update process

    To update the app version and resources, modify containerDefinitions with new environment variables and increased memory.
  3. Final Answer:

    Update the containerDefinitions section to include new environment variables and increase the memory value -> Option C
  4. Quick Check:

    Env vars and memory updated in containerDefinitions [OK]
Quick Trick: Change containerDefinitions to update app settings and resources [OK]
Common Mistakes:
  • Changing taskRoleArn which controls permissions, not env or memory
  • Modifying family name which identifies task definition versions
  • Adding volumes without updating container environment or memory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes