Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Garbage Collection Basics

Front

Why can two services with similar heap size perform very differently?

Because one service may allocate many more temporary objects per request. Steady-state heap size does not tell you…

View Card →
Flashcard Study

Java: Garbage Collection Basics

Front

What is allocation churn?

A high rate of short-lived object creation that increases GC and CPU work. A service can have stable…

View Card →
Flashcard Study

Java: SQL Injection

Front

What are the trade-offs of using a high BCrypt work factor?

Higher work factors increase security but slow down hashing. BCrypt's work factor determines the computational cost of hashing…

View Card →
Flashcard Study

Java: SQL Injection

Front

Why is HTML encoding crucial in preventing stored XSS?

HTML encoding prevents execution of malicious scripts by treating them as text. Stored Cross-Site Scripting (XSS) occurs when…

View Card →
Flashcard Study

Java: SQL Injection

Front

What role do CSRF tokens play in web security?

CSRF tokens prevent unauthorized actions on behalf of users. Cross-Site Request Forgery (CSRF) tokens are unique tokens included…

View Card →
Flashcard Study

Java: SQL Injection

Front

How do PreparedStatements protect against SQL Injection?

They safely handle user inputs, treating them as literal values. PreparedStatements prevent SQL Injection by separating SQL logic…

View Card →
Flashcard Study

Java: SQL Injection

Front

Why is it important to prevent SQL Injection?

SQL Injection can allow attackers to execute arbitrary database commands. SQL Injection occurs when an attacker manipulates a…

View Card →
Flashcard Study

Java: SQL Injection

Front

Understanding SQL injection risks with string concatenation?

String concatenation can lead to SQL Injection vulnerabilities. When SQL queries are built using string concatenation, user input…

View Card →
Flashcard Study

Java: SQL Injection

Front

The role of CSRF tokens in web security?

CSRF tokens validate the legitimacy of requests. CSRF tokens are unique values sent with user requests to verify…

View Card →
Flashcard Study

Java: SQL Injection

Front

Role of Spring Security Filter Chain in application security?

The Filter Chain processes security filters for each request. In Spring Security, the filter chain applies a series…

View Card →