Unit 4: Authentication and Database Integration - Subjective Questions

INT257 — Modern Web Application Development • Practice Questions with Detailed Answers

20 questions

1

Define authentication and explain its importance in modern web applications.

2

Explain the typical authentication workflow using username and password credentials.

3

Describe session management in a web application and explain how sessions are created, maintained, and destroyed.

4

Compare cookie-based sessions and token-based authentication.

5

What are protected routes? Explain how a web application protects a route from unauthenticated access.

6

Distinguish between authentication and authorization with suitable web application examples.

7

Explain role-based access control and describe how it can be implemented in a web application.

8

Design an authorization strategy for an application containing administrator, instructor, and student users.

9

Define ORM and explain the main advantages and limitations of using an ORM in web application development.

10

Explain how database connectivity is established between a web application and a relational database.

11

Describe the CRUD operations and explain how they map to common HTTP methods.

12

Explain the complete lifecycle of a CRUD request from the client to the database and back to the client.

13

What is data validation? Explain the difference between client-side and server-side validation.

14

Explain how input validation and parameterized queries help prevent common database security vulnerabilities.

15

Describe environment variables and explain why they are used in web applications.

16

Explain how an application should securely manage database credentials and other secrets using environment variables.

17

Describe the security risks associated with improper session management and explain suitable countermeasures.

18

Explain the principle of least privilege in authentication, authorization, and database integration.

19

Compare one-to-one, one-to-many, and many-to-many relationships in ORM-based database design.

20

Explain database transactions and describe why they are important when performing related CRUD operations.