Data Science Model Deployments and Cloud Computing on GCP - Lab - Deploy Model Serving Code to App Engine

Data Science Model Deployments and Cloud Computing on GCP - Lab - Deploy Model Serving Code to App Engine

Assessment

Interactive Video

Information Technology (IT), Architecture, Social Studies

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial covers setting up a model serving environment using Python, Flask, and Google Cloud. It explains the main.py file, which loads a serialized model using pickle and handles POST requests for predictions. The app.yaml and requirements.txt files are discussed, followed by the deployment process using gcloud. Finally, the video demonstrates testing the model endpoint with JSON input, ensuring the application returns correct predictions.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which library is used to serialize the model in the deployment setup?

yaml

xml

json

pickle

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of request does the loadmodel function accept?

DELETE

PUT

GET

POST

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python version is specified in the app.yaml file for the runtime environment?

Python 3.9

Python 3.8

Python 3.7

Python 3.6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file contains the list of dependencies required for the deployment?

requirements.txt

config.json

main.py

app.yaml

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the service as specified in the app.yaml file?

model_deployment

prediction_service

classification_model_prediction

model_service

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to deploy the application using Google Cloud?

gcloud app deploy

gcloud app start

gcloud app run

gcloud app launch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the expected status code if the POST request to the model endpoint is successful?

403

200

500

404