AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 283

A company is running an internal application in an Amazon Elastic Container Service (Amazon ECS) cluster on Amazon EC2. The ECS cluster instances can connect to the public internet. The ECS tasks that run on the cluster instances are configured to use images from both private Amazon Elastic Container Registry (Amazon ECR) repositories and a public ECR registry repository.

A new security policy requires the company to remove the ECS cluster's direct access to the internet. The company must remove any NAT gateways and internet gateways from the VPC that hosts the cluster. A DevOps engineer needs to ensure the ECS cluster can still download images from both the public ECR registry and the private ECR repositories. Images from the public ECR registry must remain up-to-date. New versions of the images must be available to the ECS cluster within 24 hours of publication.

Which combination of steps will meet these requirements with the LEAST operational overhead? (Choose three.)

Answer options

Correct answer: C, E, F

Explanation

To allow an ECS cluster in a private VPC without internet access to retrieve images from ECR, you must configure interface VPC endpoints for ECR (Option E) and a gateway VPC endpoint for Amazon S3, as ECR utilizes S3 to store image layers (Option F). To access public ECR images without internet access, an ECR pull-through cache rule can be created; pulling the images once before severing internet access caches them, and ECR automatically keeps them updated within 24 hours when pulled thereafter (Option C). Options A and B are incorrect because they introduce unnecessary operational complexity with CodeBuild, Lambda, and EventBridge.