1Z0-133 practice question 16 of 25

Which two statements are true about WebLogic data sources?

Full set: 126 questions
Answer options
A: Data sources are targeted to a domain.
B: Data sources are bound in the JNDI tree of a server. Correct answer
C: Data sources are based on the JMS specification.
D: A data source contains a connection pool. Correct answer
E: A domain requires at least one data source.
Correct Answer:
B. Data sources are bound in the JNDI tree of a server.; D. A data source contains a connection pool.
Explanation

A WebLogic data source is a server-side object that provides database connectivity through a pool of connections. This connection pool is a core component of the data source, managing and reusing physical database connections to improve application performance and scalability. To allow applications to access these connections, the data source is registered, or "bound," to a unique name in the Java Naming and Directory Interface (JNDI) tree of the server or cluster where it is deployed. Applications then use a JNDI lookup to find the data source and request a connection from its pool.

Why Incorrect

A. Data sources are targeted to specific servers or clusters within a domain, not to the domain itself.
C. Data sources are based on the JDBC (Java Database Connectivity) API, not the JMS (Java Message Service) specification, which is for messaging.
E. A domain can be created and can function without any data sources; they are only required for applications that need database access.

References

1. Oracle Fusion Middleware

Configuring and Managing JDBC Data Sources for Oracle WebLogic Server

12c (12.2.1.4.0)

E90452-01

December 2018.

For D: In Section 2.1

"Understanding JDBC Data Sources

" it states: "Each data source contains a pool of database connections that are created when the data source is created..."

For B: In Section 2.1

"Understanding JDBC Data Sources

" it states: "A data source object has a JNDI name that is bound to the JNDI tree. For an application to get a database connection from a data source

it looks up the data source on the JNDI tree..."

For A: In Section 4.1

"Targeting a JDBC Data Source

" it states: "You can target a JDBC data source to one or more servers or to a cluster."

2. Oracle Fusion Middleware

Understanding Oracle WebLogic Server

12c (12.2.1.4.0)

E90448-01

December 2018.

For C: Chapter 10

"Programming WebLogic JDBC

" and Chapter 12

"Programming WebLogic JMS

" describe two distinct and separate Java EE APIs

confirming that JDBC is for data sources and JMS is for messaging.

For E: Chapter 5

"WebLogic Server System Administration

" describes the components of a domain. A data source is an optional resource

not a mandatory requirement for a domain's existence.

Scroll to Top