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

A company uses an Amazon Elastic Kubernetes Service (Amazon EKS) cluster to host its machine learning (ML) application. As the ML model and the container image size grow, the time that new pods take to start up has increased to several minutes.

A DevOps engineer needs to reduce the startup time to seconds. The solution must also reduce the startup time to seconds when the pod runs on nodes that were recently added to the cluster.

The DevOps engineer creates an Amazon EventBridge rule that invokes an automation in AWS Systems Manager. The automation prefetches the container images from an Amazon Elastic Container Registry (Amazon ECR) repository when new images are pushed to the repository. The DevOps engineer also configures tags to be applied to the cluster and the node groups.

What should the DevOps engineer do next to meet the requirements?

Answer options

Correct answer: C

Explanation

The correct answer is C because it allows EventBridge to trigger Systems Manager to run commands on the EKS cluster's nodes, which is necessary for prefetching container images based on the nodes' tags. Options A and D incorrectly reference control plane nodes, which are not where the pods run. Option B does not utilize tags, which are essential for identifying the correct images to prefetch.