Building Microservices API in Go - Assignment 1: Fix GetAllCustomers API

Building Microservices API in Go - Assignment 1: Fix GetAllCustomers API

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial outlines an assignment to fix the 'Get All Customers' API. The task requires returning only JSON responses, with status code 500 for errors and 200 for success. Students are encouraged to apply error handling techniques learned in the 'Get Customer API' lesson. A follow-up session will provide the solution.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary format required for the API response in this assignment?

JSON

CSV

XML

HTML

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What status code should the API return in case of an error?

500

404

200

403

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should the API return upon a successful operation?

Status code 404 with error message

Status code 200 with appropriate data

Status code 500 with error message

Status code 403 with no data

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which previous lesson's techniques should be applied to handle errors in this assignment?

Update Customer API

Get Customer API

Post Customer API

Delete Customer API

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the follow-up session provide?

A new assignment

The solution to the current assignment

Additional resources

A quiz