Building Microservices API in Go - Assignment 3: Make a Transaction in Bank Account

Building Microservices API in Go - Assignment 3: Make a Transaction in Bank Account

Assessment

Interactive Video

Information Technology (IT), Architecture, Business

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial covers the final assignment in the section, which involves building an API for bank transactions. The assignment focuses on handling withdrawal and deposit transactions, ensuring amounts are non-negative, and checking account balances for withdrawals. It also involves managing two tables: one for transactions and another for account updates. The tutorial emphasizes error handling, proper status codes, and messages. Students are advised to focus on the requirements and not to validate account ownership, as this will be covered in a later security section.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What types of transactions are allowed in the assignment?

Withdrawal and transfer

Deposit and loan

Transfer and deposit

Withdrawal and deposit

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What must be checked before processing a withdrawal transaction?

If the account is active

If the account holder is verified

If the amount is available in the account

If the transaction is approved by the bank

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be returned in case of a successful transaction?

Only the transaction ID

Transaction ID and updated balance

Transaction ID and account holder's name

Only the updated balance

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is not required to be checked in this assignment?

If the transaction type is valid

If the account belongs to the same customer

If the account is active

If the transaction amount is positive

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be included in the error handling process?

Proper status codes and messages

Account holder's contact information

Bank's approval letter

Transaction history