Bird
0
0

What is the effect of setting "essential": false in a container definition within a task?

medium📝 Predict Output Q5 of 15
AWS - ECS and Fargate
What is the effect of setting "essential": false in a container definition within a task?
AThe container is given extra CPU resources
BThe task continues running even if this container stops or fails
CThe task stops immediately if this container stops
DThe container will never start when the task runs
Step-by-Step Solution
Solution:
  1. Step 1: Understand the 'essential' flag in ECS containers

    If a container is marked essential, the task stops if it fails; if false, task keeps running.
  2. Step 2: Interpret the effect of 'essential': false

    Setting it to false means the task continues even if this container stops or crashes.
  3. Final Answer:

    The task continues running even if this container stops or fails -> Option B
  4. Quick Check:

    Essential false = task keeps running if container stops [OK]
Quick Trick: 'essential': false lets task run despite container failure [OK]
Common Mistakes:
  • Assuming container won't start if essential is false
  • Thinking task stops immediately on container failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes