Multiple choice

Which JDBC driver Type(s) can you use in a three-tier architecture and if the Web server and the DBMS are running on the same machine?

  1. Type 1 only

  2. Type 2 only

  3. Both Type 3 and Type 4

  4. All of Type 1, Type 2, Type 3 and Type 4

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

When the web server and DBMS are on the same machine, all JDBC driver types can technically be used. Type 1 (JDBC-ODBC bridge) works locally, Type 2 (native API) can connect directly, and Types 3 and 4 (network protocols) can connect via localhost. The question's architecture constraint doesn't eliminate any driver type in this scenario.