Search Header Logo
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

Practice Problem

Hard

Created by

Wayground 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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?