This document contains questions and explanations about Oracle Weblogic Server 11g system administration. It discusses topics like shared libraries, starting managed servers, server configuration options, application deployment, and the Weblogic installation process. Key points include:
- Multiple versions of the same shared library can be deployed and active at the same time. A shared library is referenced through an application's deployment descriptor.
- To start a managed server, the administration server must be running and the node manager for the machine hosting the managed server must be configured and running.
- Server staging mode determines the default deployment mode if one is not specified.
- Modifying the cluster address attribute ensures load balancing and failover work correctly if a proxy
This document contains questions and explanations about Oracle Weblogic Server 11g system administration. It discusses topics like shared libraries, starting managed servers, server configuration options, application deployment, and the Weblogic installation process. Key points include:
- Multiple versions of the same shared library can be deployed and active at the same time. A shared library is referenced through an application's deployment descriptor.
- To start a managed server, the administration server must be running and the node manager for the machine hosting the managed server must be configured and running.
- Server staging mode determines the default deployment mode if one is not specified.
- Modifying the cluster address attribute ensures load balancing and failover work correctly if a proxy
Oracle Weblogic Server 11g: System Administration I
QUESTION NO: 1 Which two statements are true about java EE shared libraries? A. A shared library cannot be deployed to a cluster. B. An application that is targeted to server1 can use a shared library that is targeted to server 2. C. Multiple versions of the same shared library can be deployed and be active at the same time D. A shared library is referenced through an application's deployment descriptor. Answer: C,D Explanation: C: If more than one copy of myLibrary is registered, WebLogic Server selects the library with the highest specification version. If multiple copies of the library use the selected specification version, WebLogic Server selects the copy having the highest implementation version. D: A Java EE application can reference a registered shared Java EE library using entries in the applications weblogic-application.xml deployment descriptor. Reference: Referencing Shared Java EE Libraries in an Enterprise Application http://docs.oracle.com/cd/E12840_01/wls/docs103/programming/libraries.html QUESTION NO: 2 Refer to the Exhibit. You use the Start button in the administration console to start managed2 successfully. Which two statements must be true? A. Managad2 is part of a cluster. B. The Administration Server is running. C. Managed2 has applications deployed to it. D. The Node Manager for machine2 is configured and running. 2 E. The Node Manager for the Administration Server machine is configured and running. Answer: B,D Explanation: B: The administration server must be running. Note: A WebLogic Server administration domain is a logically related group of WebLogic Server resources. Domains include a special WebLogic Server instance called the Administration Server, which is the central point from which you configure and manage all resources in the domain. D: Node Manager is a WebLogic Server utility that enables you to start, shut down, and restart Administration Server and Managed Server instances from a remote location. Although Node Manager is optional, it is recommended if your WebLogic Server environment hosts applications with high availability requirements. A Node Manager process is not associated with a specific WebLogic domain but with a machine. You can use the same Node Manager process to control server instances in any WebLogic Server domain, as long as the server instances reside on the same machine as the Node Manager process. Node Manager must run on each computer that hosts WebLogic Server instances -- whether Administration Server or Managed Server -- that you want to control with Node Manager. QUESTION NO: 3 Within your data center, the Administration and Managed Servers utilize a shared, central storage device, which servers access via NFS. In this scenario, your application files no longer need to be copied to servers across the network. Which server attribute allows you to override this behavior? A. Startup Mode B. Staging Mode C. Root Directory D. Listen Address Answer: B Explanation: The server staging mode specifies the default deployment mode for a server if none is specified at deployment time. For example, the server staging mode is used if you deploy an application or module using weblogic.Deployer and you do not specify a staging mode. Reference:http://docs.oracle.com/cd/E12840_01/wls/docs103/ConsoleHelp/taskhelp/deployment/S etAServerStagingMode.html 3 QUESTION NO: 4 An EJB application is targeted to a cluster. Remote EJB clients can therefore take advantage of WebLogic Servers load balancing and failover capabilities. However, a proxy server exists between the clients and the cluster, which performs IP address translation. Which cluster attribute should you modify to ensure that load balancing and failover work correctly? A. Multicast Address B. Persistent Store C. Cluster Address D. Migration Basis E. Replication Channel Answer: C Explanation: Note: Updating Proxy Service Configurations for an Expanded Cluster If your AquaLogic Service Bus configuration includes one or more proxy services that use JMS endpoints with cluster addresses, then you must also perform the following procedure using the AquaLogic Service Bus Console after adding the new managed server to the cluster: The proxy services are now configured for operation in the extended domain. Reference: eDocs Home > BEA AquaLogic Service Bus 2.0 Documentation > Deployment Guide > Configuring a Clustered Deployment QUESTION NO: 5 You run the default startmanageWeblogic (.cmd in Windows) script as shown here: startmanageWeblogic.sh server1 http://192.168.1.102:8001. What does this do? A. It starts the administration server named server1, which is running at 192.168.1.102.8001. B. It starts the managed server named server1, which is running at 192.168.1.102.8001. C. It starts the managed server named server1 whose Node Manager is running at 192.168.1.102.8001. D. It starts the Managed Server named server1 whose Administration Server is running at 192.168.1.102:8001. Answer: D 4 Explanation: A Managed Server is a WebLogic Server instance that runs deployed applications. It refers to the Administration Server for all of its configuration and deployment information. Usually, you use Managed Servers to run applications in a production environment. See step 4 and 5 below in particular: To use the WebLogic Server scripts to start Managed Servers: See Creating WebLogic Domains Using the ConfigurationWizard or "Create Managed Servers" in the Administration Console Online Help. where DOMAIN_NAME is the directory in which you located the domain. By default, this directory is BEA_HOME\user_projects\domains\DOMAIN_NAME. where managed_server_name specifies the name of the Managed Server and admin_url specifies the listen address (host name or IP address) and port number of the domain's Administration Server. For example, the following command uses startManagedWebLogic.cmd to start a Managed Server named myManagedServer. The listen address for the domain's Administration Server is AdminHost:7001: c:\bea\user_projects\domains\mydomain\bin\startManagedWebLogic.cmd myManagedServer http://AdminHost:7001 Reference: Starting Managed Servers with a Startup Script QUESTION NO: 6 An application requires a JDBC data source, which you create in the domain. You name it but the administrator allot another domain name the same data source DatasourceB. Without modifying either domain, which is the best method to ensure that the application deploys successfully in both? A. Create a separate application archive to use with each domain. B. Create a separate deployment plan file to use with each domain. C. Create and register a custom deployment listener. D. Modify the application code to determine the current domain. Answer: B Explanation: A WebLogic Server deployment plan is an optional XML document that you use to configure an application for deployment to a specific WebLogic Server environment, such as a domain. 5 Reference: Deploying Applications To WebLogic Server, Configuring Applications for Production Deployment QUESTION NO: 7 Identify three options for Keystores in a server's configuration. A. Demo Identity and Demo Trust B. Demo Identity and Java Standard Trust C. Java Standard Identity and Custom Trust D. Custom Identity and Demo Trust E. Custom Identity and Custom Trust F. Custom Identity and Command Line Trust Answer: A,B,E Explanation: Please refer to the screenshot below: Reference: http://docs.oracle.com/cd/E23549_01/apirefs.1111/e13952/pagehelp/Corecoreserverserverconfigk eystoretitle.html#attributes QUESTION NO: 8 When installing Oracle Weblogic Server 11g with the graphical installer, which three statements are true? A. You must choose either a typical or a custom installation. 6 B. You install under Microsoft Windows because the graphical installer is available only for Window C. You may create a new middleware home directory or choose an existing one. D. You must register for critical security updates. E. You may install a JDK or choose one that was previously installed. Answer: A,C,E Explanation: Tasks WebLogic Server Product Installation Procedure Step 1 - Obtain the appropriate installation file for your platform Step 2 - Complete the installation planning requirements Ensure that your system environment meets the requirements for the installation. Also determine your Oracle Middleware home directory, and product installation home directories. (C) When you are installing WebLogic Server, you are prompted to choose an existing Middleware home directory or specify a path to create a new Middleware home directory. If you choose to create a new directory, the installation program automatically creates it for you. Step 3 - Determine the appropriate installation mode for your situation Step 4 - Determine the type of installation (A) There are two types of installation Typical or Custom. The type of installation depends on the products and sub-components you want to install. Step 5 - Install the software Step 6 - Create a WebLogic domain E: The JDK selection screen. This screen is displayed only if you selected a Custom installation. It is not displayed if you are running an Upgrade installer. This screen displays a list of JDKs. This list contains JDKs that are available for (and common across) previous installations of all the selected WebLogic Server components. Select the JDK that you want to install with the product. Reference: Oracle Fusion Middleware Installation Guide for Oracle WebLogic Server 11g Release 1, Running the Installation Program in Graphical Mode Reference: Oracle Fusion Middleware Installation Guide for Oracle WebLogic Server 11g Release 1, Installation Overview QUESTION NO: 9 Each domain has a directory called servers that contains subdirectories for each server in the domain. Your domain has a managed server named managed1. When will the managed1 directory be created? 7 A. When the managed1 server is defined in the configuration Wizard B. When the domain is created C. When the administration server comes up for the first time D. When the managed1 server1 comes for the first time Answer: D Explanation: This directory is created when the server is started for the first time. QUESTION NO: 10 Identify three properties required by the domain Configuration Wizard when creating a new domain. A. machine name B. Managed Server name C. domain startup mode D. domain name E. administrator username and password Answer: C,D,E Explanation: C: Choose the Startup Mode Specify the startup mode for your domain. Either Development or Production D: The Create WebLogic Domain window prompts you to specify the name and pathname for the domain, and initiate its creation. E: The Configure Administrator Username and Password window prompts you to specify a username and password to be used for starting the Administration Server. Reference: Creating WebLogic Domains Using The Configuration Wizard http://docs.oracle.com/cd/E13179_01/common/docs92/confgwiz/newdom.html QUESTION NO: 11 Which two statements are true about adding servers to a cluster? A. When you create a cluster, you must add at least one server to it. B. Only managed servers can be in a cluster. 8 C. The administration server is automatically added to a new cluster. D. You must explicitly identify which servers belong to the cluster. Answer: A,B Explanation: A cluster must include at least one server. A clustered is administered through an administration server, but the cluster consists of managed servers only. QUESTION NO: 12 Consider a single JMS module that includes a connection factory as well as queue. Based on your systems requirements, the connection factory needs to be made available to all servers in the domain. The queue, on the other hand, can be targeted to only a single JMS server domain. What is the best way to achieve the desired JMS setup? A. Create two subdeployments within the JMS module. B. Target the JMS server to the JMS module. C. Target the JMS module to the entire domain. D. Replace the queue with a topic. Answer: A Explanation: A subdeployment is a mechanism by which JMS module resources (such as queues, topics, and connection factories) are grouped and targeted to a server resource (such as JMS servers, server instances, SAF agents, or a cluster). For example, you can group a connection factory with stand-alone queues or topics in a sub- deployment targeted to a specific JMS server, which guarantees that all these resources are co- located to avoid extra network traffic. Another advantage of such a configuration would be if the targeted JMS server needs to be migrated to another WebLogic server instance, then the con- nection factory and all its connections will also migrate along with the JMS server's destinations. However, when stand-alone queues or topics are members of a subdeployment, a connection factory can only be targeted to the same JMS server. Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, Configure subdeployments in JMS system modules 9 QUESTION NO: 13 Which three attributes are part of the configuration of an existing Managed Server and can be modified through the" administration console? A. name of the server B. the cluster it is in C. the machine it runs on D. its replication group E. whether it is in Development Mode or Production Mode F. that it should become the Administration Server for the domain Answer: B,C,D Explanation: B: Attribute label:Cluster The cluster to which this server belongs. If set, the server will listen for cluster multicast events. This is a configurable attribute. C:Attribute label:Machine The WebLogic Server host computer (machine) on which this server is meant to run. This is a configurable attribute. D: Server --> Configuration --> Cluster A WebLogic Server cluster is a group of servers that work together to provide a more scalable, more reliable application platform than a single server. Use this page to specify a server's primary and secondary replication group, cluster weight, and the interface address used to handle multicast traffic. Attribute label: Replication Group Description: Defines preferred clustered instances considered for hosting replicas of the primary HTTP session states created on the server. Reference: BEA WebLogic Server 8.1 Documentation, Server --> Configuration --> General QUESTION NO: 14 Which can be associated with multiple domains? A. Cluster B. Server Log C. Node Manager D. Administration Server 10 Answer: C Explanation: A Node Manager process is not associated with a specific WebLogic domain but with a machine. You can use the same Node Manager process to control server instances in any WebLogic Server domain, as long as the server instances reside on the same machine as the Node Manager process. Reference: Using Node Manager to Control Servers Reference: Understanding WebLogic Server Clustering http://docs.oracle.com/cd/E11035_01/wls100/cluster/overview.html QUESTION NO: 15 Identify two supported methods of deploying a JMS module to a domain. A. Create a module by using the administration console. B. Load a module into the WebLogic database. C. Include a module file within a web application archive. D. Include a module file within an enterprise application archive. E. Define a module within an existing JDBC module. Answer: A,D Explanation: A: Main Steps for Creating Packaged JMS Application Modules Follow these steps to configure a packaged JMS module: If necessary, create a JMS server to target the JMS module to, as explained in "Configure JMS Servers" in the Administration Console Online Help. Create a JMS system module and configure the necessary resources, such as queues or topics, as described in "Configure JMS system modules and add JMS resources" in the Administration Console Online Help. The system module is saved in config\jms subdirectory of the domain directory, with a "-jms.xml" suffix. Copy the system module to a new location, and then: Give the module a unique name within the domain namespace. Delete the JNDI-Name attribute to make the module application-scoped to only the application. Add references to the JMS resources in the module to all applicable J2EE application com- ponent's descriptor files, as described in Referencing a Packaged JMS Application Module In Deployment Descriptor Files. Package all application modules in an EAR, as described in Packaging an Enterprise Application With a JMS Application Module. Deploy the EAR, as described in Deploying a Packaged JMS Application Module. 11 D:JMS application modules can be packaged as part of an Enterprise Application Archive (EAR), as a packaged module. Packaged modules are bundled with an EAR or exploded EAR directory, and are referenced in the weblogic-application.xml descriptor. The packaged JMS module is deployed along with the Enterprise Application, and the resources defined in this module can optionally be made available only to the enclosing application (i.e., as an application-scoped resource). Such modules are particularly useful when packaged with EJBs (especially MDBs) or Web Applications that use JMS resources. Using packaged modules ensures that an application always has required resources and simplifies the process of moving the application into new environments. Reference: Packaging JMS Application Modules In an Enterprise Application QUESTION NO: 16 Which statement is true about the java Node Manager? A. It runs on Windows not on Linux B. In its secure form, it uses one-way SSL. C. It does not use the nodemanager.domains file, whereas the script-based Node Manager. D. Unlike the script based Node Manager, it should not be run as an operating system service Answer: B Explanation: Node Manager security relies on a one-way SSL connection between the client and server. Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, Configuring Java-based Node Manager Security http://docs.oracle.com/cd/E21764_01/web.1111/e13740/java_nodemgr.htm#i1068397 QUESTION NO: 17 Which two statements are true about a WebLogic domain? A. It is the basic administrative unit of WebLogic Server. B. It is an optional administrative construct to organize groups of WebLogic 12 C. Administration Servers are defined within a domain, but Managed Servers D. You must first have a domain to define a WebLogic Server cluster. E. Every domain has one Administration Server and at least one managed server Answer: A,D Explanation: A: A domain is the basic administration unit for WebLogic Server instances. D: To define a WebLogic Server cluster there must be a domain: Note:Before you start the Managed Servers in a domain, start the Administration Server. When you start a standalone or clustered Managed Server, it contacts the Administration Server for its configuration information. In this way, the Administration Server operates as the central control entity for the configuration of the entire domain. Reference: Configuring and Managing WebLogic Server http://docs.oracle.com/cd/E13222_01/wls/docs81/adminguide/overview_domain.html QUESTION NO: 18 Which two statements are true about multicast communication within a cluster? A. Multicast can be used for cluster heartbeat messages. B. Multicast is used to replicate session state between servers. C. Multiple clusters can share the same multicast address and port. D. You may disable multicast on individual cluster members. E. Multicast traffic is often limited to a single subnet. Answer: A,E Explanation: A: WebLogic Server instances in a cluster communicate with one another using two basic network technologies: * IP sockets, which are the conduits for peer-to-peer communication between clustered server instances. * IP unicast or multicast, which server instances use to broadcast availability of services and heartbeats that indicate continued availability. E: In many deployments, clustered server instances reside within a single subnet, ensuring multicast messages are reliably transmitted. However, you may want to distribute a WebLogic Server cluster across multiple subnets in a Wide Area Network (WAN) to increase redundancy, or to distribute clustered server instances over a larger geographical area. Reference: Using WebLogic Server Clusters, Communications In a Cluster 13 http://docs.oracle.com/cd/E11035_01/wls100/cluster/features.html QUESTION NO: 19 Identify two true statements about an Oracle WebLogic Server JMS Connection Factory. A. A default JMS Connection Factory exists and is named weblogic.jms.connections B. A Connection Factory can be targeted to only one WebLogic Server. C. A JMS Connection Factory's Default Priority and Default Time-to-Live attribute cannot be modified after the Connection Factory is created. D. A JMS Connection factory can be created as a system module resource within the administration console. Answer: C,D Reference: Programming WebLogic JMS, Understanding WebLogic JMS QUESTION NO: 20 In WLST, you enter the shutdown () command with no arguments. Which statement is true in this case? A. The server you are connected to will shut down. B. The command does a "Force" shutdown. C. The command blocks user interaction. D. The command has timeout of 30,000 milliseconds. Answer: A Explanation: The WLST life cycleshutdowncommand gracefully shuts down a running server instance or cluster. Reference: WebLogic Scripting Tool ,Life Cycle Commands QUESTION NO: 21 Which three statements are true about WebLogic users and groups? 14 A. A user is associated with a single security provider. B. A user can be a member of several groups. C. A group can contain other groups. D. A group consists of a name and a password. E. A group is associated with multiple security providers. F. Both users and groups are assigned a keystore. Answer: B,C,E Explanation: B: For efficient security management, BEA recommends adding users to groups. A group is a collection of users who usually have something in common, such as working in the same department in a company. C: Example of group nesting: Every user is a member of the everyone group. The users group is nested within the everyone group. E (not A): You can configure more than one security provider of a given type in a security realm. For example, you might use two or more different Role Mapping providers or Authorization providers. If you have more than one security provider of the same type in a security realm, the order in which these providers are called can affect the overall outcome of the security processes. By default, security providers are called in the order that they were added to the realm. You can use the Administration Console to change the order of the providers. Note: Security Providers - are modules that provide security service to application to protect Weblogic resource. Types of security providers in WebLogic Server are Authentication Provider, Authorization Provider, Auditing Providers, Credential Mapping Provider, Identity Assertion Provider, Principal Validation Provider, Adjudication Providers, Role Mapping Providers, Certificate Lookup and Validation Providers, Keystore Providers and Realm Adapter providers QUESTION NO: 22 Your production JMS server and/or its consumers are not able to handle the incoming message workload. The number of messages on the server never stabilizes and the server eventually becomes overload. Which JMS server attribute will best help prevent the JMS server from being overloaded by producers? A. Producer Pause High 15 B. Messages Threshold High C. Reconnect Polity D. Paging Directory E. Pool Maximum Capacity Answer: B Explanation: JMS Configuration option ' Messages Threshold High': The upper threshold (number of messages stored in this JMS server) that triggers flow control and logging events. A value of -1 disables the events for this JMS server. If the number of messages exceeds this threshold, the triggered events are: Log Messages - A message is logged on the server indicating a high threshold condition. Flow Control - If flow control is enabled, the JMS server becomes armed and instructs producers to begin decreasing their message flow. Reference: Administration Console Online Help, JMS Server: Configuration: Thresholds and Quotas QUESTION NO: 23 Which three statements are true about WebLogic clusters? A. Clusters provide clients with transparent failover. B. EJB applications can be targeted to an entire cluster. C. All cluster members must bind to the same port number. D. Cluster members replicate application data by using heartbeats. E. Cluster members can be associated with one or more domains. F. Web applications require a proxy in order to be used in a cluster. Answer: A,B,C Explanation: A: If an object is clustered, failover and load balancing for that object is available. In a WebLogic Server cluster, application processing can continue when a server instance fails. You cluster application components by deploying them on multiple server instances in the cluster so, if a server instance on which a component is running fails, another server instance on which that component is deployed can continue application processing. The choice to cluster WebLogic Server instances is transparent to application developers and clients. 16 B: A clustered application or application component is one that is available on multiple WebLogic Server instances in a cluster. If an object is clustered, failover and load balancing for that object is available. Deploy objects homogeneouslyto every server instance in your clusterto simplify cluster administration, maintenance, and troubleshooting. Web applications can consist of different types of objects, including Enterprise Java Beans (EJBs), servlets, and Java Server Pages (JSPs). Note: Load balancing and failover for EJBs and RMI objects is handled using replica-aware stubs, which can locate instances of the object throughout the cluster. C: Cluster Multicast Address and Port Identify the address and port you will dedicate to multicast communications for your cluster. Reference: Using WebLogic Server Clusters, Understanding WebLogic Server Clustering QUESTION NO: 24 Which three statements are true when an Administration Server is compared to a managed server? A. A domain must have at least one of each type of server. B. Administration Server keeps a domain log, but a Managed Server does not. C. A Managed Server keeps a server log, but an Administration Server does not. D. When a Managed Server comes up, it asks its Administration Server for the latest configuration. E. An Administration Server manages the domain configuration. F. JEE applications are deployed only to a Managed Server. Answer: D,E,F Explanation: D: When a Managed Server starts, it contacts the Administration Server to retrieve its configuration information. If a Managed Server is unable to connect to the specifiedAdministration Server during startup, it can retrieve its configuration directly by reading a copy of the config.xml file and other files located on the Managed Server's own file system. E:One instance of WebLogic Server in each domain acts as an Administration Server.The Administration Server provides a central point for managing a WebLogic Server domain. F: For a typical production system, BEA recommends that you deploy your applications only on Managed Servers. This practice allows you to dedicate the Administration Server to configuration and monitoring of the domain, while one or more Managed Servers service your applications. Reference: Overview of WebLogic Server System Administration 17 QUESTION NO: 25 Which three tasks can be performed by the Node manager? A. Start a server. B. Define a node server. C. Host the Node Manager console. D. Automatically restart a failed server. E. Kill a failed application on a server. F. Kill the process of a server that did not shut down properly. Answer: A,D,F Explanation: Node Manager enables you to perform these tasks: * Start and stop remote Managed Servers. (A) * Monitor the self-reported health of Managed Servers and automatically kill server instances whose health state is "failed". (F) * Automatically restart Managed Servers that have the "failed" health state, or have shut down unexpectedly due to a system crash or reboot. (D) QUESTION NO: 26 You have successfully created a global data source and connection pool via the administration console. In which directory relative to the domain will this new data source and connection pool definition located? A. in a directory named config/dataSource B. in a directory named config/connPool C. in a directory named config/resources D. in a directory named config/jdbc E. in a directory named config Answer: D Explanation: When you create a JDBC resource (data source or multi data source) using the Administration Console or using the WebLogic Scripting Tool (WLST), WebLogic Server creates a JDBC module in the config/jdbc subdirectory of the domain directory, and adds a reference to the module in the domains config.xml file. 18 Reference: Configuring WebLogic JDBC Resources QUESTION NO: 27 What is the maximum number of targets (standard or migrate) that you can configure for a JMS server? A. 0 B. 1 C. 2 D. No limit Answer: D Explanation: To configure the migratable target servers for JMS-related service migration: 1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center). 2. In the Domain Structure tree, expand Environment, then select Migratable Targets. 3. On the Summary of Migratable Targets page, click New. On the Create a new Migratable Target page: In Name, enter a name for the migratable target. In Cluster, select a configured cluster for the migratable target. Reference: Configure migratable targets for JMS-related services QUESTION NO: 28 You are deploying a web application called inventory.war. It has been installed and has the Stat* "Prepared." It is targeted to the Managed Server named managed1. The web application's context route is /inventory and the starting page is index.jsp However, you want to test the application before allowing end users access to it. In the administration console, you select inventory-war, and then select Start and "Servicing only administration requests. In your web browser, you need to enter a host and port followed by /inventory/index.jsp. What host and port would you use? 19 A. managed, host and port B. Administration Server host and port C. Managed1 host and Administration port D. Administration Server host and Administration port Answer: D Explanation: Servicing only administrative requests: Specifies that WebLogic Server make the application available in Administration Mode only. While in Administration mode, the application can be accessed only by internal clients through a configured Administration port. Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, A weblogic.Deployer Command-Line Reference QUESTION NO: 29 You deployed a simple web application WAR by using the administration console. Its state is currently "Active." In the administration console, under Configuration of the application, you change some deployment descriptor values. What happens when you save such changes? A. The changes are in memory and temporary B. This is not possible because changes cannot be made to an "Active" application. C. You are prompted to select a location for a new deployment plan where the changes will be stored. D. The archive is opened and new versions of the deployment descriptors are placed within it. Answer: C Explanation: Note: You can use the Administration Console to configure selected deployment descriptor element values for an EJB that is deployed as an exploded application. To configure editable deployment descriptor values for an EJB that is deployed as an exploded application: 1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center). 2. In the left pane of the Administration Console, select Deployments. 3. In the right pane, click the desired EJB module. 20 4. Select the Configuration > General tab. Selected deployment descriptor elements for the EJB are listed. 5. Enter new values for the elements you want change, and click Save. 6. To activate these changes, in the Change Center of the Administration Console, click Activate Changes. Not all changes take effect immediatelysome require a restart Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, Configure deployment descriptor values QUESTION NO: 30 Your server includes an application that uses a generic JDBC data source to connect to a database. However, the network connection between the server and the database is not 100% reliable. You wish to avoid scenarios in which the application fails due to a failed JDBC connection. Identify two data source attributes to help accomplish this. A. Statement Cache B. Pool Reserve Mode C. Test Table Name D. Test Connection Mode E. Test Connections on Reserve Answer: A,E Explanation: A: Each connection in a data source has its own individual cache of prepared and callable statements used on the connection. However, you configure statement cache options per data source. That is, the statement cache for each connection in a data source uses the statement cache options specified for the data source, but each connection caches it's own statements. E: When Test Connections On Reserve is enabled, when your application requests a connection from the data source, WebLogic Server tests the connection using the query specified in Test Table Name before giving the connection to the application. Testing reserved connections can cause a delay in satisfying connection requests, but it makes sure that the connection is viable when the application gets the connection. Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, Configuring JDBC Data Sources 21 http://docs.oracle.com/cd/E12839_01/web.1111/e13737/jdbc_datasources.htm#i1192665 QUESTION NO: 31 You have selected Configuration Archive Enabled for the domain. When a configuration change and activated, where is the previous version of the configuration archived? A. in the Oracle database B. in the config directory C. in the pending directory D. in the console-ext directory E. in the configArchive directory Answer: E Explanation: You can configure WebLogic Server to make backup copies of the configuration files. This facilitates recovery in cases where configuration changes need to be reversed or the unlikely case that configuration files become corrupted. When the Administration Server starts up, it saves a JAR file named config-booted.jar that contains the configuration files. When you make changes to the configuration files, the old files are saved in the configArchive directory under the domain directory, in a JAR file with a sequentially-numbered name like config-1.jar. Reference: Understanding Domain Configuration, Configuration File Archiving http://docs.oracle.com/cd/E12840_01/wls/docs103/domain_config/config_files.html QUESTION NO: 32 When a typical application utilizes a JDBC data source, the process involves several steps. Identify three of these steps. A. The application returns the connection to the data source. B. The application looks up the data source using the JNDI name. C. The application tests the connection to verify the database's availability. D. The application adds a new connection to the data source if none are available. E. The application requests a connection from the data source. Answer: B,D,E Explanation: Applications look up the data source on the JNDI tree or in the local application context (B) and then reserve a database connection with the getConnection (E) method. Data 22 sources and their connection pools provide connection management processes that help keep your system running and performant. B: JNDI Name - Enter the JNDI path to where this JDBC data source will be bound. Applications look up the data source on the JNDI tree by this name when reserving a connection. Note: If you've done any work with JDBC DataSources in a Web application, you already understand the basic process: create an initial JNDI (Java Naming and Directory Interface) context, then use the context to perform a "lookup" to retrieve your DataSource. Reference: Administration Console Online Help, Create JDBC data sources http://docs.oracle.com/cd/E15051_01/wls/docs103/ConsoleHelp/taskhelp/jdbc/jdbc_datasources/C reateDataSources.html QUESTION NO: 33 As an Oracle WebLogic Server administrator, you are given an EAR file application to deploy. Identity three reasons for creating an EAR file first. A. After the .ear file has been deployed, the developer will not have to ask for your assistance to deploy it again. B. The EAR file is created to avoid namespace clashes in the Java code. C. The EAR file can contain multiple WAR, EAR, and other resources to easily bundle together. D. The EAR file is required if you are deploying an application. E. The EAR file can declare application-wide security roles definitions. Answer: A,B,E Explanation: E: An EARfile contains: * Web module A WAR file containing the view logics like JSPs, Servlets, Html contents. Every web module must have one Web Deployment descriptor placed inside WEB-INF/web.xml web.xml is a J2EE standard deployment descriptor. Among other settings, it has a set of elements for configuring security for the web application. Note: *An EAR file provides a convenient way to bundle up all pieces of a J2EE application. It may contain Java Module, WAR Module or an EJB Jar module. 23 An EAR can contain at least any one of these modules. EAR may contain more Modules as well. *To bring your portal online in a production environment, it is first necessary to prepare your portal application. Typical preparation steps include modifying deployment descriptors for the product, building the Enterprise archive (EAR) with all its pre-compiled classes, and deciding if you want to compress that EAR into an archive or leave it exploded. Reference: Preparing and Deploying the EAR File QUESTION NO: 34 Identify three types of JMS resources that can be configured as a part of a JMS module. A. JMS Distributed Destination B. JMS Connection Factory C. JMS Data Source D. JMS Destination E. JMS Server Answer: A,B,D Explanation: Configurable JMS Resources in Modules The following configuration resources are defined as part of a system module or an application module: *Distributed destinations (A, D) *Connection factories (B) *Queue and topic destinations * Templates * Quota * Foreign servers * MS store-and-forward (SAF) configuration items All other JMS environment-related resources must be configured by the administrator as domain configuration resources. This includes: * JMS servers required(not E) * Store-and-Forward agents (optional) * Path service (optional) *Messaging bridges (optional) * Persistent stores (optional) Reference: Configuring And Managing WebLogic JMS, Configurable JMS Resources in Modules 24 QUESTION NO: 35 A managed server, myserver1, has a boot.properties file in the security directory. It was started with the startManageWeblogic.sh script(.cmd in windows) and his boot.properties file was used for its startup credentials. You just used the administration console to change all administrator passwords. To continue using boot.properties, what can you do? A. This is not possible. A boot.properties file can be used only with the Administration Server. B. Delete boot.properties. In the administration console, under the myserver configuration, select Generate Boot Identity file. C. You need not do anything- The password in boot .properties was automatically updated by administration console when you changed the password. D. Edit boot.propetties. Type over the encrypted password with the new password in clear text. The next time myserver1 is started, it will encrypt the password in the file. E. Delete boot .properties. Use the WLST encrypt () command to create a new boot.properties file containing the new password. Copy that file into the security directory of myserver1 Answer: D Explanation: If you install the WebLogic Server Examples component, the default user weblogic is created that has permission to start and stop WebLogic Server. The default password is welcome1. If you change the password of the weblogic user, WebLogic Server does not automatically update this password in the boot.properties file, which is located in the DOMAIN_NAME/servers/AdminServer/security directory. If you change the password for user weblogic, you can use either of the following workarounds so that you can continue to boot a WebLogic Server instance via that username and its new pass- word: * Remove the boot.properties file. Subsequently each time you start WebLogic Server, you are prompted for the username and password. The changed password for the weblogic user will be accepted. * Modify the existing boot.properties file, changing the username and password as follows: username=weblogic password=welcome1 Subsequently during the server startup process, the boot.properties file is encrypted again. Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online 25 Help 11g Release 1, Limitation Regarding User weblogic http://docs.oracle.com/cd/E15523_01/web.1111/e13708/overview.htm QUESTION NO: 36 Refer to the Exhibit. Which three statements are true about using the administration console to shut down a server? A. The configuration must first be locked. B. The choice "Force Shutdown Now" drops in-work requests. C. Both the choices, "When work completes" and "Force Shutdown Now", reject any new requests. D. The choice "When work completes" allows in work requests to complete before the server down. E. The administration console can be used to shut down Managed Servers, such as managed not the Administration Server. Answer: A,B,D Explanation: A: See step 3) in the note below. B: select Force Shutdown Now to stop the server immediately without completing ongoing tasks. D: Select When Work Completes to gracefully shut down the server A graceful shutdown gives WebLogic Server subsystems time to complete certain application processing currently in progress. Note: Stop WebLogic Server 1. Start WebLogic Server Administration Console by typing http://[host name]:7001/console in the 26 URL line of a web browser. 2.Log in by typing the user name and password that was used when creating this WebLogic configuration, and then click Log In. 3.Under Change Center, click Lock & Edit. 4.Under Domain Structure, click Environment > Servers. Click AdminServer and, on the Settings for AdminServer pane, click the Control tab. Ensure that AdminServer is selected in the Server Status table and click Shutdown. 5.Select When Work Completes to gracefully shut down the server or select Force Shutdown Now to stop the server immediately without completing ongoing tasks. On the Server Life Cycle Assistant pane, click Yes to complete the shutdown. The WebLogic Server Administration Console is no longer available (not E), and the command prompt that you ran the start command from is available. QUESTION NO: 37 Your company is developing batch order system that utilities JMS. Each order message that is created will be broadcasted to and consumed by several order processing and billing applications. As part of configuring the domain that will support this system, which type of JMS destination resource should you create? A. Grid B. Queue C. Topic D. Batch E. Client Answer: C Explanation: A JMS destination identifies a queue (point-to-point) or topic (publish/subscribe) resource within a JMS module. A JMS topic identifies a publish/subscribe destination type for a JMS server. Topics are used for asynchronous peer communications. A message delivered to a topic is distributed to all consumers that are subscribed to that topic. Reference: Configuring Basic JMS System Resources,Queue and Topic Destination Configuration QUESTION NO: 38 27 You monitor a running JDBC data source with the console and note the following values: Current Capacity = 10 Current Capacity High Count = 20 Identify two plausible explanations for these metrics. A. The pool size has increased. B. The pool size has decreased. C. The workload was higher than it is now. D. The workload was lower than it is now. E. The statement cache size is 10. F. The statement cache size is 20. Answer: B,C Explanation: The pool size has decreased from a maximum 20 to 10. The workload has been 20. Now it is 10. The workload was higher. Note: Current Capacity:The current count of JDBC connections in the connection pool in the data source. Current Capacity High Count: Highest number of database connections available or in use (current capacity) in this instance of the data source since the data source was deployed. Note: Reference:Administration Console Online Help, JDBC Data Source: Monitoring: Statistics QUESTION NO: 39 Identify the server attributes that you must configure to communicate with the server via HTTPS. A. SSL Listen Address B. SSL listen Port C. SSL Listen Port Enabled D. Production Mode Enabled E. Startup Mode Answer: B Explanation: Enabling SSL under WLS 10.3 See step 6) below. 28 Steps to configure WLS for SSL: 1) Open the WLS console 2) Select from the Domain Structure -> (your domain) -> Environment -> Servers 3) Select the server from the Summary of Servers page you wish to configure for SSL. 4) Under the Settings for (server name) page, select the Configuration tab, then General tab (the defaults). 5) If WLS is running in production mode, select the Lock & Edit button. 6) Select the SSL Listen Port Enabled checkbox, and enter your preferred port in the SSL Listen Port. 7) Press the Save button. 8) If WLS is running in production mode, select the Release Configuration button. Reference: Enabling SSL and disabling non-SSL under WLS 10.3 QUESTION NO: 40 You are creating a new domain by using the Configuration Wizard, based solely on the Basic WebLogic Server Domain product (no template). Select three resources that you can create while still in the Configuration Wizard. A. Administration Server B. Managed Server C. Data Server D. JMS Server E. Cluster F. Domain Log Answer: A,B,E Explanation: A: The Configure the Administration Server window prompts you to define the configuration information for the Administration Server, including: Administration Server name Listen address Nonsecure and secure (optional) listen ports B: The Configure Managed Servers window prompts you to define the configuration information for one or more Managed Servers, including: Managed Server name Listen address Nonsecure and secure (optional) listen ports 29 E: The Configure Clusters window prompts you to define the configuration information for one or more clusters, including: Cluster name Multicast address and port Cluster address that identifies the Managed Servers in the cluster Frontend host if you are using a proxy server or a firewall. Frontend HTTP port if you are using a proxy server or a firewall. Reference: To create a custom domain with Managed Servers, a cluster, and application services http://docs.oracle.com/cd/E13196_01/platform/docs81/confgwiz/tutorials.html QUESTION NO: 41 Which three statements are true about the administration console? A. The administration console cannot be disabled. B. The context path of the administration console may be changed. C. The administration console may be extended. D. If a domain is in Development Mode, the administration console no longer requires an administration-level user when logging in. E. If a domain is in Production Mode, access to the administration console must be made through secure port. F. If the domain's Administration Port is enabled, access to the administration console must be made only through that port. Answer: B,C,D Explanation: B: The Console Context Path is an advance configuration option. The context path that you want to use in URLs that specify the Administration Console. Note: Create a new WebLogic Server domain based on a template. Templates allow you to recreate an existing domain for use in another context, such as migrating a domain containing an application under development to a production environment. C: An Administration Console extension is a WAR file that contains the resources for a section of a WebLogic Portal Web application. When you deploy the extension, the Administration Console creates an in-memory union of the files and directories in its WAR file with the files and directories in the extension WAR file. Once the extension has been deployed, it is a full member of the Administration Console: it is secured by the WebLogic Server security realm, it can navigate to other sections of the Adminis- tration Console, and if the extension modifies WebLogic Server resources, it 30 participates in the change control process. D: Basic Policy Conditions The basic policy conditions that are available in this release of WebLogic Server include: * Server is in Development ModeAllows access if the server that hosts the resource is running in development mode. Note:In the development mode, the configuration of security is relatively relaxed, allowing you to auto-deploy applications. Reference: Administration Console Online Help, Advanced Configuration Options Reference: Extending the Administration Console for Oracle WebLogic Server 11g Release 1 QUESTION NO: 42 Which three statements are true about deployment plans? A. A plan is an XML file. B. A plan is packaged within an application archive. C. You can generate a new plan with the administration console. D. A plan is a required to deploy EJB applications and modules. E. A plan may override values in an application's deployment descriptors. F. A single application deployment can be associated with multiple plans. Answer: A,C,E Explanation: A: A deployment plan is an XML document that defines an application's WebLogic Server deployment configuration for a specific WebLogic Server environment. C: The Administration Console updates or creates new deployment plans as necessary when you change configuration properties for an installed application. E: A deployment plan can apply changes to deployment properties stored in the applications existing WebLogic Server deployment descriptors. Reference: Overview of WebLogic Server Application Development, Deployment Plans QUESTION NO: 43 All the servers in your domain are running. 31 After you connect to the Administration Server in WLST you run the following command, which completes with no error: Progress = deploy (appName = salesapp, path = sales.war, target = managed1, managed2, planpath = plan.xml) Which two statements are true? A. The web application is now "Active." B. The command creates new deployment plan called plan.xml. C. In the administration console, the name of this deployment is sales.war. D. The web application has been targeted to managed1, managed2, and the Administration Server. E. You can view the status of the deployment by sending a message to the object named progress. Answer: A,E Explanation: They deploy command is used to deploy an application to a WebLogic Server instance. (A) The deploy command returns a WLSTProgress object that you can access to check the status of the command. (E) Note: Syntax deploy(appName, path, [targets], [stageMode], [planPath], [options]) * appName Name of the application or standalone J2EE module to be deployed. *targets Optional. Comma-separated list of the target. Each target may be qualified with a J2EE module name (for example, module1@server1) enabling you to deploy different modules of the application archive on different servers. This argument defaults to the server to which WLST is currently connected. Note 2: The WebLogic Scripting Tool (WLST) is a command-line scripting interface that system administrators and operators use to monitor and manage WebLogic Server instances and domains. Reference: WebLogic Scripting Tool, WLST Command and Variable Reference 32 QUESTION NO: 44 Your task is to create and start a managed server on a remote computer (a computer other than the one where the domain has been created and the Administration server is currently running). So far you have: 1. Created the managed server, called startmanaged1, in the administration console 2. Created a managed server" JAR file template by using the pack command or, the Administration server computer. Which order of steps on the remote computer will successfully finish your task? A. 3. Copy the JAR file from the Administration Server computer. 4. Run the unpack command on the JAR file. 5. In the new domain folder created by the command, start managed: by using the startManagedWebLogic. sh script (. cmd in Windows), which is found under its bin directory B. 3. Install WebLogic Server. 4. Copy the JAR file from the Administration Server computer. 5. Run the unpack command on the JAR file. 6. In the administration console, under the Control tab, select managed1 and click the Start button. C. 3. Install WebLogic Server. 4. Copy the JAR file from the Administration Server computer. 5. Run the unpack command on the JAR file. 6. In the new domain folder created by the command, start managed1 by using the Logic. sh script (. cmd in Windows), which is found under its bin directory. D. 3. Install WebLogic Server. 4. Copy the JAR file from the Administration Server computer. 5. Run the unpack command on the JAR file. 6. In the new domain folder created by the command, startmanaged1 by using the startManagedWeblogic.sh script (. cmd in Windows), which is found under its bin directory. Answer: D Explanation: Creating a Managed Server on a Remote Machine (Step 3) * Install WebLogic Server on the machines on which you want to host Managed Servers for the WebLogic domain. *Establish a session with the remote machine. You may use any valid method, such as telnet, to do so. Step 4: * Copy the Managed Server template to the remote machine. 33 * On the remote machine, navigate to the WLS_HOME\common\bin directory. * (Step 5) Run the following command: unpack -domain=domain -template=template.jar Starting Managed Servers on a Remote Machine * Start the Administration Server for the WebLogic domain * On the remote machine, navigate to the directory for the WebLogic domain that you created *(Step 6) Start the Managed Server on the remote machine. On a Windows system, run one of the following commands at the DOS prompt: startmy_managed_server startManagedWebLogic my_managed_server admin-url On a UNIX system, run one of the following commands: /startmy_managed_server.sh /startManagedWebLogic.sh my_managed_server admin-url Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, Reference: Creating and Starting a Managed Server on a Remote Machine QUESTION NO: 45 Identify three attributes of a WebLogic cluster. A. Listen Address B. Cluster Address C. Cluster Factory D. Messaging Mode E. Servers F. Targets Answer: B,D,E Explanation: WebLogic Cluster Attributes includes: B: * ClusterAddress Defines the address to be used by clients to connect to this cluster. This address may be either a DNS host name that maps to multiple IP addresses or a comma separated list of single address host names or IP addresses. If network channels are configured, it is possible to set the cluster address on a per channel basis. D: The Message Mode of a cluster can be either Unicast or multicast. E: Managed Servers are included in a WebLogic cluster. 34 Note:The config.xml file is an XML document that describes the configuration of a WebLogic Server domain. config.xml consists of a series of XML elements. The Domain element is the top- level element, and all elements in the Domain descend from the Domain element. The Domain element includes child elements, such as the Server, Cluster, and Application elements. These child elements may have children of their own. For example, the Server element includes the child elements WebServer, SSL and Log. The Application element includes the child elements EJBComponent and WebAppComponent. Each element has one or more configurable attributes. An attribute defined in config.dtd has a cor- responding attribute in the configuration API. For example, the Server element has a ListenPort attribute, and likewise, the weblogic.management.configuration.ServerMBean has a ListenPort attribute. Configurable attributes are readable and writable, that is, ServerMBean has a getListenPort and a setListenPort method. Reference: WebLogic Server Configuration Reference, Cluster attributes http://docs.oracle.com/cd/E13222_01/wls/docs81/config_xml/Cluster.html#447012 QUESTION NO: 46 A client accesses a web application named companystore that is running on WebLogic Server. After adding several items to the shopping cart, the host server crashes. The client is automatically redirected to another server by a proxy, but the shopping cart is now empty. Which WebLogic Server feature would you enable to remedy this situation? A. Application Persistence B. Message Persistence C. Session Replication D. Dynamic Failover E. Stateful Pooling Answer: C Explanation: In order for a cluster to provide high availability it must be able to recover from service failures. In clusters that utilize Web servers with WebLogic proxy plug-ins, the proxy plug-in handles failover transparently to the client. If a server fails, the plug-in locates the replicated HTTP session state on a secondary server and redirects the client's request accordingly. Reference: Using WebLogic Server Clusters, Failover and Replication in a Cluster 35 QUESTION NO: 47 Which three statements are true about the Change Center in administration console? A. The Change Center has a link to view the changes made so far. B. The Change Center is available only in a Production Mode domain. C. The Change Center has a link to view any servers that need to be restarted. D. After activating the changes to a server's configuration, you must always restart that server. E. In a Development Mode domain, the configuration lock can be acquired automatically. F. Changes must always be activated before they can be undone. Answer: A,C,F Explanation: A: You can view any changes that you have saved, but not yet activated, by clicking the View Changes and Restarts link in the Change Center. C: The View Changes and Restarts link presents two tabs, Change List and Restart Checklist: * The Change List tab presents all changes that have been saved, but not yet activated. * The Restart Checklist lists all servers for which non-dynamic changes have been activated, but which require restarts before the changes become effective. F (not D):As you make configuration changes using the Administration Console, you click Save (or in some cases Finish) on the appropriate pages. This does not cause the changes to take effect immediately. The changes take effect when you click Activate Changes in the Change Center. At that point, the configuration changes are distributed to each of the servers in the domain. If the changes are acceptable to each of the servers, then they take effect. If any server cannot accept a change, then all of the changes are rolled back from all of the servers in the domain. The changes are left in a pending state; you can then either edit the pending changes to resolve the problem or revert the pending changes. Note: To change a production domains configuration, you must: 1. Locate the Change Center in the upper left of the Administration Console screen. 2. Click the Lock & Edit button to lock the configuration edit hierarchy for the domain. 3. Make the changes you desire on the relevant page of the Console. Click Save on each page where you make a change. 4. When you have finished making all the desired changes, click Activate Changes in the Change Center. You can revert any pending (saved, but not yet activated) changes by clicking Undo All Changes in the Change Center. You can revert any individual change by going to the appropriate page in 36 the Administration Console and restoring the attribute to its previous value. Reference: Using the Change Center http://docs.oracle.com/cd/E13222_01/wls/docs103/intro/console.html#wp1122447 QUESTION NO: 48 Identify two methods for utilizing WebLogic Server's production redeployment feature. A. Specify a version identifier when deploying the application. B. Include a version identifier in the application's manifest file. C. Provide a version identifier when running the Plan Generator tool. D. Include a unique context root in the application's descriptor files. Answer: A,B Explanation: A: If you are testing the production redeployment feature, or you want to use production redeployment with an application that does not include a version string in the manifest file, specify a unique version string by using the -appversion option when deploying or redeploying an application B: To assign a version identifier to an application, BEA recommends that you store a unique version string directly in the MANIFEST.MF file of the EAR or WAR being deployed. Reference: Redeploying Applications in a Production Environment, Specifying an application version identifier http://docs.oracle.com/cd/E11035_01/wls100/deployment/redeploy.html#wp1020276 QUESTION NO: 49 Identify four attributes of a JDBC data source. A. URL B. Targets C. JNDI Name D. Delivery Mode E. Database Driver F. Server Log 37 Answer: A,B,C,E Explanation: A: When creating a JDBC data source using the Administration Console, you are prompted to select a JDBC driver. The Administration Console provides the driver class name and helps you construct the URL as required by the driver. B: JDBC Data Source: Targets.Use this page to select the servers or clusters on which you would like to deploy this JDBC data source. C: JNDI Name, The JNDI path to where this data source is bound. By default, the JNDI name is the name of the data source. E: When deciding which JDBC driver to use to connect to a database, you should try drivers from various vendors in your environment. In general, JDBC driver performance is dependent on many factors, especially the SQL code used in applications and the JDBC driver implementation. Reference: Configuring and Managing WebLogic JDBC, Understanding JDBC Data Sources QUESTION NO: 50 Identify two reasons for defining machines and assigning servers to them in Weblogic Server. A. A machine can be the proxy to a cluster. B. A machine definition is required to configure the Node Manager. C. To reference an instance of WebLogic Server, you must know its machine and port. D. Machine is a required organizational unit. A domain contains machines and machines contain servers. E. WebLogic Server uses server machine assignments to help it choose servers in a cluster on which to replicate session state. F. The machine's Cluster Weight attribute may be used by load balancers to help them determine how often to send requests to servers assigned to that machine. Answer: B,E Explanation: B: The Administration Server uses the machine definition in conjunction with the Node Manager application to start remote WebLogic Server instances. E: By default, WebLogic Server attempts to create session state replicas on a different machine than the one that hosts the primary session state. You can further control where secondary states are placed using replication groups. A replication group is a preferred list of clustered servers to be used for storing session state replicas. Using the WebLogic Server Console, you can define unique machine names that will host in- dividual server instances. These machine names can be associated with new WebLogic Server instances to identify where the servers reside in your system. Machine names are generally used to indicate servers that run on the same machine. 38 Reference: Administration Console Online Help, Machines Reference: Failover and Replication in a Cluster QUESTION NO: 51 The computer that the Administration Server was running on has crashed and cannot be restarted. Which three steps are required to bring up the Administration Server on the backup computer? A. Move the crashed computer's IP address to the backup computer. B. Have WebLoqic Server installed on the backup computer. C. Have a copy of the configuration and security files of the domain on the backup computer. D. Shut down the managed servers of the domain. E. Start the Administration Server on the backup computer. Answer: B,C,E Explanation: If a machine crash prevents you from restarting the Administration Server on the same machine, you can recover management of the running Managed Servers as follows: (B) 1. Install the WebLogic Server software on the new administration machine (if this has not already been done). 2. Make your application files available to the new Administration Server by copying them from backups or by using a shared disk. Your application files should be available in the same relative location on the new file system as on the file system of the original Administration Server. (C) 3. Make your configuration and security data available to the new administration machine by copying them from backups or by using a shared disk. For more information, refer to Directory and File Backups for Failure Recovery. (E) 4. Restart the Administration Server on the new machine. Reference: Avoiding and Recovering From Server Failure, Restarting an Administration Server on Another Machine QUESTION NO: 52 You received a signed certificate from a Certificate Authority and you wish to use the keytool command-line utility to store it in your keystore. Which command of keytool would you us A. genkeypair B. importcert 39 C. gensockey D. importkeystore E. storepasswd Answer: B Explanation: B: keytool import Reads the certificate or certificate chain (where the latter is supplied in a PKCS#7 formatted reply) from the file cert_file, and stores it in the keystore entry identified by alias. If no file is given, the certificate or PKCS#7 reply is read from stdin. keytool can import X.509 v1, v2, and v3 certificates, and PKCS#7 formatted certificate chains consisting of certificates of that type. Reference: Configuring Identity and Trust, Commonly Used keytool Commands http://docs.oracle.com/cd/E11035_01/wls100/secmanage/identity_trust.html QUESTION NO: 53 YCMJ are viewing the deployments in the administration console. A web application that is targeted to the Managed Server named server01 has a State of "Now." Which statement best explains this State? A. Server01 is running and the application has been installed. B. Sarver01 is shut down and the application has been installed. C. Server01 is running and the application has not been installed. D. Server01 is shut down and the application has not been installed. E. Server01 is running and the application was installed for the first time. F. Server01 is running and the application has been installed, but is not servicing requests. Answer: B Explanation: QUESTION NO: 54 Which three tasks are required to use JDBC session persistence for a web application? A. Enable automatic migration on each server. B. Create the session database table. C. Configure SSL on each server. D. Edit the weblogic.xml descriptor. 40 E. Create a multi data source. F. Create a JDBC data source. Answer: B,D,F Explanation: To specify JDBC-based persistent session storage for a Web application, follow these steps: 1. (B) Create a table named wl_servlet_sessions in the database 2. Assign a connection pool that has read/write permissions to the wl_servlet_sessions database table to your WebLogic cluster. 3. Assign the connection pool's associated data source to the same cluster. 4. (D) Edit the associated weblogic.xml file using an XML editor and set the value of thePersistentStoreType and PersistentStorePool parameters Incorrect answer: E: A multi data source is an abstraction around a group of data sources that provides load balancing or failover processing between the data sources associated with the multi data source. Reference: Implementing Highly Available and Scalable Solutions Using the WebLogic Cluster, JDBC-Based Persistent Storage http://www.informit.com/articles/article.aspx?p=101737&seqNum=7 QUESTION NO: 55 Which three statements are true about the default behavior of WebLogic Server proxy plug-ins? A. The proxy will pin a client to a specific server if a session cookie is created. B. The proxy fails over to another server if a connection or request times out. C. The proxy distributes requests to cluster members based on their CPU usage. D. The proxy dynamically learns the latest locations of cluster members. E. The proxy always uses SSL, regardless of the client's protocol. F. The proxy replicates session data to its backup proxy. Answer: A,B,D Explanation: A: When the HTTP client requests the servlet, HttpClusterServlet proxies the re- quest to the WebLogic Server cluster. HttpClusterServlet maintains the list of all servers in the cluster, and the load balancing logic to use when accessing the cluster. In the above example, HttpClusterServlet routes the client request to the servlet hosted on WebLogic Server A. WebLogic Server A becomes the primary server hosting the client's servlet session. To provide failover services for the servlet, the primary server replicates the client's servlet session 41 state to a secondary WebLogic Server in the cluster. This ensures that a replica of the session state exists even if the primary server fails (for example, due to a network failure). In the example above, Server B is selected as the secondary. The servlet page is returned to the client through the HttpClusterServlet, and the client browser is instructed to write a cookie that lists the primary and secondary locations of the servlet session state. If the client browser does not support cookies, WebLogic Server can use URL rewriting instead. Figure, Accessing Servlets and JSPs using a Proxy: B: In clusters that utilize Web servers with WebLogic proxy plug-ins, the proxy plug-in handles failover transparently to the client. If a server fails, the plug-in locates the replicated HTTP session state on a secondary server and redirects the client's request accordingly. D: The WebLogic proxy plug-in maintains a list of WebLogic Server instances that host a clustered servlet or JSP, and forwards HTTP requests to those instances on a round-robin basis. Reference: Using WebLogic Server Clusters, Failover and Replication in a Cluster Reference: Using WebLogic Server Clusters, Load Balancing in a Cluster QUESTION NO: 56 Refer to the Exhibit 42 What is the meaning of the yellow triangle icon next to Listen Address? A. This attribute has no value. B. The server must be running to change this attribute. C. The server must be shut down to change this attribute. D. The server must be restarted for a change to this attribute to take effect. E. This attribute is read only and cannot be changed in the administration console Answer: D Explanation: The server instance for which you configure the listen address does not need to be running. If it is running, you must restart it after you complete these steps. Reference: Administration Console Online Help, Configuring the Listen Address from the Administration Console QUESTION NO: 57 You run the following WLST script and it completes successfully. Which statement best describes 43 what the script created? A. A CMO named myserver with the listen address 192.168.1.102 and port 8008 B. A Managed Server named myserver with the listen address 192.168.1.102 and port 7001 C. A Managed Server named myserver with listen address 192.168.1.102 and port 8008 D. An Administration Server named myserver with the listen address 092.168.1.102 and port 8008 Answer: C Explanation: A managed server (not a CMO, not an administration server) is created. Port is 8008. Note: Listing:Creating a Managed Server connect("username","password") edit() startEdit() svr = cmo.createServer("managedServer") svr.setListenPort(8001) svr.setListenAddress("my-address") save() Reference: WebLogic Scripting Tool, Using WLST Online to Update an Existing Domain QUESTION NO: 58 44 You are logged in to the administration console for a domain that is running in Development Mode. The domain configuration, you select Production Mode, Save, and then Activate Changes. Which two statements are true? A. All running servers must be restarted. B. Only the Administration Server must be restarted. C. Auto-deployment will no longer be available for this domain. D. This change may be made only through the Administration Server's secure port. E. If you decide to go back to Development Mode, uncheck Production Mode in the administrate console. Answer: A,E Explanation: All servers in a domain run either in development mode or production mode. To configure all servers in a domain to run in production mode: 1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit . In the left pane of the Console, under Domain Structure, select the domain name. 2. Select Configuration > General and select the Production Mode check box. 3. Click Save, and then, to activate these changes, in the Change Center, click Activate Changes. 4. Shut down any servers that are currently running. 5. Invoke the domain's startWebLogic script. The Administration Server starts in the new mode. 6. If the domain contains Managed Servers, start the Managed Servers. Result As each Managed Server starts, it refers to the mode of the Administration Server to determine its runtime mode. Note: Once you have changed to production mode, whether by using a start command argument, the Console, or WLST, you cannot change back to development mode without restarting the server. Reference: Administration Console Online Help, Change to production mode QUESTION NO: 59 Identify three ways to create a domain template. 45 A. Administration console B. Domain Template Builder C. unpack command D. pack command E. Node Manager F. WLST G. Configuration Wizard Answer: B,D,F Explanation: There are three ways to create domain templates: * Domain Template Builder (config_builder.sh under WL_HOME/common/bin) Go to Start Menu->All programs->weblogic10gR3->Tools->Domain Template Builder * pack command The pack command creates a template archive (.jar) file that contains a snapshot of either an entire domain or a subset of a domain. You can use a template that contains a subset of a domain to create a Managed Server domain directory hierarchy on a remote machine. * WLST offline command line tool Reference: Creating Domain Templates Using the Domain Template Builder Reference: Creating Domains Using WLST Offline QUESTION NO: 60 View the following file excerpt, which configures HTTP session replication: <session - descriptor > <persistent-store-type>replicated</persistent-store-type> </session-descriptor> From which file is this excerpt taken? A. weblogic-application.xml B. weblogic.xml C. session.xml D. config.xml E. web.xml Answer: B 46 Explanation: To configure file-based persistent storage for sessions: In the deployment descriptor file weblogic.xml, set the persistent-store-type parameter in the session-descriptor element in the weblogic.xml deployment descriptor file to file. See session- descriptor. Set the directory where WebLogic Server stores the sessions. Reference: Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help 11g Release 1, Using File-based Persistent storage http://docs.oracle.com/cd/E15523_01/web.1111/e13712/sessions.htm() QUESTION NO: 61 You use a web browser to log in to a web application that is deployed to WebLogic Server. When you click link named "publish" on the site, an "Access Denied" message appears. Which two statements must be true about this server's security configuration? A. The application is not associated with any security roles. B. Multiple security realms are active at the same time. C. Your user account is a member of a group. D. Your user account exists in an authentication provider. E. A security policy is attached to the "publish" link URL. Answer: D,E Explanation: D: You were able to log in to the web application that is deployed through WebLogic. In WebLogic Server, Authentication providers are used to prove the identity of users or system processes. This implies that your account exists in an authentication provider. E: Extra security is needed to use the publish link. This could be explained by a security policy attached the publish Link URL. Reference: Developing Security Providers for WebLogic Server, Authentication Providers 47 QUESTION NO: 62 You have set Server log Rotation criteria to either size or time. When a domain is in Production Mode, which statement is true? A. Log files are rotated when the server restarts. B. Log files are not rotated in Production Mode. C. Log files are rotated only when the rotation criteria are met. D. Log files are rotated when the rotation criteria are met or rotated when the server restarts Answer: C Explanation: By default, when you start a server instance in production mode, the server rotates its local log file whenever the file grows to 5000 kilobytes in size. It does not rotate the local server log file when you start the server. You can change these default settings for log file rotation. For example, you can change the file size at which the server rotates the log file or you can configure a server to rotate log files based on a time interval. You can also specify the maximum number of rotated files that can accumulate. After the number of log files reaches this number, subsequent file rotations delete the oldest log file and create a new log file with the latest suffix. Reference: Administration Console Online Help, Rotating Log Files http://docs.oracle.com/cd/E13222_01/wls/docs81/ConsoleHelp/logging.html QUESTION NO: 63 Which three methods does WebLogic provide to implement persistent JMS messaging? A. Create a file store and assign it to a JMS server. B. Create a JDBC store and assign it to a JMS server. C. Configure a file store within a JMS module. D. Configure the domain's default store. E. Use the target server's default store. Answer: A,B,E Explanation: A: The main steps for creating a custom file store are as follows: 1.Create a directory where the file stores data will be persisted. 2.Create a custom file store and specify the directory location that you created. 3.Associate the custom file store with the subsystem(s) or migratable target that will be accessing 48 it, such as: *For JMS servers, select the custom file store on the General Configuration page. *For Store-and-Forward agents, select the custom file store on the General Configuration page. *For a Path Service, select the custom file store on the General Configuration page. B: The main steps for creating a JDBC store are as follows: Create a JDBC data source or multi data source to interface with the JDBC store. Create a JDBC store and associate it with the JDBC data source or multi data source. It is highly recommended that you configure the Prefix option to a unique value for each configured JDBC store table. Associate the JDBC store with the subsystem(s) that will be using it, such as: For JMS servers, select the JDBC store on the General Configuration page. For Store-and-Forward agents, select the JDBC store on the General Configuration page. For a Path Service, select the custom file store on the General Configuration page. E:Each server instance, including the administration server, has a default persistent store that requires no configuration. Note: When a persistent message is sent, it is stored in the WebLogic Persistent Store. The persistent store provides a built-in, high-performance storage solution for WebLogic Server subsystems and services that require persistence. For example, it can store persistent JMS messages or temporarily store messages sent using the Store-and-Forward feature. The persistent store supports persistence to a file-based store or to a JDBC-enabled database. Note 2: A persistent message is guaranteed to be delivered once-and-only-once. The message cannot be lost due to a JMS provider failure and it must not be delivered twice. It is not considered sent until it has been safely written to a file or database. WebLogic JMS writes persistent messages to a WebLogic persistent store (disk-base file or JDBC-accessible database) that is optionally targeted by each JMS server during configuration. Reference: Using the WebLogic Persistent Store QUESTION NO: 64 Managed Server Independence enabled is not selected in the configuration of myserver1. Which statement is true? 49 A. Only the Node Manager can start myserver1 B. Only a local start script can start myserver1 C. Myserver1 cannot be part of a cluster. D. The Administration Server must be available before starting myserver1 Answer: D Explanation: To prevent the Administration Server from becoming a single point of failure, Managed Servers can always function without the presence a running Administration Server. When a Managed Server starts, it contacts the Administration Server to retrieve its configuration information. If a Managed Server is unable to connect to the specified Administration Server dur- ing startup, it can retrieve its configuration directly by reading a copy of the config.xml file and other files located on the Managed Server's own file system. A Managed Server that starts in this way is running in Managed Server Independence mode. In this mode, a server uses cached application files to deploy the applications that are targeted to the server. Reference: Overview of WebLogic Server System Administration, Managed Server Indepenence http://docs.oracle.com/cd/E13222_01/wls/docs81/adminguide/overview.html QUESTION NO: 65 You have opened a terminal window (or a Window command prompt) to run a WLST script named weeklydeployer.py. You enter the following command: Java weblogic.WLST weeklydeployer.py Instead of the WLST initializing and the script running, however, you receive the NoClassDefFoundError java exception for weblogic/WLST. What is the problem? A. You forgot to set PATH to include the java executable. B. There is an error in the code of the script. C. You forgot to set CLASSPATH to include weblogic.jar. D. You are not in the directory where weeklydeployer.py resides. E. You should have omitted the ".py" in the file name; it is assumed by WLST. F. You forgot to set PATH to include the WLST executable. Answer: C 50 Explanation: To set up your environment for WLST: 1. Install and configure the WebLogic Server software 2. Add WebLogic Server classes to the CLASSPATH environment variable Note: Although the process should be able to build the correct classpath by default, you might hit this issue in some cases. To overcome the problem, you must explicitly set the classpath in the admin console accordingly. Reference:WebLogic Scripting Tool,Using the WebLogic Scripting Tool QUESTION NO: 66 You monitor a running JMS topic with the console and note the following values: Consumers Current = 3 Message Current = 1 Message Pending = 0 These values do not change for several minutes. Which is the most plausible explanation? A. Production on the topic has been paused. B. A message arrived after a durable subscribe disconnected from the topic. C. One of the consumers received a message but did not acknowledge it. D. None of the consumers are durable subscribes. Answer: B Explanation: For durable subscriptions, WebLogic JMS stores a message in a persistent file or database until the message has been delivered to the subscribers or has expired, even if those subscribers are not active at the time that the message is delivered. Note #1: Durable subscriptions means that weblogic server will store the messages in a persistent store (i.e a file-store or a JDBC-store) until those messages are delivered to the subscribers/ listener. This technic helps weblogic server to make sure that the messages get delivered even if those subscribers/listeners are not active at the time that the message is getting delivered. As all of us know that in Topics the senders/producers just send the messages to the topic and the receivers/listeners have subscribe them self to get those messages, hence senders/producers 51 does not have any concern if the messages are been received or not. However with this feature weblogic make sure all the subscribers would get the messages as the messages gets stored in a persistence store. Note #2: *Consumers Current Count: Current number of consumers accessing this destination * MessagesCurrentCount: The current number of messages in the destination. This does not include the pending messages. * MessagesPendingCount: The number of pending messages in the destination. Pending messages are over and above the current number of messages. A pending message is one that has either been sent in a transaction and not committed, or that has been received and not committed or acknowledged. Reference: eDocs Home > BEA WebLogic Server 8.1 Documentation > Programming WebLogic JMS > Developing a WebLogic JMS Application, Setting Up Durable Subscriptions QUESTION NO: 67 Which statement best describes WebLogs default application staging behavior? A. The Administration Sever distributes application files when the application is first accessed by a client. B. The Administration Sever copied application files to a database that is shared with the Managed Servers. C. The Managed Servers obtain application files from a disk that is shared with the Administration Server. D. The Administration Sever distributes copied of application files over the network to the Managed Servers. Answer: D Explanation: Deployment Staging Mode: stage Behavior: The Administration Server first copies the deployment unit source files to the staging directories of target servers specified by the Staging Directory Name attribute. The target servers then deploy using their local copy of the deployment files. Note: The deployment staging mode determines how deployment files are made available to target servers that must deploy an application or standalone module. WebLogic Server provides three different options for staging files: stage mode, nostage mode, and external_stage mode. The 52 following table describes the behavior and best practices for using the different deployment staging modes. Reference: Overview of WebLogic Server Deployment, Staging Modes QUESTION NO: 68 Indentify two valid elements that can belong in the weblogic-application.xml deployment descriptor. A. <shared-library-reference> B. <library-ref> C. <app-scoped-ref> D. <work-manager> Answer: B,D Explanation: B: <library-ref> A reference to a shared Java EE library.Enclose all other elements within library-ref. Note:A Java EE application can reference a registered shared Java EE library using entries in the applications weblogic-application.xml deployment descriptor. Elements include: library-ref library-name D: <work-manager> Specifies the Work Manager that is associated with the application. Note: The weblogic-application.xml file is the BEA WebLogic Server-specific deployment descriptor extension for the application.xml deployment descriptor from Sun Microsystems. This is where you configure features such as shared Java EE libraries referenced in the application and EJB caching. The file is located in the META-INF subdirectory of the application archive. Reference: Developing Applications With WebLogic Server. weblogic-application.xml Deployment Descriptor Elements Reference: Referencing Shared Java EE Libraries in an Enterprise Application 53 QUESTION NO: 69 You create a system-wide JMS module named Payroll-JMS and set its default target to an existing cluster in your domain named PayrollCluster. Next, you add a standard JMS topic to Payroll-JMS. To which are you permitted to target this topic? A. the entire PayrollCluster B. any single JMS server in the domain C. any combination of member servers in Payrollcluster D. several JMS servers targeted to PayrollCluster Answer: B Explanation: JMS system modules are owned by the Administrator, who can delete, modify, or add JMS system resources at any time. With the exception of standalone queue and topic resources that must be targeted to a single JMS server, the connection factory, distributed destination, foreign server, and JMS SAF destination resources in system modules can be made globally available by targeting them to server instances and clusters configured in the WebLogic domain. These resources are therefore available to all applications deployed on the same targets and to client applications. Note #1: JMS modules are application-related definitions that are independent of the domain en- vironment. You create and manage JMS resources either as system modules or as application modules. System modules are globally available for targeting to servers and clusters configured in the domain, and therefore are available to all applications deployed on the same targets and to client applications. Note #2: JMS servers are environment-related configuration entities that act as management containers for the queues and topics in JMS modules that are targeted to them. A JMS server's primary responsibility for its destinations is to maintain information on what persistent store is used for any persistent messages that arrive on the destinations, and to maintain the states of durable subscribers created on the destinations. JMS servers also manage message paging on des- tinations, and, optionally, can manage message and/or byte thresholds, as well as server-level quota for its targeted destinations. As a container for targeted destinations, any configuration or run-time changes to a JMS server can affect all the destinations that it hosts. Reference: Understanding JMS Resource Configuration, JMS System Modules http://docs.oracle.com/cd/E15051_01/wls/docs103/jms_admin/overview.html 54 QUESTION NO: 70 The projects architect has provided you with a design diagram that identifies the key components of the new insurance system. From the diagram, you can clearly see that JMS will be used as the communication channel between several applications. Identify four tasks that you may need to perform to support this design. A. Create a JMS server B. Create a JMS message template C. Add JMS destinations to a JMS module D. Add a JMS module to a JMS factory E. Target JMS destinations to JMS servers F. Target a JMS server to a WebLogic Server G. Target a JMS module to a JMS store Answer: A,C,E,F Explanation: A: If necessary, create a JMS server to target the JMS module. F: Target the JMS Server to a weblogic server Note: The major components of the WebLogic JMS Server architecture: * JMS servers that can host a defined set of modules and any associated persistent storage that reside on a WebLogic Server instance. * JMS modules contains configuration resources (such as queues, topics, and connections factories) and are defined by XML documents that conform to the weblogic-jms.xsd schema. * Client JMS applications that either produce messages to destinations or consume messages from destinations. * JNDI (Java Naming and Directory Interface), which provides a resource lookup facility. JMS resources such as connection factories and destinations are configured with a JNDI name. The runtime implementations of these resources are then bound into JNDI using the given names. * WebLogic persistent storage (file store or JDBC-accessible) for storing persistent message data. Reference: Understanding WebLogic JMS QUESTION NO: 71 Which three statements are true about the Node Manager? 55 A. The Node Manager can restart the Managed Serves that have failed. B. The Node Manager should be run as either a daemon or a service so that if the host computer is rebooted, the Node Manager will also be automatically started. C. The Node Manager runs on a different host from the Managed Server it is controlling. D. The Node Manager can start a Managed Server the first time the Managed Server starts if the Administration Server is unavailable because MSI mode is enabled by default. E. The Node Manager allows you to start Managed Servers from the administration console. Answer: A,B,E Explanation: A, E: Node Manager enables you to perform these tasks: * Start and stop remote Managed Servers. (E) * Monitor the self-reported health of Managed Servers and automatically kill server instances whose health state is "failed". * Automatically restart Managed Servers that have the "failed" health state, or have shut down unexpectedly due to a system crash or reboot. (A) B: The WebLogic Server installation process installs Node Manager to run as an operating system service: a daemon on UNIX machines, or a Windows service on Windows-based machines. An operating system service starts up automatically each time the operating system boots. A key Node Manager feature is the ability to restart Managed Servers after a failure. If the failure is a machine crash, running Node Manager as a service ensures that Node Manager starts up automatically when the machine reboots, and is available to restart Managed Servers on that machine. E: Requests from the Administration Console (or JMX utilities such as weblogic.Admin) to start a Managed Server using Node Manager are issued to the Administration Server for the domain that contains the Managed Server. Reference: Configuring and Managing WebLogic Server, Overview of Node Manager QUESTION NO: 72 You have made several changes to variable attributes on a managed server within a domain. You first locked the console, made some nondynamic changes, made some dynamic changes as well, and then activated your changes. Which statement is true? A. All the changes that you made on the server will take effect immediately. B. The dynamic changes that you made will take effect immediately and the changes that are nondynamic will take effect after the server is restarted. C. The changes that you made on the server will not take effect until you restart the server. 56 D. You will receive an error because you cannot make dynamic and nondynamic changes to a server at the same time. Answer: C Explanation: If a change is made to a non-dynamic configuration setting, no changes to dynamic configuration settings will take effect until after restart. This is to assure that a batch of updates having a combination of dynamic and non-dynamic attribute edits will not be partially activated. Note:Some changes you make in the Administration Console take place immediately when you activate them. Other changes require you to restart the server or module affected by the change. These latter changes are called non-dynamic changes. Changes to dynamic configuration attributes become available once they are activated, without restarting the affected server or system restart. These changes are made available to the server and runtime hierarchies once they are activated. Changes to non-dynamic configuration attributes require that the affected servers or system resources be restarted before they become effective. Reference: Overview of the Administration Console, Dynamic and Non-Dynamic Changes QUESTION NO: 73 When you use the Embedded LDAP that is supplied by Oracle WebLogic Server, which three statements are true? A. The Embedded LDAP can be used to store user, group, security roles and security policies for the WebLogic security providers. B. The Embedded LDAP uses the file system to store Weblogic security provider data. C. The Embedded LDAP can be accessed by an external LDAP viewer. D. The Embedded LDAP cannot be used in a production environment E. The Embedded LDAP can store Auditing Data. Answer: A,C,E Explanation: A: The embedded LDAP server contains user, group, group membership, security role, security policy, and credential map information. C: The credential (usually a password) used to connect to the embedded LDAP server. If this password has not been set, WebLogic Server generates a password at startup, initializes the attribute, and saves the configuration to the config.xml file. If you want to connect to the embedded LDAP server using an external LDAP browser and the embedded LDAP administrator account (cn=Admin), change this attribute from the generated value. 57 E: You can use either the WebLogic Auditing provider or a custom Auditing provider in a security realm. Although an Auditing provider is configured per security realm, each serverwrites auditing data to its own log file in the server directory. By default, all auditing information recorded by the WebLogic Auditing provider is saved in the following file: WL_HOME\yourdomain\yourserver\DefaultAuditRecorder.log. By writing a custom Auditing provider, however, you can send the records containing audit information to any one of various output repositories, such as an LDAP server, database, or a simple file. QUESTION NO: 74 An application is deployed to your domain and its manifest indicates version 1.1. You then perform an application update by using a manifest that indicates version 1.2. Indentify two outcomes of this scenario. A. The existing 1.1 clients are redirected to the 1.2 application B. The existing 1.1 clients are shown a warning message. C. The existing 1.1 clients continue to use the 1.1 application. D. New clients are asked which version they wish to use. E. New clients use only use 1.2 application Answer: C,E Explanation: As long as the HTTP Session is valid, the old user will continue to use "Version 1." All new users will be using "Version 2. Reference: Oracle WebLogic Server 12c: Configuring and Using Production Redeployment. QUESTION NO: 75 View the exhibit. 58 You are logged in to the WebLogic Server administration console and you are editing the fields shown in exhibit. Which type of WebLogic Server resource are you currently editing? A. JMS Server B. Persistent Store C. JDBC Data Source D. Diagnostics Module E. JMS Connection Factory Answer: E Explanation: MS Connection Factory: Configuration: Default Delivery Use this page to define the default delivery configuration parameters for this JMS connection factory, such as the default delivery mode, default time to live, etc. Reference: JMS Connection Factory: Configuration: Default Delivery QUESTION NO: 76 You have 10 cluster managed servers in a domain. Due to the maintenance tasks currently in progress, two of the managed servers are in a Shutdown status. You have been asked to deploy an application. As a default behavior of WebLogic Server, which two statements are true? 59 A. The application cannot be deployed until the two managed servers are available. B. The application can be deployed while the two managed servers are in Shutdown status. C. The application will be deployed to the eight managed servers that are running. The two managed servers that are in the Shutdown state will eventually receive the deployment when they are started again. D. The application deployment will fail and the application will not be deployed to any managed server in the cluster. E. The application deployment will fail and the eight managed servers that are running will transition to Admin state. Answer: B,C Explanation: When you deploy an application to a cluster target, WebLogic Server ensures that the deployment successfully deploys on all available members of the cluster(B, not A). If even a single, available WebLogic Server instance in the cluster cannot deploy the application, the entire deployment fails and no servers in the cluster start the application. This helps to maintain homogeneous deployments to the cluster, because deployment operations succeed or fail as a logical unit. Reference:Oracle Fusion Middleware Deploying Applications to Oracle WebLogic Server, Deploying to a Cluster Target QUESTION NO: 77 An application fails. The exception indicates that the JDBC data source, jdbc-hr.HRDS, cannot be found. Identify two possible steps that you can perform to verify the data sources availability. A. Launch the JDBCDiagnostics utility. B. Verify the Targets attribute of the application. C. Verify the Dependencies attribute of the data source. D. Verify the target servers JNDI tree in the console. E. Verify the Target attribute of the data source. Answer: D,E Explanation: D: In WebLogic Server, you configure database connectivity by adding data sources to your WebLogic domain. WebLogic JDBC data sources provide database access and database connection management. Each data source contains a pool of database connections that are created when the data source is created and at server startup. Applications reserve a database connection from the data source by looking up the data source on the JNDI tree or in the local application context and then calling getConnection(). E: Each data source that you configure contains a pool of database connections that are created when the data source instance is createdwhen it is deployed or targeted, or at server startup. Applications lookup a data source on the JNDI tree or in the local application context 60 (java:comp/env), depending on how you configure and deploy the object, and then request a database connection. When finished with the connection, the application calls connection.close(), which returns the connection to the connection pool in the data source. QUESTION NO: 78 Indentify three ways to create a domain template. A. Administration console B. Domain Template Builder C. unpack command D. pack command E. Node Manager F. WLST G. Configuration Wizard Answer: B,D,F Explanation: B: Go to Start Menu->All programs->weblogic10gR3->Tools->Domain Template Builder D: The pack command creates a template archive (.jar) file that contains a snapshot of either an entire domain or a subset of a domain. You can use a template that contains a subset of a domain to create a Managed Server domain directory hierarchy on a remote machine.F: WLST enables you to create a new domain or update an existing domain without connecting to a running WebLogic Server (that is, using WLST offline)supporting the same functionality as the Config- uration Wizard. Incorrect answer: Reference: Creating Domain Templates Using the Domain Template Builder Reference: Creating Domains Using WLST Offline QUESTION NO: 79 What is the default Staging Mode for servers? A. No-Stage 61 B. Stage C. External Stage D. Use the defaults defined by the deployment targets E. Copy the application onto every target for me Answer: B Explanation: WebLogic Server provides three different options for staging files: stage mode, nostage mode, and external_stage mode. By default, WebLogic Portal's default staging mode is "stage." Reference: Oracle Fusion Middleware Production Operations Guide for Oracle WebLogic Portal, Changing the Default Staging Mode QUESTION NO: 80 When using the Install Application Assistant in the administrator console, what are the two options that may select for Choose Targeting Style? A. Choosing Install this deployment as a resource will allow you to deploy any type of resource archive. B. Choosing Install this deployment as a library will allow you to deploy any archive, which can be referenced by other applications. C. Choosing Install this deployment as expanded format allow expanded directories to be utilized. D. Choosing Install this deployment as an application will allow you to deploy any archive or extended directory. E. Choosing Install this deployment as a stand-alone library will allow you to deploy a library, which can be used only by nonclustered servers. Answer: B,D Explanation: The Choose Targeting Style page is displayed: 62 Reference: Oracle Fusion Middleware Application Adapter Best Practices Guide for Oracle WebLogic Server, Configuring Oracle Application Adapters in a High Availability Cluster Environment QUESTION NO: 81 You wish to provide failover for HTTP sessions within a cluster. However, you are limited by the following constraints: 1. While under load, your servers have very little free memory. 2. you do not have appropriate access rights to modify your companys database. Which is the best option, given these restrictions? A. in-memory replication B. automatic migration C. file persistence D. JDBC persistence E. replication groups Answer: C Explanation: File persistence use less memory than in-memory replication, and does not need access rights to the company's database. Note: You use session persistence to permanently store data from an HTTP session object to enable failover and load balancing across a cluster of WebLogic Servers. When your applications stores data in an HTTP session object, the data must be serializable. There are five different implementations of session persistence: * Memory (single-server, non-replicated) * File system persistence * JDBC persistence * Cookie-based session persistence * In-memory replication (across a cluster) Reference: Oracle Fusion Middleware Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server, Using Sessions and Session Persistence 63 QUESTION NO: 82 Indentify three tools that you can use to create a deployment plan. A. administration console B. weblogic.PlanGenerator C. the /autodeploy folder that is locked in the domain directory D. developer tools such as JDeveloper or Eclipse E. the /plan subfolder that resides outside the application archive Answer: A,B,D Explanation: A: To create a deployment plan for a deployed application that does not already have a deployment plan, make a configuration change to the deployed application. When you make apersisted configuration change to a deployed application that does not have an existing deployment plan, the Administration Console automatically creates a deployment plan for you and prompts you for the location in which to save it. B: The weblogic.PlanGenerator is a Java-based deployment configuration tool. It is primarily intended for developers who want to export portions of a WebLogic Server deployment configura- tion into an XML deployment plan. weblogic.PlanGenerator also enables you to generate a basic WebLogic Server configuration for applications that have only J2EE deployment descriptors. D: Deployment plans can be created or edited through the deployment plan editor functionality available through the Web-based Oracle Enterprise Manager 10g Application Server Control Console interface and the J2EE and Studio Editions of the Oracle JDeveloper 10g integrated development environment. Reference: Administration Console Online Help, Create a deployment plan Reference: weblogic.PlanGenerator Command Line Reference QUESTION NO: 83 While creating a new domain in the Configuration Wizard, there are two types of machines that may be configured. Identify them. A. Machine and Windows machine B. administrator machine and managed machine C. machine and Unix machine D. stand-alone machine and cluster machine 64 E. RDBMS machine and LDAP machine Answer: B Explanation: Administrator machine: The Choose the Administration Server window prompts you to designate a server as the Administration Server. This window is displayed automatically only if the selected template includes multiple servers that are not assigned to clusters. To choose the Administration Server:The Server Details area displays detailed information about the selected server. By default, the currently assigned Administration Server is selected. The Configure the Administration Server and Configure Managed Server(s) windows are updated to reflect your changes. Managed machine: The minimum requirement for your domain is a single Administration Server on a single machine. In addition, however, you have the option of configuring other resources to be managed by the Administration Server and distributing them across multiple machines. Specifically, you can: * Add, change, or delete Managed Servers * Add, change, or delete clusters * Group Managed Servers into clusters, or change current groupings * Assign servers to machines, or change current assignments Note: The Managed Servers, Clusters, and Machines Options window prompts you to specify whether you want to distribute your WebLogic configuration across Managed Servers, clusters, and physical machines Note 2: The Configure Managed Servers window prompts you to provide the configuration information for one or more Managed Servers. Production environments typically deploy one or more Managed Servers, in addition to the Administration Server, to host enterprise applications. Reference: Creating WebLogic Configurations Using the Configuration Wizard, Configuring Managed Servers, Clusters, and Machines QUESTION NO: 84 View the Exhibit. 65 You previously deployed an application but later decide to change various configuration para- meters, such as timeouts. You access the applications Configuration tab in the console and make your configurations, as shown in the Exhibit. In which file does WebLogic record these modifications? A. config.xml B. weblogic.xml C. Application.xml D. Plan.xml Answer: B Explanation: The following attributes are displayed in the exhibit: Session Invalidation Interval (in seconds) Session Timeout (in seconds) debug-enabled Maximum in-memory Sessions These attributes are stored in the weblogic.xml file as the following elements: invalidation-interval-sec timeout-secs debug-enabled max-in-memory-sessions Reference: weblogic.xml Deployment Descriptor Elements QUESTION NO: 85 66 Identify four features of the default administration console. A. XML Editor B. WLST Editor C. Breadcrumbs D. Change Center E. Template Builder F. Domain Structure G. Configuration Wizard H. WLST Script Recorder Answer: C,D,F,H Explanation: The Administration Console user interface includes the following panels. * Breadcrumb Navigation A series of links that show the path you have taken through the Administration Console's pages. * Change Center This is the starting point for using the Administration Console to make changes in WebLogic Server. * Domain Structure This panel is a tree you can use to navigate to pages in the Administration Console. * How do I... This panel includes links to online help tasks that are relevant to the current Console page. * Tool Bar The tool bar at the top of the Console. * System Status The System Status panel reports on the number of information, error, and warning messages that have been logged. H: To help automate the task of configuring a domain, you can record your configuration actions in the Administration Console as a series of WebLogic Scripting Tool (WLST) commands and then use WLST to replay the commands. For details see: Administration Console Online Help, Record WLST Scripts Reference: Overview of the Administration Console http://docs.oracle.com/cd/E13222_01/wls/docs90/intro/console.html#1122030 QUESTION NO: 86 You wish to restrict access to a JMS queue so that only specific accounts may receive messages 67 from the queue. Identify two steps that, when performed together, implement this security requirement. A. Create a policy for queues URL pattern. B. Add a policy to the queue and associate it with a role. C. Configure an identify assertion provider. D. Acquire the domain configuration lock. E. Create a global role and assign users to it. Answer: B,E Explanation: B: Security policy for a JMS Queue (Resource Level). When you define a security policy for an individual destination on a JMS server, you can protect all operations of the destination. a. Login into the Admin server console > Navigate to the Queue that needs to be secured. b. Click on the security tab > Policies sub tab. You can see a small drop down list, which lists the set of the operations that can be protected. c. Click Add Conditions to add the policy conditions. d. From the predicate list, specify the policy conditions. e. Specify the role (the global created in E below) which needs to have the access permissions for the JMS Queue. Click Add > Finish. E: Create a Global Role and assign the appropriate user accounts to it. Note: There are two ways of securing the JMS resources. Reference: SECURING WEBLOGIC JMS RESOURCES QUESTION NO: 87 A domain created based on the Basic WebLogic Server Domain product has start scripts called startWebLogic.sh and startManagedWebLogic.sh (.cmd in Windows). Which three statements are true? A. startWebLogic.sh starts Node Manager. B. startWebLogic.sh has a required parameter. C. startManagedWebLogic.sh has a required parameter. D. startWebLogic.sh starts the Administration Server of the domain. E. startManagedWebLogic.sh can start any managed server in the domain. F. Both scripts can start any WebLogic Server, but each has different default parameter values. 68 Answer: C,D,E Explanation: C: If you created Managed Server while creating domain then you can start Managed Server using startManagedWebLogic command $BEA_HOME/user_projects/domains/<domain_name>/bin startManagedWebLogic.cmd <managed_server_name> <admin_url> (for Windows) startManagedWebLogic.sh <managed_server_name> <admin_url> (for Unix) Assume that we a created Managed Server MS1 with Admin Port as 7003. startManagedWebLogic.cmd ms1 http://localhost:7003 (Windows) D: Starting Administration Server (startWebLogic.cmd or .sh)E: Starting Managed Server (startManagedWebLogic.sh or .cmd) QUESTION NO: 88 Which answer best describes how you can start the Java-based version of the Node Manager? A. W1scontrol.sh (.cmd in Windows) B. Wisifconfig.sh (.cmd in Windows) C. startNodeManager.sh (.cmd in Windows) D. startNM.sh (.cmd in Windows) Answer: C Explanation: Although running Node Manager as an operating system service is recommended, you can also start Node Manager manually at the command prompt or with a script. UsestartNodeManager.cmd on Windows systems and startNodeManager.sh on UNIX systems. Reference: Configuring and Managing WebLogic Server, Configuring, Starting, and Stopping Node Manager QUESTION NO: 89 Which two statements are true about Log Filters? A. Log Filters are created at the domain level. 69 B. You do not have to lock the configuration to create Log Filters. C. You can apply a Log Filter to the server log, but not to standard out. D. The administration console assists in the creation of Log Filter expressions Answer: A,D Explanation: A (not B): For any given WebLogic Server instance, you can override the default filter and create a log filter that causes a different set of messages to be written to the domain log file. Note: To create and configure a log filter: The new log filter appears in the Log Filters table. A filter expression defines simple filtering rules to limit the volume of log messages written to a particular log destination. See D) below. The filter and filter expression are listed in the Log Filters table. D: Log Filter Configuration Use this page to define a custom log filter to restrict the set of messages that one or more servers send to a message destination, such as the domain log, standard out, server log file, or memory buffer of recent log events. You can click Edit to type or paste in an expression directly, using WLDF Query Language syntax (see Related Topics, below); or you can click Add Expression to construct an expression by choosing items from lists. Once you create a filter, you cannot change its name. Instead, you must create a new filter under a different name. Reference: Administration Console Online Help, Log Filter Configuration Reference: Administration Console Online Help, Create log filters QUESTION NO: 90 Consider a domain with an existing JDBC data source, which connects to an Oracle database. Your administrator requests that the JDBC connections to this database now specify a different username. Which data source attribute would you modify to implement this requirement? 70 A. Properties B. Credentials C. Initial Capacity D. Test Table E. URL Answer: E Explanation: The following signature takes the URL, user name, and password all as part of a URL parameter: getConnection(String URL); Where the URL is of the form: jdbc:oracle:<drivertype>:<user>/<password>@<database> Reference: oracle.jdbc, Class OracleDriver QUESTION NO: 91 Which two are typically found in the WEB-INF folder of a Java web application? A. the web application HTML and JSP files B. the classes directory containing the compiled classes C. the web.xml deployment descriptor D. the weblogicserver.xml deployment descriptor Answer: B,C Explanation: The WEB-INF directory contains the deployment descriptors for the Web application (web.xml (C) and weblogic.xml) and two subdirectories for storing compiled Java classes (B) and library JAR files. These subdirectories are respectively named classes and lib. JSP taglibs are stored in the WEB-INF directory at the top level of the staging directory. The Java classes include servlets, helper classes and, if desired, precompiled JSPs. Reference: Oracle Fusion Middleware Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server, Creating and Configuring Web Applications QUESTION NO: 92 Which four tasks can be accomplished in the administration console only after the configuration is 71 locked? A. deploying an application B. changing console preferences C. creating a new JMS Server D. monitoring the health of a server E. enabling the Administrator Port F. creating a new Managed Server G. adding a new user to the default authentication provider Answer: A,C,E,F Explanation: A: Steps to Deploy Application using Administration Console E:To enable the administration port for your domain: Note: If you want to use the Administration Console to make configuration changes, you must first click the Lock & Edit button in the Change Center. When you click Lock & Edit, you obtain a lock on the editable hierarchy of Configuration MBeans for all servers in the domain (the edit tree). As you make configuration changes using the Administration Console, you click Save (or in some cases Finish) on the appropriate pages. This does not cause the changes to take effect immediately; instead, when you click Save, you are saving the change to the edit tree and to the DOMAIN_NAME/pending/config.xml file and related configuration files. The changes takeeffect when you click Activate Changes in the Change Center. At that point, the configuration changes are distributed to each of the servers in the domain. If the changes are acceptable to each of the servers, then they take effect. (Note, however, that some changes require a server to be restarted.) If any server cannot accept a change, then all of the changes are rolled back from all of the servers in the domain. The changes are left in a pending state; you can then either edit the pending changes to resolve the problem or revert the pending changes. Reference: Administration Console Online Help, Use the Change Center QUESTION NO: 93 A web application called sales was deployed and is currently Active. It is targeted to managed1 and managed2. The developers have given you an upload WAR file and you have replaced the original WAR file with it. From the directory where the WAR file resides, you run the following weblogic.Deployer command: java weblogic.Deployer adminurl t3://192.168.1.101:7001-username weblogic password welcom1 name sales redeploy 72 Which statement best describes what happens? A. The command fails because no target was specified. B. The application is deployed to the Administration Server because no target was specified. C. The application is deployed to whichever server is running at 192.168.1.101:7001. D. The application is deployed to managed1 and managed2 because that is where it is currently targeted. Answer: D Explanation: -targetstarget_list (for the redeploy command) is not specified here. It is used to specify the targets on which to distribute, deploy, or redeploy the application or module. If you do not specify a target list with the -deploy command, the target defaults to: * the Administration Server instance for new deployments (not the case here) * the application's current targets for deployed applications (the case in this scenario) Note: Syntax: java [SSL Arguments] weblogic.Deployer [Connection Arguments] [User Credentials Arguments] COMMAND-NAME command-options [Common Arguments] Connection Arguments The -adminurl value must specify the listen address and listen port of the Administration Server. - usernameusername. The Administrator username. If you supply the -username option but you do not supply a corresponding -password option, weblogic.Deployer prompts you for the password. -redeploy.redeploys a running application or part of a running application. -name deployment_name.Specifies the deployment name of a deployed application or module. The -name option can be omitted, in which case the name is taken from the -source fileargument. Note: weblogic.Deployer is a Java-based deployment tool that provides a command-line interface to the WebLogic Server deployment API. weblogic.Deployer is intended for administrators and developers who want to perform interactive, command-line based deployment operations. Reference: Deploying Applications to WebLogic Server, weblogic.Deployer Command-Line Reference 73 QUESTION NO: 94 When creating a new Managed Server using the administration console, which two points must be considered? A. The Server Name must be unique within the domain. B. After you assign a Listen Port value for the server, you cannot change it C. The Listen Port value must be unique for ever server. D. The Server Name cannot be changed after you have created the server. Answer: A,D Explanation: A: Each server instance in your WebLogic environment must have a unique name, regardless of the domain or cluster in which it resides, or whether it is an Administration Server or a Managed Server. Within a domain, each server, machine, cluster, virtual host, and any other resource type must be named uniquely and must not use the same name as the domain. D: The server name cannot be changed. QUESTION NO: 95 Indentify two attributes of a JMS server. A. Target B. Persistent Store C. Destination D. Connection Factory E. Store and Forward Answer: A,B Explanation: A:Target The target that this JMSServer is deployed to. See step 5) in the Note below. B: Persistent Store The file or database in which this JMS server stores persistent messages. If unspecified, the JMS server uses the default persistent store that is configured on each targeted WebLogic Server instance. Note: See step 4) below. To create a JMS server: Note: Once you create a JMS server, you cannot rename it. Instead, you must delete it and create 74 another one that uses the new name. Incorrect answer: C: There is no such JMS Server destination attribute. Reference: OTN Home > Oracle WebLogic Server 10.3.5.0 Documentation > Administration Console Online Help > JMS Servers QUESTION NO: 96 The master Embedded LDAP has the capability to back up its data. Which statement is true? A. The Managed Servers should be shut down when backups are being performed on the Embedded LDAP. B. The backup feature is enabled by default. C. The backup feature of the Embedded LDAP should be enabled for all the servers in the domain on a per-basis. D. The backup is stored in a comma-separated variable format. Answer: C Explanation: The backup of the embedded LDAP server is enabled for a domain at a time. See step 2) in Note below. QUESTION NO: 97 Indentify two requirements for in-memory session replication. A. Clusters must contain an even number of members. B. Web applications must be configured to use replication. C. Web applications must be deployed as an archive file. D. Cluster members must be started by using the Node Manager. E. Web applications must be accessed via a proxy that supports session cookies Answer: B,E Explanation: B:When in-memory replication is enabled for a web application, WebLogic Server copies session state from one server in the cluster (primary) to one other server in the same cluster (secondary). The replica on the secondary server is kept up-to-date so that it may be used if the primary server fails. 75 E: To utilize in-memory replication for HTTP session states, you must access the WebLogic Server cluster using either a collection of Web servers with identically configured WebLogic proxy plug-ins, or load balancing hardware. If you choose to use load balancing hardware instead of a proxy plug-in, it must support a compatible passive or active cookie persistence mechanism, and SSL persistence. Note 1:In its default configuration, WebLogic Server uses client-side cookies to keep track of the primary and secondary server that host the client's servlet session state. If client browsers have disabled cookie usage, WebLogic Server can also keep track of primary and secondary servers using URL rewriting. With URL rewriting, both locations of the client session state are embedded into the URLs passed between the client and proxy server. To support this feature, you must ensure that URL rewriting is enabled on the WebLogic Server cluster. Note 2: To support automatic failover for servlet and JSP HTTP session states, WebLogic Server replicates the session state in memory. WebLogic Server creates a primary session state on the server to which the client first connects, and a secondary replica on another WebLogic Server in- stance in the cluster. The replica is kept up-to-date so that it may be used if the server that hosts the servlet fails. The process of copying a session state from one server instance to another is called in-memory replication. Reference: eDocs Home > BEA WebLogic Server 8.1 Documentation > Using WebLogic Server Clusters > Failover and Replication in a Cluster, Failover and Replication in a Cluster QUESTION NO: 98 You are deploying an EAR by using the administration console. You are part way through the process. In the administration console, you see that the EAR has the State of Prepared. What can you do in the administration console to bring the deployment to the Active State? A. Select it and click the Install button. B. Select it, and then from the Install drop-down list, select Servicing all requests C. Select it, and then from the update drop-down list, select Servicing all requests D. Select it, and then from the Start drop-down list, select Servicing all requests E. Select it, and then from the Start drop-down list, select Servicing only administration requests Answer: D Explanation: To Deploy the EAR File to the Production Server See step 8 below. 76 Open the WebLogic Server console for the target server running in production mode. Reference: Deploying Applications to WebLogic Server QUESTION NO: 99 Your domain includes a cluster of five servers, but only three are currently running. A colleague then uses the administration console to install and deploy a new EJB application to the cluster. By default, which outcome would you expect? A. The application deploys successfully on the three servers that are running. B. The deployment fails because the entire cluster is not running. C. The deployment succeeds, but the application is not accessible. D. The user is prompted to start the two unavailable servers before continuing. E. The two unavailable servers are automatically removed from the cluster. Answer: A Explanation: Note #1:If your EJBs will run on a WebLogic Server cluster, Oracle recommends that you deploy them homogeneouslyto each Managed Server in the cluster. Alternatively, you can deploy an EJB to only to a single server in the cluster (that is, pin a module to a server). This type of deployment is less common, and should be used only in special circumstances where pinned services are required. Note #2:When you deploy an EJB, you specify the servers and clusters to which the EJB deployment is targeted. After you have deployed an EJB, you can update the servers and clusters to which it is targeted. To set target servers and clusters for a deployed EJB: The right pane lists the EJBs and other modules that you have deployed, or tried to deploy. Servers and clusters in the domain are displayed. By default, the Administration Console deploys an EJB to all server instances in the cluster (the " All servers in the cluster" option). To deploy the EJB to selected servers in a cluster, select " Part of the cluster", and then select the individual server instances to which you want to deploy the EJB. QUESTION NO: 100 Consider an IT infrastructure comprising several web and EJB applications. Each application is 77 expected to handle significantly different workloads, and therefore has different resource and scalability requirements. Which is the best solution for this scenario? A. Configure a dedicated server for each application. B. Configure a separate cluster for each application. C. Configure a separate domain for each application. D. Configure a separate proxy for each application. Answer: B Explanation: A WebLogic domain can be composed of a number of WebLogic instances, and several of these servers may be grouped into clusters. For instance, you could set up a cluster of WebLogic servers, all of which host your web application and related resources. This cluster of servers could be fronted by a load balancer that distributes requests evenly across all the members of the cluster. The load balancer could itself be another WebLogic instance. All server instances must belong to the same WebLogic domain. Thus, a WebLogic cluster is a group of servers working together with services, such as clustered JNDI, to provide support for failover and load balancing. A domain may in turn have a number of WebLogic instances, several groups of which can be placed into different clusters. QUESTION NO: 101 Which two statements are true about cluster configuration? A. A server must be running before it can be added to a cluster. B. You cannot define cluster membership through the Configuration Wizard. C. The console allows you to add new and existing servers to a cluster. D. The console allows you to add an administration server to a cluster. E. You cannot remove a server that is running from a cluster. Answer: C,E Explanation: C: To assign server instances to a cluster: Note: You cannot change the cluster of the Administation Server using the Administration Console. You cannot change the cluster or machine of a running server. The new server appears in the list of servers and is added as a member of the current cluster. Incorrect answer: Not A. See screenshot below. 78 Reference:edocs Home > Oracle WebLogic Server Documentation > Administration Console Online Help > Assign servers to clusters 79 QUESTION NO: 102 Which four statements are true about WLST? A. You can create a domain with WLST. B. WLST commands are case-insensitive. C. You can shut down servers with WLST. D. All WLST commands include parentheses. E. WLST is based on the Perl scripting language. F. You can connect to any server through WLST. G. The Administration Server needs to be running to use WLST. Answer: A,B,C,D Explanation: A:WLST enables you to create a new domain or update an existing domain without connecting to a running WebLogic Server (that is, using WLST offline)supporting the same functionality as the Configuration Wizard. B: WLST command names and arguments are case sensitive. C: The WLST shutdown command Gracefully shuts down a running server instance or a cluster. The shutdown command waits for all the in-process work to be completed before shutting down the server or cluster. You shut down a server to which WLST is connected by entering the shutdown command without any arguments. D: All WLST commands include parentheses. Example: exit(),startApplication(appName, [options]) Reference: Documentation Home > BEA WebLogic Server 9.2 Documentation > WebLogic Scripting Tool > WLST Command and Variable Reference QUESTION NO: 103 Indentify two server attributes that you must configure to communicate with the server via HTTPS. A. SSL Listen Address B. SSL Listen Port C. SSL Listen Port Enabled D. Production Mode Enabled E. Startup Mode Answer: B,C Explanation: B: WebLogic Server supports SSL on a dedicated listen port which defaults to 7002. 80 To establish an SSL connection, a Web browser connects to WebLogic Server by supplying the SSL listen port and the HTTPs schema in the connection URL, for example, https://myserver:7002. C: Note: Enabling SSL under WLS 10.3 Steps to configure WLS for SSL: 1) Open the WLS console 2) Select from the Domain Structure -> (your domain) -> Environment -> Servers 3) Select the server from the Summary of Servers page you wish to configure for SSL. 4) Under the Settings for (server name) page, select the Configuration tab, then General tab (the defaults). 5) If WLS is running in production mode, select the Lock & Edit button. 6) Select the SSL Listen Port Enabled checkbox, and enter your preferred port in the SSL Listen Port. 7) Press the Save button. 8) If WLS is running in production mode, select the Release Configuration button. Reference: Oracle HTTP Server Attribute Descriptions QUESTION NO: 104 Consider a cluster of four servers: ServerA, ServerB, ServerC, and ServerD. The cluster hosts a web application and is accessed using a proxy pug-in. This web application is configured to use in-memory session replication. A user is directed to ServerA. An HTTP session is established on ServerA and is also replicated to ServerC. If ServerA subsequently fails, which server will this user be redirected to? A. none; the user will receive an error message 81 B. ServerB C. ServerC D. ServerD E. Any other available server Answer: C Explanation: To support automatic failover for servlet and JSP HTTP session states, WebLogic Server replicates the session state in memory. WebLogic Server creates a primary session state on the server to which the client first connects, and a secondary replica on another WebLogic Server instance in the cluster. The replica is kept up-to-date so that it may be used if the server that hosts the servlet fails. The process of copying a session state from one server instance to another is called in-memory replication. QUESTION NO: 105 Which three techniques can create a new WebLogic domain? A. Configuration Wizard B. Domain Template Builder C. WLST D. Administration console E. Unpack command F. Node Manager Answer: A,C,E Explanation: A, C:WLST enables you to create a new domain or update an existing domain without connecting to a running WebLogic Server (that is, using WLST offline)supporting the same functionality as the Configuration Wizard. QUESTION NO: 106 Which four tasks are required to use database persistence for JMS messages? A. Assign a data source to a JDBC store. B. Configure a data sources delivery mode. C. Assign a JDBC store to a JMS server. D. Create a JDBC data source. E. Disable a servers file store. F. Create a JDBC store. 82 Answer: A,C,D,F Explanation: The main steps for creating a JDBC store are as follows: * For JMS servers, select the JDBC store (C) on the General Configuration page. * For Store-and-Forward agents, select the JDBC store on the General Configuration page. Note: The WebLogic Persistent Store provides a built-in, high-performance storage solution for all subsystems and services that require persistence. For example, it can store persistent JMS messages or temporarily store messages sent using the Store-and-Forward feature. Each WebLogic Server instance in a domain has a default persistent store that requires no configuration and which can be simultaneously used by subsystems that prefer to use the system's default storage. However, you can also configure a dedicated file-based store or JDBC database- accessible store to suit your JMS implementation. Reference: Documentation Home > BEA WebLogic Server 9.2 Documentation > Configuring WebLogic Server Environments > Using the WebLogic Persistent Store, Main Steps for Configuring a JDBC Store QUESTION NO: 107 When describing a WebLogic domain, which three statements are true? A. A domain may be set up in either Production Mode Production Mode or Development Mode. B. All instances of WebLogic Server must be defined within a domain. C. The domain configuration is stored in Oracle database by default. D. Any instance of WebLogic Server may update the domain configuration E. The security realm for a domain is optional. F. A domain maybe created by using the Configuration Wizard. Answer: A,B,F Explanation: A: All servers in a domain run either in development mode or production mode. F: If you want to create a new domain, you can use the Configuration Wizard (or WLST or Unpack command). QUESTION NO: 108 You are responsible for configuration a WebLogic domain to support an order processing application. This application will communicate with multiple JDBC data sources to fulfill each 83 customer order. To maintain data integrity across these databases, work will be performed within a global transaction. However, you have learned that one of the data sources in the transaction does not have an XA driver. Which option should you select on this non-XA data source to ensure that orders are still processed as global transactions? A. Ignore Heuristics B. Planned to Thread C. Password Encrypted D. Logging Last Resource E. Test Connections on Reserve Answer: D Explanation: The Logging Last Resource option: Enables a non-XA JDBC connection to participate in distributed transactions using the Logging Last Resource (LLR) transaction optimization. Recommended in place of Emulate Two-Phase Commit. With this option, the transaction branch in which the connection is used is processed as the last resource in the transaction and is processed as a one-phase commit operation. The result of the operation is written in a log file on the resource itself, and the result determines the success or failure of the prepare phase of the transaction. This option offers some performance benefits with greater data safety than Emulate Two-Phase Commit. Note: The transaction protocol for a JDBC data source determines how connections from the data source are handled during transaction processing. Transactions within a JDBC data source are either global (XA) and non-global (local). Reference: OTN Home > Oracle WebLogic Server 10.3.1 Documentation > Administration Console Online Help > JDBC Data Source: Configuration: Transaction QUESTION NO: 109 You are installing Oracle WebLogic Server 11g for some new developers in the department. They have asked for a very generic installation for development and want you to ensure that the MedRec sample domain is included. What should you do to accomplish this? A. Select the typical installation because the MedRec sample domain is included in it. B. You wont be able to do this, because all the samples were removed from the installer after 10g. C. Select the custom installation and select Server Examples. 84 D. After installation, create a sample domain named MedRec by using the Configuration Wizard. Answer: C Explanation: MedRec-Spring is not installed by default when you install WebLogic Server. You must choose Custom installation, then select Server Examples from the Choose Products and Component page. Note: MedRec is an end-to-end sample Java EE application shipped with WebLogic Server that simulates an independent, centralized medical record management system. The MedRec ap- plication provides a framework for patients, doctors, and administrators to manage patient data using a variety of different clients. MedRec demonstrates WebLogic Server and Java EE features, and highlights Oracle-recommen- ded best practices. MedRec is included in the WebLogic Server distribution, and can be accessed from the Start menu on Windows machines. For Linux and other platforms, you can start MedRec from the WL_HOME\samples\domains\medrec directory, where WL_HOME is the top-level installation directory for WebLogic Server. A Spring version of the application is accessible from the WL_HOME\samples\domains\medrec-spring directory. Reference: Oracle Fusion Middleware Spring Support in Oracle WebLogic Server 11g Developing Spring-Based Applications for Oracle WebLogic Server QUESTION NO: 110 Consider the following excerpt from mod_wl_ohs.conf: <IfModule weblogic_module> WebLogicCluster 192.168.13.1:7001, 192.168.13.2:7001,192.168.13.2:7001 </IfModule> <Location /welcome> SetHandler weblogic-handler </Location> Assuming that this is a valid is a valid configuration, which two conclusions can you make? 85 A. A web application name welcome is configured to use session replication. B. A web application that uses the paths welcome is targeted to the cluster. C. The proxy server will ignore any requests that contain the name welcome. D. The proxy server is listening on the host name welcome. E. A cluster exists that consists of at least two managed servers. F. All cluster members are running on the same machine. Answer: B,E Explanation: B: To proxy requests by path, use the Location block and the SetHandler statement. When to use <Location> Use <Location> to apply directives to content that lives outside the filesystem. For content that lives in the filesystem, use <Directory> and <Files>. An exception is <Location />, which is an easy way to apply a configuration to the entire server. For all origin (non-proxy) requests, the URL to be matched is a URL-path of the form /path/. No scheme, hostname, port, or query string may be included. For proxy requests, the URL to be matched is of the form scheme://servername/path, and you must include the prefix. E: Add an IfModule block that defines one of the following: For a non-clustered WebLogic Server instance: The WebLogicHost and WebLogicPort parameters. For a cluster of WebLogic Servers instances: The WebLogicCluster parameter. If you are proxying requests by MIME type to a cluster of WebLogic Servers, use the WebLogicCluster parameter. For example: <IfModule mod_weblogic.c> WebLogicCluster w1s1.com: 7001,w1s2.com:7001,w1s3.com:7001</IfModule> Note #1: The <IfModule test>...</IfModule> section is used to mark directives that are conditional on the presence of a specific module. The directives within an <IfModule> section are only processed if the test is true. If test is false, everything between the start and end markers is ignored. The test in the <IfModule> section directive can be one of two forms: module name 86 !module name Note #2: <Location> Directive Description:Applies the enclosed directives only to matching URLs Syntax:<Location URL-path|URL> ... </Location> Context:server config, virtual host Status:Core Module:core The <Location> directive limits the scope of the enclosed directives by URL. It is similar to the <Directory> directive, and starts a subsection which is terminated with a </Location> directive. <Location> sections are processed in the order they appear in the configuration file, after the <Directory> sections and .htaccess files are read, and after the <Files> sections. <Location> sections operate completely outside the filesystem. This has several consequences. Most importantly, <Location> directives should not be used to control access to filesystem locations. Since several different URLs may map to the same filesystem location, such access controls may by circumvented. Reference: eDocs Home > BEA WebLogic Server 8.1 Documentation > Using Web Server Plug- Ins with WebLogic Server > Installing and Configuring the Apache HTTP Server Plug-In QUESTION NO: 111 Which two statements are true about data sources that have been created? A. Data sources must be targeted to a server. B. Data sources must be bound in the JDNI tree of a server. C. Data sources are an Oracle WebLogic Server-specific feature. D. Data sources are tied directly to a connection pool. E. Data sources are required for a domain. Answer: B,D Explanation: In WebLogic Server, you configure database connectivity by adding data sources to your WebLogic domain. WebLogic JDBC data sources provide database access and database connection management. Each data source contains a pool of database connections that are created when the data source iscreated and at server startup. Applications reserve a database connection from the data source by looking up the data source on the JNDI tree or in the local 87 application context and then calling getConnection(). When finished with the connection, the application should call connection.close() as early as possible, which returns the database connection to the pool for other applications to use.