Building Microservices API in Go - banking-lib Module in Banking API

Building Microservices API in Go - banking-lib Module in Banking API

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

In this video, the instructor demonstrates how to extract error and logger components from a banking project and create a separate Go module. The process includes adding a missing ZAP dependency, bumping the module version, and releasing a new version with a tag. The video also covers integrating the banking library into the project, resolving errors, and refactoring code. The importance of testing and maintaining good test coverage is emphasized. The video concludes with a preview of the next video, which will focus on similar tasks for the Auth API.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was the initial step taken to resolve the missing ZAP dependency in the Go module?

Adding the ZAP dependency using 'go get'

Ignoring the error

Rewriting the entire module

Removing the logger

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What version number was assigned to the updated Go module after changes?

1.0.0

1.0.1

2.0.0

1.1.0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step to integrate the updated Go module into the banking API?

Delete the entire API

Add the banking Lib as a Go module

Revert to the previous version

Ignore the missing folders

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you ensure the latest version of a Go module is used despite proxy delays?

Wait indefinitely

Append the version number to the module name

Use a different programming language

Restart the computer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is suggested for replacing module references across multiple files?

Ignore the errors

Delete all files

Use a find and replace tool

Manually edit each file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to verify that the project builds without errors after changes?

go run

go test

go build

go clean

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is having a good test coverage important during refactoring?

It makes the code run faster

It eliminates the need for documentation

It provides confidence that changes haven't broken existing functionality

It reduces the size of the codebase