Courseiva
Continuous Improvement for Existing SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

Exhibit

Refer to the exhibit.

[container-definitions]
[
  {
    "name": "web",
    "image": "nginx:latest",
    "memory": 256,
    "cpu": 256,
    "essential": true,
    "portMappings": [
      {
        "containerPort": 80,
        "protocol": "tcp"
      }
    ]
  },
  {
    "name": "sidecar",
    "image": "myapp/sidecar:latest",
    "memory": 128,
    "cpu": 0,
    "essential": false
  }
]

Refer to the exhibit. A company has an Amazon ECS task definition with two containers. The 'web' container is essential, and the 'sidecar' container is not. The 'sidecar' container exits unexpectedly. What will happen to the task?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The task continues running as normal.

Non-essential containers can fail without affecting the task. Option A is wrong because only essential container failure stops the task. Option B is wrong because ECS will not restart a non-essential container by default; it depends on the task definition restart policy. Option D is wrong because the sidecar's CPU=0 means it can use up to the available CPU, but it still runs.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The sidecar container will be marked as essential.

    Why it's wrong here

    The 'essential' attribute is false.

  • ECS will automatically restart the sidecar container.

    Why it's wrong here

    No restart policy is specified; ECS may not restart it.

  • The task continues running as normal.

    Why this is correct

    Non-essential container failure does not affect the task.

  • The ECS task will be stopped.

    Why it's wrong here

    Only essential container failure stops the task.

About these practice questions

This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.