nerdexam
Amazon

SAP-C02 · Question #168

A solutions architect is migrating an existing workload to AWS Fargate. The task can only run in a private subnet within the VPC where there is no direct connectivity from outside the system to the…

The correct answer is B. Ensure the task is set to DISABLED for the auto-assign public IP setting when launching the task. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_cannot_pull_image.html

Submitted by thandi_sa· Mar 6, 2026Migrate Workloads and Modernize Solutions

Question

A solutions architect is migrating an existing workload to AWS Fargate. The task can only run in a private subnet within the VPC where there is no direct connectivity from outside the system to the application. When the Fargate task is launched, the task fails with the following error:

CannotPullContainerError: API error (500): Get https://111122223333.dkr.ecr.us-east- 1.amazonaws.com/v2/: net/http: request canceled while waiting for connection How should the solutions architect correct this error?

Options

  • AEnsure the task is set to ENABLED for the auto-assign public IP setting when launching the task.
  • BEnsure the task is set to DISABLED for the auto-assign public IP setting when launching the task.
  • CEnsure the task is set to DISABLED for the auto-assign public IP setting when launching the task.
  • DEnsure the network mode is set to bridge in the Fargate task definition.

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    77% (20)
  • C
    4% (1)
  • D
    12% (3)

Explanation

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_cannot_pull_image.html

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice