Free Oracle 1Z0-821 Exam Actual Questions

The questions for 1Z0-821 were last updated On Dec 19, 2024

Question No. 1

What is the result of executing the following command?

svcs -d svc:/network/ssh:default

Show Answer Hide Answer
Correct Answer: B

The svcs command displays information about service instances as recorded in the service configuration repository.

-d Lists the services or service instances upon which the given service instances depend.


Question No. 2

The advantage of core tiles is that they allow you an opportunity to examine the cause of problems, so that they can be resolved.

However, core files must be managed because they_____.

Show Answer Hide Answer
Correct Answer: A

Part of the job of cleaning up heavily loaded file systems involves locating and removing files that have not been used recently. You can locate unused files by using the ls or find commands.

Other ways to conserve disk space include emptying temporary directories such as the directories located in /var/tmp or /var/spool, and deleting core and crash dump files.

Note: Core files are generated when a process or application terminates abnormally. Core files are managed with the coreadm command.

For example, you can use the coreadm command to configure a system so that all process core files are placed in a single system directory. This means it is easier to track problems by examining the core files in a specific directory whenever a process or daemon terminates abnormally.


Question No. 3

When you issue the ''gzip: zommand not found'' message is displayed. You need to install the gzip utility on your system.

Which command would you use to check if the gzip utility is available from the default publisher for installation?

Show Answer Hide Answer
Correct Answer: D

Searching for Packages

Use the pkg search command to search for packages whose data matches the specified pattern.

Like thepkg contentscommand, thepkg searchcommand examines the contents of packages. While thepkg contentscommand returns the contents, thepkg searchcommand returns the names of packages that match the query.

pkg search

search [-HIaflpr] [-o attribute ...] [-s repo_uri] query

Search for matches to the query, and display the results.

Which tokens are indexed are action-dependent, but may include content hashes and pathnames.

Note: pkg is the retrieval client for the image packaging system. With a valid configuration, pkg can be invoked to create locations for packages to be installed, called 'images', and install packages into those images. Packages are published by publishers, who may make their packages available at one or more repositories. pkg, then, retrieves packages from a publisher's repository and installs them into an image.


Question No. 4

View the following information for a software package:

Which command would you use to display this information for a software package that is not currently installed on your system?

Show Answer Hide Answer
Correct Answer: B

By default, the pkg info command only lists information about installed packages on the system; however, we can use a similar command to look up information about uninstalled packages, as shown in here:

Example:

Listing Information About an Uninstalled Package

# pkg info -r php-52

Name: web/php-52

Summary: PHP Server 5.2

Description: PHP Server 5.2

Category: Development/PHP

State: Not Installed

Publisher: solaris

Build Release: 5.11

Branch: 0.175.0.0.0.1.530

Packaging Date: Wed Oct 12 14:01:41 2011

Size: 44.47 MB

FMRI: pkg://solaris/web/php-52@5.2.17, 5.11-0.175.0.0.0.1.530:20111012T140141Z

Note: pkg info command displays information about packages in a human-readable form.

Multiple FMRI patterns may be specified; with no patterns, display information on all installed packages in the image.

With -l, use the data available from locally installed packages.

This is the default.

With -r, retrieve the data from the repositories of the image's configured publishers. Note that you must specify one or more package patterns in this case.


Question No. 5

You are troubleshooting a newly installed desktop Oracle Solaris 11 system with a single network interface. From this system, you can connect to other systems within the company intranet, but cannot access any external services (such as websites and email), even when using IP addresses.

Examining the routing table confirms that the default route to 192.168.1.1 is missing. DHCP is not used at this site. Which two commands will temporarily mid permanently configure the default route?

Show Answer Hide Answer
Correct Answer: B, F

B: Setting the default route on Solaris is easy. If you are trying to just set the route temporarily you can use the route command:

Route add default <ipaddress>

Example:

Route add default 192.168.1.1

Note: Route command manipulates the kernel routing tables. Routing is the process of forwarding a packet from one computer to another. It is based on the IP address in the IP packet header and netmask.

F: If you want the route to be persisted when you reboot the system, you will need to set the route in the /etc/defaultrouter file.

/etc/defaultrouter

Example:

Echo 192.168.1.1 > /etc/defaultrouter