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

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

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial covers the integration of the banking lab with the auth API, focusing on error handling and repository modifications. It introduces new functions for handling authentication and authorization errors, updates the repository to use these functions, and demonstrates how to build and verify the project. The tutorial emphasizes returning appropriate error codes and messages, ensuring the system handles errors effectively.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in integrating the banking lab with the auth API?

Download the latest version of the banking lab

Create new error functions

Modify the repository

Update the auth handler

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which error type should replace the standard error in the repository?

errors.database

errors.invalid

errors.apperror

errors.new

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What status code is returned for an authentication error?

404

401

403

500

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What new function should be added to handle authentication errors?

newDatabaseError

newValidationError

newAuthenticationError

newAuthorizationError

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What status code is associated with a forbidden access error?

422

500

401

403

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'go mod tidy' command?

To build the project

To clean up and resolve dependencies

To commit changes

To update the Go module version

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be done before committing the changes?

Update the auth handler

Create new error functions

Run 'go build' to check for problems

Download the latest version

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?