nerdexam
Amazon

MLS-C01 · Question #310

A mining company wants to use machine learning (ML) models to identify mineral images in real time. A data science team built an image recognition model that is based on convolutional neural network…

The correct answer is B. Register the model artifact and container to the SageMaker Model Registry. Use the SageMaker. A CNN image recognition model trained on GPU instances needs real-time deployment to a SageMaker endpoint, with instance type and configuration determined for known workload patterns, minimizing development effort.

Machine Learning Implementation and Operations

Question

A mining company wants to use machine learning (ML) models to identify mineral images in real time. A data science team built an image recognition model that is based on convolutional neural network (CNN). The team trained the model on Amazon SageMaker by using GPU instances. The team will deploy the model to a SageMaker endpoint. The data science team already knows the workload traffic patterns. The team must determine instance type and configuration for the workloads. Which solution will meet these requirements with the LEAST development effort?

Options

  • ARegister the model artifact and container to the SageMaker Model Registry. Use the SageMaker
  • BRegister the model artifact and container to the SageMaker Model Registry. Use the SageMaker
  • CDeploy the model to an endpoint by using GPU instances. Use AWS Lambda and Amazon API
  • DDeploy the model to an endpoint by using CPU instances. Use AWS Lambda and Amazon API

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    72% (18)
  • C
    8% (2)
  • D
    16% (4)

Why each option

A CNN image recognition model trained on GPU instances needs real-time deployment to a SageMaker endpoint, with instance type and configuration determined for known workload patterns, minimizing development effort.

ARegister the model artifact and container to the SageMaker Model Registry. Use the SageMaker

This choice is an incomplete description of the full SageMaker deployment process, missing the crucial step of using SageMaker's Endpoint Configuration to define instance types.

BRegister the model artifact and container to the SageMaker Model Registry. Use the SageMakerCorrect

Amazon SageMaker Model Registry is used to manage and version models, facilitating deployment. From the Model Registry, the model can be directly deployed to a SageMaker Endpoint, where the Endpoint Configuration allows specifying the instance type (e.g., GPU instances for CNN inference) and other parameters based on known workload patterns. This integrated SageMaker workflow offers the most streamlined, least development-intensive approach for deploying models for real-time inference.

CDeploy the model to an endpoint by using GPU instances. Use AWS Lambda and Amazon API

While deploying to GPU instances is appropriate, explicitly involving AWS Lambda and Amazon API Gateway adds unnecessary development effort because SageMaker endpoints inherently provide HTTPS inference and scaling capabilities, making a custom wrapper redundant.

DDeploy the model to an endpoint by using CPU instances. Use AWS Lambda and Amazon API

Deploying to CPU instances for a CNN-based image recognition model, especially one trained on GPUs, would likely result in unacceptably slow real-time inference, failing to meet performance expectations for identifying mineral images in real-time.

Concept tested: SageMaker model deployment and endpoint configuration

Source: https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-deploy.html

Topics

#SageMaker Inference Recommender#Model Deployment#MLOps#Resource Optimization

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice