A company has a model packaged in a container and will integrate it with an existing Python web app. They want to host the model on AWS using Kubernetes, avoid managing the control plane, provision resources reproducibly, and provision the infrastructure using Python. Which solution meets these constraints?
Choose an answer
Tap an option to check your answer.
Correct answer: Use the AWS Cloud Development Kit (AWS CDK) to provision an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. Store the image in an Amazon Elastic Container Registry (Amazon ECR) repository. Host the model container on the EKS cluster..
Why this is the answer
The correct answer is using AWS CDK to provision an Amazon EKS cluster and storing the image in ECR. This solution meets all requirements: EKS provides a managed Kubernetes control plane, avoiding management overhead. AWS CDK allows infrastructure provisioning using familiar programming languages like Python, ensuring reproducibility. ECR is the standard for storing container images on AWS. Using CloudFormation for EC2 instances and setting up Kubernetes manually doesn't avoid control plane management. Using the AWS CLI for EKS provisioning doesn't allow for reproducible infrastructure as code in Python. While CloudFormation can provision EKS, it doesn't meet the requirement of provisioning infrastructure using Python, which CDK directly addresses.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed