Anda di halaman 1dari 130

Oracle 1z0-821

Oracle Solaris 11 System Administration


Version: 6.0

Oracle 1z0-821 Exam


QUESTION NO: 1
zone1 is a non-global zone that has been configured and installed.
zone1 was taken down for maintenance, and the following command was run:
zoneadm -z zone1 mark incomplete
The following information is displayed when listing the zones on your system:

Which task needs to be performed before you can boot zone1?

A. The zone needs to be installed.


B. The zone needs to be brought to the ready state. C.
The zone needs to be uninstalled and reinstalled.
D. The zone needs to be brought to the complete state.
Answer: C
Explanation: If administrative changes on the system have rendered a zone unusable or
inconsistent, it is possible to change the state of an installed zone to incomplete.
Marking a zone incomplete is irreversible. The only action that can be taken on a zone marked
incomplete is to uninstall the zone and return it to the configured state.
Reference: Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks), How
to Mark an Installed Non-Global Zone Incomplete

QUESTION NO: 2
You need to make sure that all of the software packages on your server are up to date. Without
installing any updates, which two commands would display .my software updates that are
available in the default Oracle repository?

A. pkg list -u
B. pkg verify -u '*'

"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


C. pkg search -u
D. pkg info -r '*'
E. pkg install -nv
F. pkg update -nv '*'
Answer: A,D
Explanation: A: the pgk list command display a list of packages in the current image, including
state and other information. By default, package variants for a different architecture or zone type
are excluded.
D: pkginfo displays information about software packages that are installed on the system (with the
first synopsis, with -l) or that reside on a particular device or directory (with the second synopsis,
with -r).
Without options, pkginfo lists the primary category, package instance, and the names of all
completely installed and partially installed packages. It displays one line for each package
selected.
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.
Reference: pkg(1) Man Page

QUESTION NO: 3
Which best describes the svc:/system/boot-config service?

A. It is used to change the milestone on a system.


B. It is used to set the default run level of the system.
C. It provides the parameters used to set the system to automatically perform a fast or slow
reboot.
D. When the service is enabled, the system performs a fast reboot by default; when it is disable
the system performs a slow reboot by default.
Answer: C
Explanation: Starting with the Oracle Solaris 11 Express release, Fast Reboot is supported on
the SPARC platform, as well as the x86 platform. On both platforms, this feature is controlled by
the SMF and implemented through a boot configuration service, svc:/system/boot-config. The
boot-config service provides a means for setting or changing the default boot configuration
parameters.

"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


The fastreboot_default property of the boot-config service enables an automatic fast reboot of the
system when either the reboot or the init 6 command is used. When the config/fastreboot_default
property is set to true the system automatically performs a fast reboot, without the need to use the
reboot -f command. By default, this property's value is set to false on the SPARC platform and to
true on the x86 platform.
Reference: System Administration Guide: Basic Administration, Oracle Solaris 11
Managing the Boot Configuration Service

QUESTION NO: 4
A user jack, using a korn shell, requests a directory listing as follows:
jack@solaris:/export/home/jack $ 1s
file filea Filea fileb Fileb filec Filec
Which two statements are correct?

A. The pattern [?i]*a will expand to filea Filea. B.


The pattern [fF]*a? will expand to [fF] *a?.
C. The pattern [gfe] * will expand to file filea fileb filec. D.
The pattern [g-e] * will expand to file filea fileb filec. E. The
pattern [fF] [a-zA-z] i*e will expand to file.
Answer: A,C
Explanation: A: starting with one single character, second character must be letter i, any
characters, ending with letter a.
C: starting with letter e, f, or g, followed by anything.

QUESTION NO: 5
You created an IP address for interface not.3 with the following command, which executed
successfully:
ipadm create-addr -T static -a 192.168.0.100/24 net3/v4

"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


You then ran:
ipadm show-if
The result indicated that the interface was down.
You then ran:
ipadm delete-addr net3/v4
ipadm create-addr -T static -a 192.168.0.101/24 net3/v4
ipadm show-if
The last command indicated that the interface was up.
Why did it work with the second address specified, but not the first?

A. The 192.168.0.100 address is reserved for broadcast messages.


B. Another device exists on the network, using the 192.168.0.100 address. C.
The network interface card does not support the address 192.168.0.100.
D. The address 192.168.0.100 is at a boundary and may not be configured in Oracle Solaris 11.
E. 192.168.0.100 is a DHCP address and may not be statically configured in Oracle Solaris 11.
Answer: B
Explanation: The first IP address is already in use.

QUESTION NO: 6
You have a ticket from a new user on the system, indicating that he cannot log in to his account.
The information in the ticket gives you both the username and password. The ticket also shows
that the account was set up three days ago.

As root, you switch users to this account with the following command:
su - newuser
You do not get an error message.
You then run 1s -1a and see the following files:
local1.cshrc local1.login local1.profile .bash_history .bashrc .profile

"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


As root, you grep the /etc/passwd file and the /etc/shadow file for this username, with these
results:
/etc/passwd contains newuser:x:60012:10:/home/newuser:/usr/bin/bash
/etc/shadow contains newuser:UP: : : : :10: :
As root, what is your next logical step?
A. Usermod -f 0
B. passwd newuser
C. mkdir /home/newuser
D. useradd -D
Answer: B
Explanation: The content of the /etc/shadow document indicates that the newuser account has no
password.
We need to add a password.
The passwd utility is used to update user's authentication token(s).
D: Here the user account already exist. There is no need to create it.
When invoked without the -D option, the useradd command creates a new user account using the
values specified on the command line plus the default values from the system. Depending on
command line options, the useradd command will update system files and may also create the
new user's home directory and copy initial files.
Reference: man passwd

QUESTION NO: 7
You have a user that needs to use the cron tool to schedule some repetitive tasks. When the user
enters the crontab -e command in a terminal window, the following error appears:
crontab: you are not authorized to use cron. Sorry
In order to troubleshoot this issue, in what directory would you start your invest

A. /etc/cron.d
B. /var/spool/cron
"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


C. /var/spool/cron/crontable
D. /var/spool/cron/atjobs
Answer: A
Explanation: crontab: you are not authorized to use cron. Sorry.
This message means that either the user is not listed in the cron.allow file (if the file exists), or the
user is listed in the cron.deny file.
You can control access to the crontab command by using two files in the /etc/cron.d directory:
cron.deny and cron.allow. These files permit only specified users to perform crontab command
tasks such as creating, editing, displaying, or removing their own crontab files.
The cron.deny and cron.allow files consist of a list of user names, one user name per line.
Reference: Oracle Solaris Administration: Common Tasks
Controlling Access to the crontab Command

QUESTION NO: 8
You are having an issue with the shutdown command. You wish to determine if the file is a script
or an executable program. Which command would you use to determine this?

A. od shutdown B. file
shutdown C. test
shutdown
D. cksum shutdown
E. attrib shutdown
Answer: B
Explanation: The file command determines the file type.
file tests each argument in an attempt to classify it. There are three sets of tests, performed in this
order: filesystem tests, magic tests, and language tests. The first test that succeeds causes the file
type to be printed.
Reference: man file

"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


QUESTION NO: 9
What determines which bits in an IP address represent the subnet, and which represent the host?

A. Subnet B.
unicast
C. netmask D.
multicast E.
broadcast
Answer: C
Explanation: A subnetwork, or subnet, is a logically visible subdivision of an IP network. The
practice of dividing a network into two or more networks is called subnetting.
The routing prefix of an address is written in a form identical to that of the address itself. This is
called the network mask, or netmask, of the address. For example, a specification of the mostsignificant 18 bits of an IPv4 address, 11111111.11111111.11000000.00000000, is written
as 255.255.192.0.

QUESTION NO: 10
Which two accurately identify features of a Solaris 10 branded zone?

A. executes in a Solaris 10 global zone


B. is created by importing a Solaris 10 flash archive
C. enables Linux binary applications to run unmodified
D. provides a complete runtime environment for Solaris 9 applications
E. allows a Solaris 10 global zone to be migrated into a Solaris 10 non-global zone on a Solaris 11
system
Answer: A,B
Explanation: B: It can be created by importing a Solaris 10 flash archive.
You can use the Oracle Solaris Flash archiving tools to create an image of an installed system that
can be migrated into a zone.
The system can be fully configured with all of the software that will be run in the zone before the
image is created. This image is then used by the installer when the zone is installed.
Note: You can use alternate methods for creating the archive. The installer can accept the
following archive formats:
* cpio archives

"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


* gzip compressed cpio archives
* bzip2 compressed cpio archives
* pax archives created with the -x xustar (XUSTAR) format
ufsdump level zero (full) backups

Note:
Branded zones that run an environment different that the OS release on the system
* The lx branded zone introduced in the Solaris 10 8/07 release provides a Linux environment for
your applications and runs on x86 and x64 machines on the Oracle Solaris 10 OS.
* The solaris8 and solaris9 branded zones enable you to migrate an Oracle Solaris 8 or Oracle
Solaris 9 system to an Oracle Solaris 8 or Oracle Solaris 9 Container on a host running the Oracle
Solaris 10 8/07 Operating System or later Oracle Solaris 10 release.
* The Oracle Solaris 10 Container brand is available in OpenSolaris build 127. These branded
zones host Oracle Solaris 10 user environments.

Reference: Solaris10-Branded Zone Developer Guide

QUESTION NO: 11
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?

A. ipadm set-gateway 192.168.1.1


B. route add default 192.168.1.1 C.
ipadm set-default 192.168.1.1
D. dladm route-add -d 192.168.1.1 E. echo
192.168.1.1 >/etc/gateway
F. echo 192.168.1.1 >/etc/defaultrouter
Answer: B,F
Explanation: 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:
"Pass Any Exam. Any Time." - www.TwPass.com

Oracle 1z0-821 Exam


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

QUESTION NO: 12
You want the system to generate an email notification each time one of the services has changed
its state. Which option would send an email message to the system administrator whenever a
service changes to the maintenance state?

A. Use the setsc command in ALOM to enable the mail alerts to be sent to a specified email
address whenever the fault management facility detects a service change to the maintenance
state.
B. Make an entry in the /etc/syslog.conf file to instruct syslogd to send an email alert when it
receives a message from the SMF facility that a service has changed to the maintenance
state. C. Use the svccfg setnotify command to create a notification and send an email when a
service enters the maintenance state.
D. Use the scvadm command to enable the notification service. Set the -g maintenance option on
the netnotify service to send an email when a service enters the maintenance state.
Answer: C
Explanation: This procedure causes the system to generate an email notification each time one
of the services or a selected service has a change in state. You can choose to use either SMTP or
SNMP. Normally, you would only select SNMP if you already have SNMP configured for some

"Pass Any Exam. Any Time." - www.TwPass.com

10

Oracle 1z0-821 Exam


other reason.
By default, SNMP traps are sent on maintenance transitions. If you use SNMP for monitoring, you
can configure additional traps for other state transitions.
1. Become an administrator or assume a role that includes the Service Management rights profile.
2. Set notification parameters.
Example:
The following command creates a notification that sends email when transactions go into the
maintenance state
# /usr/sbin/svccfg setnotify -g maintenance mailto:sysadmins@example.com
Reference: Oracle Solaris Administration: Commons Tasks
How to Set Up Email Notification of SMF Transition Events

QUESTION NO: 13
How are operating system updates distributed in the Oracle Solaris 11 environment?

A. Updates are only available to customers with an active support contract. The updates are
distributed through the My Oracle Support web portal and installed in a central location. All
software packages are then updated manually from the command line using the smpatch
command.
B. Patches are download from http: //support.oracle.com either automatically or manually. All
software packages are then updated manually from the command line using the smpatch or
patchadd commands.
C. Software updates are published as packages to a repository. All software packages are then
updated manually from the command line using the pkg command.
D. Software updates, published as packages to an OS image. All software packages are then
updated manually from the command line using the pkg command.
Answer: C
Explanation: * Updating all of the packages on your installed system - To update all of the
packages on your system that have available updates, use the pkg update command, as follows:
# pkg update
Running this command updates packages that you might not otherwise consider updating, for

"Pass Any Exam. Any Time." - www.TwPass.com

11

Oracle 1z0-821 Exam


example, kernel components and other low-level system packages.
* Adding or updating individual packages - To add individual software packages, use the pkg
install command. Any dependent packages are also updated at the same time.
* install package updates that deliver fixes- A pkg update operation might include bug fixes, so the
operation is similar to applying a specific patch or patches in previous Oracle Solaris releases.
Note: The IPS interfaces first check for updates for currently installed packages before retrieving
them via the network. By default, interfaces check repository catalogs in the following locations:
* The default installation repository at pkg.oracle.com/solaris/release.
* The support repository in My Oracle Support. This repository is restricted to users with Oracle
Solaris 11 Express support contracts, and it contains packages with the latest bug fixes. For this
reason, a support contract must be purchased for production deployments.

Reference: Updating the Software on Your Oracle Solaris 11 System

QUESTION NO: 14
User jack, whose account is configured to use the korn shell, logs in and examines the value of his
PATH environment variable:
jack@solaris: echo $PATH
/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin
There is a shell script in jack's home directory called useradd:
-r-xr-xr-x 2 jack other 1239 2012-01-05 11:42 useradd
While in his home directory, jack attempts to run the script:
jack@solaris: useradd
What will happen, and why?
A. He will get a "file not found" error, because the current directory is not in his seaech path.
B. He will get a "file not found" error, because his home directory is not in his search path.
C. The useradd script will execute, because jack is in the same directory that the script is located
"Pass Any Exam. Any Time." - www.TwPass.com

12

Oracle 1z0-821 Exam


in.
D. The command /user/sbin/useradd will execute, because it is the last match in the search path.
E. The command /user/sbin/useradd will execute, because it is the first match in the search path.
Answer: D
Explanation:

QUESTION NO: 15
User jack on host solaris attempts to use ssh to log in to host oracle and receives this message:
jack@solaris:~$ ssh oracle
ssh: connect to host oracle port 22: connection refused
What is the problem?

A. Host oracle does not have a valid host public key. B.


Host oracle does not have a valid host private key. C. Host
solaris does not have a valid host public key. D. Host does
not have a valid host private key.
E. Host solaris is not configured for host-based authentication. F.
Host oracle is not configured for host-based authentication. G.
Host oracle is not running the ssh service. H. Host solaris is not
running the ssh service.
Answer: G
Explanation: The host he is trying to connect to (oracle) is not running the required service (ssh).

QUESTION NO: 16
When speaking in an Oracle Support Engineer, you are asked to verify the version of the Solaris
11 build currently running on your system. Which command would display the Solaris 11 build
version currently running on your system?

A. pkg info all


B. cat /etc/release C. cat
/etc/update
D. prtconf | grep -i update
"Pass Any Exam. Any Time." - www.TwPass.com

13

Oracle 1z0-821 Exam


E. pkg info entire
Answer: B
Explanation: Which Solaris release you are running on your system can be determined
using the following command:
cat /etc/release
This will tell you which release you are running and when it was released.
The more recent your system, the more info is contained in this file.
Example:
# cat /etc/release
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011

QUESTION NO: 17
You need to configure an ISCSI target device on your x86 based Oracle Solaris II system. While
configuring the iSCSI device, the following error is displayed:
bash: stmfadm: command not found
Which option describes the solution to the problem?

A. The COMSTAR feature is not supported on the x86 platform. The feature is supported only on
the SPARC platform.
B. Use the iscsitadm command on the x86 platform when configuring an iSCSI target. C.
Install the storage-server group package on this system. D. Start the iSCSI target
daemon on this system.
Answer: C
Explanation: STMF - Manages transactions, such as context and resources for Small Computer
System Interface (SCSI) command execution, and tracking logical unit and port providers. STMF
also handles logical unit mappings, allocating memory, recovering failed operations, enumeration,
and other necessary functions of an I/O stack.
STMF is controlled by stmfadm, and stmfadm is the majority of the commands you will be using to
administer COMSTAR (COmmon Multiprotocl Scsi TARget).
Install the packages you need for COMSTAR with iSCSI and reboot:
"Pass Any Exam. Any Time." - www.TwPass.com

14

Oracle 1z0-821 Exam


# pfexec pkg install storage-server
# pfexec pkg install SUNWiscsit
# shutdown -y -i6 -g0
Note: You can set up and configure a COMSTAR Internet SCSI (iSCSI) target and make it
available over the network. The iSCSI features can work over a normal Internet connection (such
as Ethernet) using the standard iSCSI protocol. The iSCSI protocol also provides naming and
discovery services, authentication services using CHAP and RADIUS, and centralized
management through iSNS.
The COMSTAR target mode framework runs as the stmf service. By default, the service is
disabled. You must enable the service to use COMSTAR functionality. You can identify the service
with the svcs command. If you have not rebooted the server since installing the
group/feature/storage-server package, the service might not be enabled correctly.
Reference: Oracle Solaris Administration, Configuring iSCSI Devices With COMSTAR

QUESTION NO: 18
Your SPARC server will not boot into multi user-server milestones and you need to troubleshoot to
out why. You need to start the server with minimal services running so that you can go through
each milestone manually to troubleshoot the issue.
Select the option that boots the server with the fewest services running.

A. boot -s
B. boot milestone none
C. boot -m milestone=single-user
D. boot -m milestone=none
E. boot -m none
Answer: D
Explanation: The command boot -m milestone=none is useful in repairing a system that have
problems booting early.
Boot Troubleshooting:
To step through the SMF portion of the boot process, start with:
boot -m milestone=none

"Pass Any Exam. Any Time." - www.TwPass.com

15

Oracle 1z0-821 Exam


Then step through the milestones for the different boot levels:
svcadm milestone svc:/milestone/single-user:default
svcadm milestone svc:/milestone/multi-user:default
svcadm milestone svc:/milestone/multi-user-server:default

QUESTION NO: 19
user1 is attempting to assist user2 with terminating user2's process 1234.
user1 entered the following: kill -9 1234
Why does the process continue to run?

A. You can kill a process only if you are root. B.


You can kill only a process that you own.
C. You can kill the process only with the pkill command. D.
You need to kill the process with a stronger kill signal.
Answer: B
Explanation: kill -9
Kill (terminates without cleanup)
Only works if issued by process owner or super user (root)
The program cannot respond to this signal; it must terminate
Note: Unix provides security mechanisms to prevent unauthorized users from killing other
processes. Essentially, for a process to send a signal to another, the owner of the signaling
process must be the same as the owner of the receiving process or be the superuser.
Reference: Solaris Common Desktop Environment: User's Guide, Sending Kill Signals to a
Process

QUESTION NO: 20
Your server has one zone named dbzone (hat has been configured, but not yet installed). Which
command would you use to view all the options that were used to configure this zone?

A. zoneadm list -icv dbzone

"Pass Any Exam. Any Time." - www.TwPass.com

16

Oracle 1z0-821 Exam


B. zones tat -c summary dbzone
C. zonecfg -z dbzone info
D. zonecfg -icv dbzone info
Answer: C
Explanation: zonecfg info
Display information about the current configuration. If resource-type is specified, displays only
information about resources of the relevant type. If any property-name value pairs are specified,
displays only information about resources meeting the given criteria. In the resource scope, any
arguments are ignored, and info displays information about the resource which is currently being
added or modified.
Note:
zonecfg -z
zonename. Specify the name of a zone. Zone names are case sensitive. Zone names must begin
with an alphanumeric character and can contain alphanumeric characters, the underscore (_) the
hyphen (-), and the dot (.). The name global and all names beginning with SUNW are reserved
and cannot be used.

Incorrect answer:
A: The zoneadm utility is used to administer system zones. A zone is an application container that
is maintained by the operating system runtime.
list option:
Display the name of the current zones, or the specified zone if indicated. B:
No such command.
D: no such options zonecfg -icv
Reference: man zonecfg

QUESTION NO: 21
Your users are experiencing delay issues while using their main application that requires
connections to remote hosts. You run the command uptime and get the flowing output:
1:07am up 346 day(s), 12:03, 4 users, load average: 0.02, 0.02, 0.01
Which command will be useful in your next step of troubleshooting?

"Pass Any Exam. Any Time." - www.TwPass.com

17

Oracle 1z0-821 Exam


A. ipadm
B. traceroute
C. dladm
D. snoop
E. arp
Answer: B
Explanation: Test the remote connection with traceroute.
The Internet is a large and complex aggregation of network hardware, connected together by gateways. Tracking the route one's packets follow (or
finding the miscreant gateway that's discarding your packets) can be difficult. traceroute utilizes the IP protocol `time to live' field and
attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the
path to some host.
This program attempts to trace the route an IP packet would follow to
some internet host by launching UDP probe packets with a small ttl (time to
live) then listening for an ICMP "time exceeded" reply from a gateway.
Reference: man traceroute

QUESTION NO: 22
When upgrading an existing system from Solaris 10 to Oracle Solaris 11, what happens to the
datalink names?

A. They follow the default naming convention for the newly installed version. B.
They maintain their names. C. They are called eth#.
D. They are called el00g#.
E. They are left unnamed, to avoid conflicts, and need to be renamed after the installation process
is complete.
Answer: A
Explanation: Network configuration in Oracle Solaris 11 includes
* Generic datalink name assignment - Generic names are automatically assigned to
datalinks using the net0, net1, netN naming convention, depending on the total number of
network devices that are on the system

"Pass Any Exam. Any Time." - www.TwPass.com

18

Oracle 1z0-821 Exam


Note: There is no upgrade path from Oracle Solaris 10 to Oracle Solaris 11. You must perform a
fresh installation.
Reference: Transitioning From Oracle Solaris 10 to Oracle Solaris 11, Network Configuration
Features

QUESTION NO: 23
You have installed software updates to a new boot environment (BE) and have activated that the
booting to the new BE, you notice system errors. You want to boot to the last known good
configuration.
Which option would you use on a SPARC system to boot to the currentBE boot environment?

A. boot -L currentBE
B. boot -Z rpool/ROOT/currentBE
C. boot -a Enter the currentBE dataset name when prompted.
D. boot rpool/ROOT/currentBE
E. boot -m currentBE
F. beadm activate currentBE
Answer: F
Explanation: You can change an inactive boot environment into an active boot environment. Only
one boot environment can be active at a time. The newly activated boot environment becomes the
default environment upon reboot.
How to Activate an Existing Boot Environment
beadm activate beName
beName is a variable for the name of the boot environment to be activated.
Note the following specifications.
beadm activate beName activates a boot environment by setting the bootable pool property,
bootfs, to the value of the ROOT dataset of the boot environment that is being activated.
beadm activate sets the newly activated boot environment as the default in the menu.lst file.
The newly activated boot environment is now the default on the x86 GRUB menu or SPARC boot
menu.
"Pass Any Exam. Any Time." - www.TwPass.com

19

Oracle 1z0-821 Exam


Reference: Changing the Default Boot Environment
Booting a Solaris System

QUESTION NO: 24
Oracle Solaris 11 limits access to the system with usernames and passwords
The usernames are held in ___________, and the passwords are held in ___________.
Select the correct pair.
A. /etc/security/policy.conf /etc/passwd
B. /etc/passwd /etc/shadow C.
/etc/security /etc/passwd D.
/etc/shadow /etc/passwd
Answer: B
Explanation: The /etc/passwd file contains basic user attributes. This is an ASCII file that contains
an entry for each user. Each entry defines the basic attributes applied to a user.
/etc/shadow file stores actual password in encrypted format for user's account with additional
properties related to user password i.e. it stores secure user account information. All fields
areseparated by a colon (:) symbol. It contains one entry per line for each user listed in
/etc/passwd file.

QUESTION NO: 25
_________ serves as the interface between the SMF repository and the user to ensure that a
consistent, picture of the repository is presented to the user.

A. repository.db
B. service manifest
C. svc.startd
D. svc.configd
Answer: D
Explanation: SVC.CONFIGD is the repository daemon responsible for maintaining
"Pass Any Exam. Any Time." - www.TwPass.com

20

Oracle 1z0-821 Exam


/etc/svc/repository.db. The repository.db must come clean during this integrity check otherwise it is
a "no go" for usual boot sequence to run level 3. The repository may get corrupted due to various
hardware issues, software bugs, disk write failures, etc.
Note: When svc.configd(1M), the Solaris Repository Daemon, is started, it does an integrity check
of the smf(5) repository, stored in /etc/svc/repository.db. This integrity check can fail due to a disk
failure, the database file being corrupted either due to a hardware bug, a software bug, or an
accidental overwrite. If the integrity check fails, svc.configd will write a message to the console.

QUESTION NO: 26
You are attempting to edit your crontab file in the bash shell. Instead of getting your usual vi
interface, you are presented with an unfamiliar interface. In order to have your editor of choice-viwhat command must you type after exiting the unfamiliar editor?

A. EDITOR=vi B.
crontab=vi
C. crontab - e vi
D. env
Answer: A
Explanation: Set the EDITOR variable to vi.
Commands like `crontab -e` will use ed per default. If you'd like to use some better editor (like vi)
you can use the environment variable EDITOR:
# EDITOR=vi; crontab -e
will open the users crontab in vi. Of course you can set this variable permanently.
Incorrect answers
C: -e Edits a copy of the current user's crontab file, or creates an empty file to edit if crontab does
not exist. When editing is complete, the file is installed as the user's crontab file. If a username is
given, the specified user's crontab file is
edited, rather than the current user's crontab file; this can only be done by a user with the
solaris.jobs.admin authorization. The environment variable EDITOR determines which editor is
invoked with the -e option. The default editor is ed(1). All crontab jobs should be submitted using
crontab. Do not add jobs by just editing the crontab file, because cron is not aware of changes
made this way.
Reference: Setting the default editor
"Pass Any Exam. Any Time." - www.TwPass.com

21

Oracle 1z0-821 Exam

QUESTION NO: 27
You want to display the IP address assignments of the network interfaces. Which command
should you use?

A. ipadm show-if
B. ipadm show-addr C.
ipadm show-prop
D. ipadm show-addrprop
Answer: B
Explanation: 'ipadm show-addr' displays all the configured addresses on the system.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
Reference: ipadm(1M) - the new ifconfig(1M)

QUESTION NO: 28
The following image properties are displayed on your system:

Which two options describe the boot environment policy property that is currently set for this

"Pass Any Exam. Any Time." - www.TwPass.com

22

Oracle 1z0-821 Exam


image?

A. All package operations are performed in a new BE set as active on the next boot.
B. Do not create a new BE. The install, update, uninstall, or revert operation is not performed if a
new BE is required.
C. If a BE is created, do not set it as the active BE on the next boot
D. A reboot is required for all package operations
E. A reboot is not required after a package operation.
F. For package operations that require a reboot, this policy creates a new BE set as active on the
next boot.
Answer: D,F
Explanation: image properties described below.
* be-policy
Specifies when a boot environment is created during packaging operations. The following values
are allowed:
/ default
Apply the default BE creation policy: create-backup.
/ always-new (D, F)
Require a reboot for all package operations (D) by performing them in a new BE set as active on
the next boot (F). A backup BE is not created unless explicitly requested.
This policy is the safest, but is more strict than most sites need since no packages can be added
without a reboot.

QUESTION NO: 29
dbzone is currently running on your server.
Which two methods would you use to safely and cleanly shut down dbzone and all of its
applications?

A. zlogin -z dbzone halt


B. zoneadm -z dbzone shutdown -i0
C. zoneadm -z dbzone shutdown
D. zoneadm -z dbzone halt
E. zlogin dbzone shutdown -i0

"Pass Any Exam. Any Time." - www.TwPass.com

23

Oracle 1z0-821 Exam


Answer: D,E
Explanation: D: zoneadm halt command halts the specified zones. halt bypasses running the
shutdown scripts inside the zone. It also removes run time resources of the zone.
E: Use: zlogin zone shutdown
to cleanly shutdown the zone by running the shutdown scripts.
Use this procedure to cleanly shut down a zone.
1.Become superuser, or assume the Primary Administrator role.
2. Log in to the zone to be shut down, for example, my-zone, and specify shutdown as the name
of the utility and init 0 as the state.
global#zlogin my-zone shutdown -y -g0 -i 0

Reference: System Administration Guide: Oracle Solaris Containers-Resource Management and


Oracle Solaris Zones, How to Use zlogin to Shut Down a Zone
Reference: man zoneadm

QUESTION NO: 30
View the Exhibit to see the information taken from the installation log file.
Based on the information presented in the Exhibit, which two options describe the state of the
system when the server is booted for the first time after the installation is complete?

A. NWAM will be used to configure the network interface. B.


The network/physical service is offline.
C. You cannot log in from the console as root. You must first log in as a user and then su to root
account.
"Pass Any Exam. Any Time." - www.TwPass.com

24

Oracle 1z0-821 Exam


D. The root user can log in from the console login.
E. You will be prompted to configure the network interface after the initial login.
Answer: C,E
Explanation: C (not D):Solaris 11 create user account and does not allow ssh root login by
default.
Note:Oracle Solaris 11 uses profile-based network configuration, which is comprised of two
network configuration modes: manual (fixed) and automatic (reactive). Depending on which
network configuration mode you choose during an installation, either the DefaultFixed network
configuration profile (NCP) or the Automatic NCP is activated on the system. If
the DefaultFixed NCP is active, the network is manually configured by using
the dladm and ipadm commands . If the Automatic NCP or a user-defined NCP that you previously
created is active, the netcfg and netadm commands (formerly nwamcfg and nwamadm) are used
to create and manage network configuration.
How the Network Is Configured During an Installation
* For a GUI installation, the Automatic NCP is activated, and the network is automatically
configured, based on current network conditions.
* For a text installation, you must choose Automatic, Manual, or None.
**If you choose Automatic, the Automatic NCP is activated, and the network is automatically
configured upon reboot.
**If you choose Manual , the DefaultFixed NCP is activated, and you are presented with a series of
installation screens that enable you to manually configure your network settings.
**If you choose None, the DefaultFixed NCP is activated, but you do not provide network
parameters during the installation. Thus, after a reboot, no network interface is plumbed or
configured. Only the loopback IPv4 and IPv6 interfaces (lo0) are activated. You must manually
configure your network by using dladm andipadm in this case.
Reference: How the Network Is Configured in Oracle Solaris 11

QUESTION NO: 31
In order to display the IP addresses of network interfaces, what command would you use?

A. dladm
B. ipconfig
C. sves
D. ipadm E. ipaddr

"Pass Any Exam. Any Time." - www.TwPass.com


25

Oracle 1z0-821 Exam


Answer: D
Explanation: 'ipadm show-addr' displays all the configured addresses on the system.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128

QUESTION NO: 32
The su command by default makes an entry into the log file for every su command attempt. The
following is a single line from the file:
SU 12/18 23:20 + pts/1 user1-root
What does the + sign represent?

A. unsuccessful attempt
B. successful attempt
C. The attempt was from a pseudo terminal, and not the console.
D. The attempt was from a user that is in the adm group, same as root. E.
Time zone is not set.
Answer: B
Explanation: The sulog file, /var/adm/sulog, is a log containing all attempts (whether successful or
not) of the su command. An entry is added to the sulog file every time the su command is
executed. The fields in sulog are: date, time, successful (+) or unsuccessful (-), port, user
executing the su command, and user being switched to. In the preceding example, all su attempts
were successful, except for the attempt on 2/23 at 20:51, when user pete unsuccessfully
attempted to su to user root.
Look for entries where an unauthorized user has used the command inappropriately. The following
entry shows a successful (indicated by +) su from user userid to root.
SU 03/31 12:52 + pts/0 <userid>-root
Reference: /var/log/sulog, Solaris System Logs

"Pass Any Exam. Any Time." - www.TwPass.com

26

Oracle 1z0-821 Exam

QUESTION NO: 33
A user brian is configured to use the bash shell. His home directory is /export/home/brian, and
contains a .profile and a .bashrc file.
In the -profile, there are these lines:
genius =ritchie
export genius
In the .bashrc us this line:
genius=kernighan
In /etc/profile are these lines:
genius=thompson
export genius

When brian logs in and asks for the value of genius, what will he find, and why?

A. genius will be ritchie, because that was the value exported in .profile. B.
genius will be kernighan, because .bashrc executes after .profile.
C. genius will be ritchie because variable settings in .profile take precedence over variable settings
in .bashrc.
D. genius will be ritchie because .profile executes after .bashrc.
E. genius will be thompson because /etc/profile system settings always override local settings.
Answer: C
Explanation:

QUESTION NO: 34
Consider the following commands:

"Pass Any Exam. Any Time." - www.TwPass.com

27

Oracle 1z0-821 Exam

What is displayed when this sequence of commands is executed using the bash shell?

A. Hello, world
B. cat: cannot open file1: No such file or directory Hello, world
C. cat: cannot open file1: No such file or directory
D. bash: syntax error near unexpected token '| |'
E. bash: syntax error broker pipe
Answer: A
Explanation: First line (rm file1) deletes/removes file1.
Second line captures the text into file2.
The first part of line 3 (cat file1) fails as the file1 does not exist.
The || (OR) operator will execute the second statement of line 3 (cat file2). This statement will run
fine. The result of the third line will be the result of cat file2.

Note: cat - concatenate files and print on the standard output


Note #1: A list is a sequence of one or more pipelines separated by one of the operators ';', '&',
'&&', or '||', and optionally terminated by one of ';', '&', or a newline.
Of these list operators, '&&' and '||' have equal precedence, followed by ';' and '&', which have
equal precedence.
AND and OR lists are sequences of one or more pipelines separated by the control operators '&&'
and '||', respectively. AND and OR lists are executed with left associativity.
An AND list has the form
command1 && command2
command2 is executed if, and only if, command1 returns an exit status of zero.
An OR list has the form
command1 || command2

"Pass Any Exam. Any Time." - www.TwPass.com

28

Oracle 1z0-821 Exam


command2 is executed if, and only if, command1 returns a non-zero exit status.
The return status of AND and OR lists is the exit status of the last command executed in the list.
Note #2 (on exit status): Zero means command executed successfully, if exit status returns nonzero value then your command failed to execute.
Reference: Bash Reference Manual, Lists of Commands

QUESTION NO: 35
You are logged in as root to a newly installed Solaris 11 system. You issue the command useradd
-d, and then examine the /usr/sadm/defadduser file. This file includes the entry defshell=/bin/sh.
Which shell will now be the default for the next account created?

A. bash shell
B. C shell
C. korn shod
D. bourne shell
Answer: A
Explanation: Oracle Solaris 11 introduces user environment and command-line argument
changes that include the following:
* Shell changes - The default shell, /bin/sh, is now linked to ksh93. The default user shell is the
Bourne-again (bash) shell.
* The legacy Bourne shell is available as /usr/sunos/bin/sh.
* The legacy ksh88 is available as /usr/sunos/bin/ksh from the shell/ksh88 package.
* Korn shell compatibility information is available in /usr/share/doc/ksh/COMPATIBILITY.
Reference: Oracle Solaris 11 Information Library, User Environment Feature Changes

QUESTION NO: 36
You want to display network interface information. Which command should you use?

"Pass Any Exam. Any Time." - www.TwPass.com

29

Oracle 1z0-821 Exam


A. ipadm show-if
B. ipadm show-addr
C. ipadm show-prop
D. ipadm show-addrprop
Answer: B
Explanation: 'ipadm show-addr' displays all the configured addresses on the system.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
Reference: ipadm(1M) - the new ifconfig(1M)

QUESTION NO: 37
Which two options accurately describe the network characteristics of a zone?

A. DHCP address assignment cannot be configured in a shared IP zone. B.


Shared IP is the default type of network configuration.
C. Exclusive IP is the default type of network configuration.
D. By default, all IP addresses, netmasks, and routes are set by the global zone and cannot be
altered in a non global zone.
E. IPMP cannot be managed within the non-global zone.
F. Commands such as snoop and dladm cannot be used on datalinks that are in use by a running
zone.
Answer: A,B
Explanation: A: Non-global zones can not utilize DHCP (neither client nor server).
B (not C):By default, non-global zones will be configured with a shared IP functionality. What this
means is that IP layer configuration and state is shared between the zone you're creating and the
global zone. This usually implies both zones being on the same IP subnet for each given NIC.
Note: A zone is a virtual operating system abstraction that provides a protected environment in
which applications run. The applications are protected from each other to provide software fault
isolation. To ease the labor of managing multiple applications and their environments, they coexist within one operating system instance, and are usually managed as one entity.

"Pass Any Exam. Any Time." - www.TwPass.com

30

Oracle 1z0-821 Exam


The original operating environment, before any zones are created, is also called the "global zone"
to distinguish it from non-global zones, The global zone is the operating system instance.
Incorrect answer:
E: Exclusive-IP zones can use IPMP. IPMP is configured the same way in an exclusive-IP zone as it
is on a system not using zones.
For shared-IP zones, IPMP can be configured in the global zone.
F: Full IP-level functionality is available in an exclusive-IP zone. An
exclusive-IP zone has its own IP-related state.
An exclusive-IP zone is assigned its own set of data-links using the zonecfg command. The zone
is given a data-link name such as xge0, e1000g1, or bge32001, using the physical property of the
net resource. The address property of the net resource is not set.
Note that the assigned data-link enables the snoop command to be used.
The dladm command can be used with the show-linkprop subcommand to show the assignment of
data-links to running exclusive-IP zones.
Reference: Zones and Containers FAQ
Reference: Solaris 10 Zones and Networking -- Common Considerations

QUESTION NO: 38
To assist in examining and debugging running processes, Solaris 11 has a utility that returns pro
arguments and the names and values of environment variables. What is the name of this utility?

A. ppgsz B. pargs
C. pmap D. pgrep
Answer: B
Explanation: The pargs utility examines a target process or process core
file and prints arguments, environment variables and values, or
the process auxiliary vector.
Reference: man pargs

"Pass Any Exam. Any Time." - www.TwPass.com

31

Oracle 1z0-821 Exam


QUESTION NO: 39
Identify the correct description of an IPS image.

A. an ISO image of the Solaris media DVD


B. an IPS repository
C. a depot location or source where Solaris packages can be installed from
D. a location where packages can be installed, for example, your Solaris instance
Answer: D
Explanation: An image is a location where packages can be installed.
An image can be one of three types:
* Full images are capable of providing a complete system.
* Partial images are linked to a full image (the parent image), but do not provide a complete
system on their own.
* User images contain only relocatable packages.
Reference: Images and Boot Environments, Oracle Solaris 11 Express 11/10

QUESTION NO: 40
You need to know the IP address configured on interface net3, and that the interface is up. Which
command confirms these?

A. ipadm show-if B.
ipadm up-addr
C. ipadm show-addr
D. ipadm enable-if
E. ipadm refresh-addr
F. ipadm show-addrprop
Answer: C
Explanation: Show address information, either for the given addrobj or all the address objects
configured on the specified interface, including the address objects that are only in the persistent
configuration.
State can be:disabled, down, duplicate, inaccessible, ok, tentative

"Pass Any Exam. Any Time." - www.TwPass.com

32

Oracle 1z0-821 Exam


Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
Reference: man ipadm

QUESTION NO: 41
You start to execute a program by using the following command:
~/bigscript &
You then determine that the process is not behaving as expected, and decide that you need to
terminate the process. Based on the information shown below, what is the process number you
should terminate?

A. 15163 B.
15156 C. 15166
D. 15165
Answer: A
Explanation: From the output exhibit we can deduce that the shell has id 15156.
It has spawned three subprocesses:
grep: id 15166 ps -aef
15165
The remaining 15163 must be the subshell (see note below).
This is the id of the process which should be terminated.
Reference: man ps
Note: The command ~/bigscript &
"Pass Any Exam. Any Time." - www.TwPass.com
33

Oracle 1z0-821 Exam


starts ~/bigscript in a separate subshell.

echo $ displays the exit status of a command.

QUESTION NO: 42
You have installed the SMF notification framework to monitor services. Which command is used to
set up the notifications for a particular service?

A. svccfg
B. svcadm C.
setnotify
D. smtp-notify
Answer: A
Explanation: How to Set Up Email Notification of SMF Transition Events
This procedure causes the system to generate an email notification each time one of the services
or a selected service has a change in state. You can choose to use either SMTP or SNMP.
Normally, you would only select SNMP if you already have SNMP configured for some other
reason.
By default, SNMP traps are sent on maintenance transitions. If you use SNMP for monitoring, you
can configure additional traps for other state transitions.
Example 1:
The following command creates a notification that sends email when transactions go into
the maintenance state.
# /usr/sbin/svccfg setnotify -g maintenancemailto:sysadmins@example.com
Example 2:
The following command creates a notification that sends email when the switch service goes into
the online state.
# /usr/sbin/svccfg -s svc:/system/name-service/switch:default setnotify to-online \
mailto:sysadmins@example.com
Note: The svccfg command manipulates data in the service configuration repository. svccfg can be
invoked interactively, with an individual subcommand, or by specifying a command file that

"Pass Any Exam. Any Time." - www.TwPass.com

34

Oracle 1z0-821 Exam


contains a series of subcommands.
Changes made to an existing service in the repository typically do not take effect for that service
until the next time the service instance is refreshed.
Reference: Oracle Solaris Administration: Commons Tasks
How to Set Up Email Notification of SMF Transition Events

QUESTION NO: 43
User jack logs in to host Solaris and executes the following command sequence:

Which three statements are correct?

A. User jack can edit testfile because he has read and write permissions at the group level.
B. User jack can use cat to output the contents of testfile because he has read permission as the
file owner.
C. User jill can change the permissions of testfile because she has write permission for the file at
the group level.
D. User jill can edit testfile because she has read and write permission at the group level.
E. User jack can change permissions for testfile because he is the owner of the file.
F. User jack can change permissions for testfile because he has execute permission for the file.
Answer: D,E,F
Explanation:

QUESTION NO: 44
The OpenBoot firmware controls the operation of the system before the operating system is
loaded. Which four tasks are directly controlled by the OpenBoot firmware?

A. provides a list of boot entries from which to choose


"Pass Any Exam. Any Time." - www.TwPass.com

35

Oracle 1z0-821 Exam


B. allows hardware to identify itself and load its own plug-in device driver
C. loads the boot loader from the configured boot device
D. performs basic hardware testing
E. Installs the console
F. reads and executes the boot archive
G. extract and executes the kernel image
Answer: A,B,C,D
Explanation: OpenBoot firmware is executed immediately after you turn on your system. The
primary tasks of OpenBoot firmware are to:
* Test and initialize the system hardware (D)
* Determine the hardware configuration (D)
*Boot the operating system from either a mass storage device or from a network
*Provide interactive debugging facilities for testing hardware and software
Some notable features of OpenBoot firmware.
* Plug-in Device Drivers (B)
Most common tasks that you perform using OpenBoot
* Booting Your System
The most important function of OpenBoot firmware is to boot the system.
Note: If auto-boot? is true, the system will boot from either the default boot device
or from the diagnostic boot device depending on whether OpenBoot is in
diagnostic mode. (C)

Reference: OpenBoot 4.x Command Reference Manual

QUESTION NO: 45
Which two options are accurate regarding the non-global zone console?

A. Access the non-global zone console by using the zlogin -c command. B.


Access the non-global zone console by using the zlogin -1 command. C.
Disconnect from the non-global zone console by using the ~. keys. D.
Disconnect from the non-global zone console by using the #. keys.
Answer: A,C
Explanation: A: How to Log In to the Zone Console
Use the zlogin command with the -C option and the name of the zone, for example, my-zone.
"Pass Any Exam. Any Time." - www.TwPass.com

36

Oracle 1z0-821 Exam


global# zlogin -C my-zone
C: To disconnect from a non-global zone, use one of the following methods.
* To exit the zone non-virtual console:
zonename# exit
* To disconnect from a zone virtual console, use the tilde (~) character and a period:
zonename# ~.
Reference: System Administration Guide: Oracle Solaris Containers-Resource Management and
Oracle Solaris Zones

QUESTION NO: 46
The default publisher on your system is:

You want to update the Oracle Solaris 11 environment on your system, but you are not able to
connect this system to the Internet to access the default Oracle repository. A repository has been
created on your local network and is named http://server1.example.com.
Which command would you choose to connect your system to the local repository?

A. pkg publisher to specify the new publisher


B. pkg set-publisher to set the stickiness on the http://server1.example.com publisher and unset
stickiness for http://pkg.oracle.com/solaris/release
C. pkg add-publisher to add the new publisher
D. pkg set-publisher to set the origin for the publisher
Answer: D
Explanation: Solaris 11 Express makes it pretty easy to set up a local copy of the repository.
A common reason folks need access to a local repository is because their system is not connected
to the Internet.

Tthe pkg set-publisher command can be used to for example add a publisher or to enable or
disable a publisher.

"Pass Any Exam. Any Time." - www.TwPass.com

37

Oracle 1z0-821 Exam


Note: Example Adding a Publisher
Use the -g option to specify the publisher origin URI.
# pkg set-publisher -g http://pkg.example.com/release example.com
Example Specifying the Preferred Publisher
Use the -P option to specify a publisher as the preferred publisher. The specified publisher moves
to the top of the search order. You can specify the -P option when you add a publisher or you can
modify an existing publisher.
# pkg set-publisher -P example.com
Example Enabling or Disabling a Publisher
Use the -d option to disable a publisher. The preferred publisher cannot be disabled. A disabled
publisher is not used in package operations such as list and install. You can modify the properties
of a disabled publishers.
Use the -e option to enable a publisher.
# pkg set-publisher -d example2.com
Reference: Managing Package Publishers

QUESTION NO: 47
Your server has a ZFS storage pool that is configured as follows:

The following partition scheme is used for every disk drive in pool1:

"Pass Any Exam. Any Time." - www.TwPass.com

38

Oracle 1z0-821 Exam

Which two are true regarding the ZFS storage pool?

A. The data on c3t3d0 is duplicated on c3t4do.


B. The data is striped across disks c3t3d0 and c3t4do and mirrored across vdevs mirror-0 and
mirror-1.
C. The storage pool is 146 GB total size (rounded to the nearest GB). D.
The storage pool is 584 G8 total size (rounded to the nearest GB). E. The
storage pool is 292 GB total size (rounded to the nearest GB).
Answer: B,E
Explanation: If the data is striped across c3t3d0 and c3t4d0, and each disk is 146GB, then the
pool is 192GB.

QUESTION NO: 48
You enter dladm show-phys, which provides the following output:

You then enter:


ipadm create-ip net3
What is the output?

A. ipadm: cannot; create interface net3: Operation failed.


B. ipadm: cannot create interface net3: Interface already exists.
C. ipadm: cannot create interface net3: IP address object not specified.
D. No_response, The command was successful.

"Pass Any Exam. Any Time." - www.TwPass.com

39

Oracle 1z0-821 Exam


Answer: B
Explanation: According to the exhibit the interface already exists.
The command ipadm create-ip net3
is supposed to create a new interface net3.

QUESTION NO: 49
Choose three options that describe the features associated with a Live Media installation.

A. does not allow the root user to log in to the system directly from the console (or any terminal)
B. provides a "hands free" installation
C. installs the desktop based packages
D. can be used to install only x86 platforms
E. installs the server-based set of packages only
F. allows both automatic and manual configuration of the network
G. installs both the server-based and desktop-based package
Answer: B,C,D
Explanation: The graphical installer is officially known as the "Live Media." This means that
Oracle Solaris can be booted into RAM, causing zero impact on your existing operating system.
After it isloaded, you are free to experiment with Oracle Solaris to determine whether it is
something you would like to install to your system.
You can download Oracle Solaris 11 Live Media for x86, which is an approximately 800 MB image
file, and use a DVD burner to create the disk, or you can use the ISO image directly in a virtual
machine or through the Oracle Integrated Lights Out Manager (ILOM) Remote Console.
The Live Media is not intended for long-term use. For example, any changes that you make to the
system are lost when the system is shut down. Therefore, the next logical step is to install Oracle
Solaris on the system, which the Live Media makes easy by placing an Install Oracle Solaris icon
right on the desktop. But before we head down that road, let's step back a bit and consider the
installation options.

Note: The Live Media provides administrators with an opportunity to explore the Oracle Solaris 11
environment without installing it on a system. The system boots off the media directly allowing
administrators to start the installer should they choose to install it to a system.
Reference: Taking Your First Steps with Oracle Solaris 11

"Pass Any Exam. Any Time." - www.TwPass.com

40

Oracle 1z0-821 Exam

QUESTION NO: 50
In a fresh installation of Oracle Solaris 11, default datalinks are named with a genetic naming
convention, and they increment as you add interfaces. What is the default name?
A. eth# B. net#
C. el000g#
D. lo#
E. nic#
Answer: B
Explanation: When you install this Oracle Solaris release on a system for the first time, Oracle
Solaris automatically provides generic link names for all the system's physical network devices.
This name assignment uses the net# naming convention, where the # is the instance number. This
instance number increments for each device, for example, net0, net1, net2, and so on.
Note:
Network configuration in Oracle Solaris 11 includes
* Generic datalink name assignment - Generic names are automatically assigned to
datalinks using the net0, net1, netN naming convention, depending on the total number of
network devices that are on the system

Reference: Oracle Solaris 11 Information Library, Default Generic Link Names


Reference: Transitioning From Oracle Solaris 10 to Oracle Solaris 11, Network Configuration
Features

QUESTION NO: 51
You are planning group names for a new system. You decide to use a numbering convention that
includes the year and month the project began, to form the group number and name for work
associated with that project.
So, for example, a project targeted to begin in January, 2013 would have the number (name):
201301(Pr20l301)

"Pass Any Exam. Any Time." - www.TwPass.com

41

Oracle 1z0-821 Exam


What are the two problems with your plan?

A. Group names may not contain a numeric character B.


Group names may be no longer than 7 characters. C.
Group numbers should not be larger than 60000. D. Group
names should be all lowercase.
Answer: C,D
Explanation: C: The Group ID (GID) field contains the group's numerical ID. GIDs can be
assigned whole numbers between 100 and 60000.
D: Group names contain only lowercase characters and numbers.
Reference: Setting Up Fields in the Group Database

QUESTION NO: 52
The following line is from /etc/shadow in a default Solaris 11 Installation:
jack: $5$9JFrt54$7JdwmO.F11Zt/ jFeeOhDmnw93LG7Gwd3Nd/cwCcNWFFg:0:15:30:3:::
Which two are true?

A. Passwords for account jack must be a minimum of 15 characters long. B.


The password for account jack has expired.
C. The password for account jack has 5 characters.
D. A history of 3 prior passwords for the account jack is kept to inhibit password reuse. E.
The minimum lifetime for a password for account jack is 15 days.
Answer: B,E
Explanation: From the content of the /etc/shadow file we get:
* username: jack
* encrypted password: $5$9JFrt54$7JdwmO.F11Zt/ jFeeOhDmnw93LG7Gwd3Nd/cwCcNWFFg
* Last password change (lastchanged): Days since Jan 1, 1970 that password was last changed: 0 *
Minimum: The minimum number of days required between password changes i.e. the number of
days left before the user is allowed to change his/her password: 15
Maximum: The maximum number of days the password is valid (after that user is forced to change
his/her password): 30
Warn : The number of days before password is to expire that user is warned that his/her password
must be changed: 3
"Pass Any Exam. Any Time." - www.TwPass.com

42

Oracle 1z0-821 Exam


*Inactive : The number of days after password expires that account is disabled
* Expire : days since Jan 1, 1970 that account is disabled i.e. an absolute date specifying when
the login may no longer be used

QUESTION NO: 53
You are asked to determine user jack's default login directory. Which command would provide you
with useful information?

A. cat /etc/passwd | grep jack


B. cat /etc/group | grep jack
C. cat /etc/shadow | grep jack
D. cat /etc/default/passwd | grep jack
Answer: A
Explanation: The /etc/passwd contains one entry per line for each user (or user account) of the
system. All fields are separated by a colon (:) symbol. Total seven fields as follows.

Reference: Understanding fields in /etc/passwd

QUESTION NO: 54
You need to install the solaris-desktop group package. Which command would you use to list the
set of packages included in that software group?

A. pkg search
B. pkg info C. pkg
list D. pkginfo
E. pkg contents
Answer: A
Explanation: Use the pkg search command to search for packages whose data matches the
specified pattern.
Like the pkg contents command, the pkg search command examines the contents of packages.
While the pkg contents command returns the contents, the pkg search command returns the
names of packages that match the query.
"Pass Any Exam. Any Time." - www.TwPass.com

43

Oracle 1z0-821 Exam


Reference: Oracle Solaris 11 Information Library, Searching for Packages

QUESTION NO: 55
Which files must be edited in order to set up logging of all failed login attempts?

A. /etc/default/login, /var/adm/loginlog, /etc/syslog.conf B.


/etc/default/login, /var/adm/authlog, /etc/syslog.conf C.
/var/adm/loginlog, /var/adm/authlog, /etc/syslog.conf D.
/etc/default/login, /var/adm/authlog, /var/adm/loginlog
Answer: B
Explanation: This procedure captures in a syslog file all failed login attempts.
1.Set up the /etc/default/login file with the desired values
for SYSLOG and SYSLOG_FAILED_LOGINS
Edit the /etc/default/login file to change the entry. Make sure that SYSLOG=YES is uncommented.
2. Create a file with the correct permissions to hold the logging information.Create the authlog file
in the /var/adm directory.
3. Edit the syslog.conf file to log failed password attempts.
Send the failures to the authlog file.
Reference: Oracle Solaris 11 Information Library, How to Monitor All Failed Login Attempts

QUESTION NO: 56
Which command would you use from the bash shell to determine the total amount of physical
memory installed in your Solaris system (x86 and SPARC)?

A. uname -a
B. prtconf | grep -i memory C.
sysdef | grep -i memory
D. vmstat
E. prtdiag | grep -i memory
Answer: B

"Pass Any Exam. Any Time." - www.TwPass.com

44

Oracle 1z0-821 Exam


Explanation: The prtconf command prints the system configuration information. The output includes the total amount of memory, and the
configuration of system peripherals formatted as a dev- ice tree.
If a device path is specified on the command line for those
command options that can take a device path, prtconf will only
display information for that device node.
Reference: man prtconf

QUESTION NO: 57
Which two options are characteristics of a fast reboot?

A. A fast reboot bypasses grub.


B. A fast reboot cannot be used after a system panic on the x86 platform.
C. A fast reboot can only be executed on the SPARC platform when the config/fastreboot_default
property for the svc:/system/boot-config:default service is set to true.
D. A fast reboot uses an in-kernel boot loader to load the kernel into memory. E.
A fast reboot is the default on all platforms.
Answer: C,D
Explanation: C: To change the default behavior of the Fast Reboot feature on the SPARC
platform, so that a fast reboot is automatically performed when the system reboots, see below.
The following example shows how to set the property's value to true on the SPARC platform, so
that a fast reboot is initiated by default:
# svccfg -s "system/boot-config:default" setprop config/fastreboot_default=true
# svcadm refresh svc:/system/boot-config:default
D: Fast Reboot implements an in-kernel boot loader that loads the kernel into memory and then
switches to that kernel.
The firmware and boot loader processes are bypassed, which enables the system to reboot within
seconds.
The Fast Reboot feature is managed by SMF and implemented through a boot configuration
service, svc:/system/boot-config. The boot-config service provides a means for setting or changing

"Pass Any Exam. Any Time." - www.TwPass.com

45

Oracle 1z0-821 Exam


the default boot configuration parameters. When the config/fastreboot_default property is set to
true, the system performs a fast reboot automatically, without the need to use the reboot -f
command. This property's value is set to true on the x86 platform. For task-related information,
including how to change the default behavior of Fast Reboot on the SPARC platform, see
Accelerating the Reboot Process on an x86 Based System.
Note: One new feature, called Fast Reboot, will allow the system to boot up without doing the
routine set of hardware checks, a move that can make system boot times up to two-and-a-half
times faster, Oracle claimed. This feature can be handy in that an administrator applying a patch
or software update across thousands of Solaris deployments can reboot them all the more quickly.
Reference: System Administration Guide: Basic Administration, Oracle Solaris 11, Using Fast
Reboot

QUESTION NO: 58
You are installing the Solaris 11 OE by using the Interactive Text Installer. You have selected the
option to automatically configure the primary network controller. Which three items will
automatically be configured as a result of this selection?

A. The IP address.
B. The name service. C. The
time zone.
D. A default user account. E. The
terminal type. F. The root
password. G. The host name.
Answer: A,B,C
Explanation: IP address and name service (such as a DNS server) are provided by the DHCP
server.

QUESTION NO: 59
Which two SMF milestones can be specified at boot time?

"Pass Any Exam. Any Time." - www.TwPass.com

46

Oracle 1z0-821 Exam


A. none
B. network
C. all
D. config
E. unconfig
F. devices
Answer: A,C
Explanation: The milestones that can be specified at boot time are
none
single-user
multi-user
multi-user-server
all

QUESTION NO: 60
Your system is assigned an IP address object 192.168.0.222/24. However, the net
maskexpressed as four octetsis required. Which is the correct netmask?
A. 255.0.0.0
B. 255.255.0.0
C. 255.255.255.0
D. 255.255.255.24
E. 255.255.255.255
Answer: C
Explanation: A 24-bit network mask is expressed as 255.255.255.0.
Reference:http://www.subnet-calculator.com/

QUESTION NO: 61
View the following information for a software package:

"Pass Any Exam. Any Time." - www.TwPass.com

47

Oracle 1z0-821 Exam

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

A. pkg list gzip


B. pkg info -r gzip
C. pkg search -1 gzip
D. pkg verify -v gzip E. pkg
contents gzip
Answer: B
Explanation: 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
Version: 5.2.17
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.

"Pass Any Exam. Any Time." - www.TwPass.com

48

Oracle 1z0-821 Exam


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.
Reference: man pkg

QUESTION NO: 62
user1 has a disk quota of 0.5 MB. The user attempts to run the following command on a file called
.bigfile that is 495 KB in size:
cp bigfile /tmp
Will the command execute successfully?

A. Yes. Quotas do not include any of the system files such as /tmp /swap. B.
Yes. The quota is set at the directory level, not the user level.
C. No. The command will fail because it will cause him to exceed his user quota. D.
No. A user cannot place files into the /tmp directory.
Answer: A
Explanation: UFS quotas enable system administrators to control the size of file systems. Quotas
limit the amount of disk space and the number of inodes, which roughly corresponds to the
number of files, that individual users can acquire. For this reason, quotas are especially useful on
the file systems where user home directories reside. As a rule, the public and /tmp file systems
usually do not benefit significantly by establishing quotas.
Note: The cp command copies files and directories.
Reference: System Administration Guide: Advanced Administration, Managing UFS Quotas

QUESTION NO: 63
Review the storage pool information:
"Pass Any Exam. Any Time." - www.TwPass.com

49

Oracle 1z0-821 Exam

Choose the correct procedure to repair this storage pool.

A. Shut the system down, replace disk c3t3d0, and boot the system. When the system is booted,
execute the zpool clear pool1 command.
B. Shut the system down, replace disk c3t3d0, and boot the system. When the system is booted
execute the zpool online pool1 command.
C. Shut the system down, replace disk c3t3d0, and boot the system. When the system is booted,
execute the zpool replace pool1 c3t3d0 command.
D. Shut the system down, replace disk c3t3d0, and boot the system. When the system is booted,
execute the zpool replace pool1 c3t3d0 c3t3d0 command.
Answer: C
Explanation: You might need to replace a disk in the root pool for the following reasons:
The root pool is too small and you want to replace it with a larger disk
The root pool disk is failing. In a non-redundant pool, if the disk is failing so that the system won't
boot, you'll need to boot from an alternate media, such as a CD or the network, before you replace
the root pool disk.
In a mirrored root pool configuration, you might be able to attempt a disk replacement without
having to boot from alternate media. You can replace a failed disk by using the zpool replace
command.
Some hardware requires that you offline and unconfigure a disk before attempting the zpool
replace operation to replace a failed disk.
For example:
# zpool offline rpool c1t0d0s0
# cfgadm -c unconfigure c1::dsk/c1t0d0
<Physically remove failed disk c1t0d0>
<Physically insert replacement disk c1t0d0>
# cfgadm -c configure c1::dsk/c1t0d0
# zpool replace rpool c1t0d0s0
# zpool online rpool c1t0d0s0
"Pass Any Exam. Any Time." - www.TwPass.com

50

Oracle 1z0-821 Exam


# zpool status rpool
<Let disk resilver before installing the boot blocks>
SPARC# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t0d0s0
x86# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t9d0s0
Reference: Solaris ZFS Administration Guide, How to Replace a Disk in the ZFS Root Pool

QUESTION NO: 64
You are currently working in both your home directory and the system directory /tmp. You are
switch back and forth with full path names. Which pair of cd commands will provide you with a
shortcut to switch between these two locations?

A. cd ~ and cd - B. cd
and cd . C. cd ~ and cd
D. cd * and cd . .
Answer: A
Explanation: In the Bourne Again, C, Korn, TC, and Z shells, the tilde (~) is used as a shortcut for
specifying your home directory.
cd It's the command-line equivalent of the back button (takes you to the previous directory you were
in).

Note:
To make certain that you are in your home directory, type the cd (change directory) command.
This command moves you to your home (default) directory.
Reference: Changing the Working Directory (cd)

QUESTION NO: 65
A user jack, using a bash shell, requests a directory listing as follows:

"Pass Any Exam. Any Time." - www.TwPass.com

51

Oracle 1z0-821 Exam


jack@solaris: ~ $ 1s
dira dirb dirc diraa dirabc
Which three statements are correct?

A. The pattern dir? will expand to dira dirb dirc. B.


The pattern dir*a will expand to diraa.
C. The pattern dir*a will expand to dira diraa. D.
The pattern dir*b? will expand to dirabc.
E. The pattern dir*b? will expand to dirb dirabc.
Answer: A,C,D
Explanation: A: dir followed by a single letter.
C: dir followed by any characters ending with a.
D: dir followed by any characters, then character b, then one single character.
only dirabc matches

QUESTION NO: 66
Which two are true about accounts, groups, and roles in the Solaris user database?

A. All Solaris user accounts must have a unique UID number.


B. A Solaris account name may be any alphanumeric string, and can have a maximum length of 8
characters.
C. Account UID numbers 0-09 are system-reserved.
D. The GID for an account determines the default group ownership of new files created by that
account.
E. The groups that an account is a member of are determined by the entries in the /etc/group file.
Answer: A,B
Explanation: A: Solaris uses a UID (User ID) to identify each user account. The UID is a unique
number assigned to each user. It is usually assigned by the operating system when the account is
created.
B: In Solaris the account name can include any alphanumeric string (and . _ -). The maximum
length is 8 characters.
Reference: How to Modify a UID in Solaris

"Pass Any Exam. Any Time." - www.TwPass.com

52

Oracle 1z0-821 Exam


QUESTION NO: 67
Consider the following commands:

What is displayed when this sequence of commands is executed using the bash shell?

A. Hello, world
B. cat: cannot open file1
C. cat: cannot open file1Hello, world D. cat:
cannot open file1 Hello, World
E. bash: syntax error near unexpected token '&&'
Answer: B
Explanation: First line (rm file1) deletes/removes file1.
Second line captures the text into file2.
The first part of line 3 (cat file1) fails as the file1 does not exist.
The && (AND) operator will ensure that the third line fails. The result of line 3 will be the result of
first part of line 3 (cat file1).

Note: cat - concatenate files and print on the standard output


Note #1: A list is a sequence of one or more pipelines separated by one of the operators ';', '&',
'&&', or '||', and optionally terminated by one of ';', '&', or a newline.
Of these list operators, '&&' and '||' have equal precedence, followed by ';' and '&', which have
equal precedence.
AND and OR lists are sequences of one or more pipelines separated by the control operators '&&'
and '||', respectively. AND and OR lists are executed with left associativity.
An AND list has the form
command1 && command2
command2 is executed if, and only if, command1 returns an exit status of zero.

"Pass Any Exam. Any Time." - www.TwPass.com

53

Oracle 1z0-821 Exam


An OR list has the form
command1 || command2
command2 is executed if, and only if, command1 returns a non-zero exit status.
The return status of AND and OR lists is the exit status of the last command executed in the list.
Note #2 (on exit status): Zero means command executed successfully, if exit status returns nonzero value then your command failed to execute.
Reference: Bash Reference Manual, Lists of Commands

QUESTION NO: 68
To confirm the IP addresses and netmasks have been correctly configured on the network
interfaces, which command(s) should you use?

A. ipadm show-if
B. ipadm show-nic
C. ipadm show-addr
D. ipadm show-addripadm show-mask
E. ipadm show-ipipadm show-mask
F. ipadm show-config
Answer: C
Explanation: Show address information, either for the given addrobj or all the address objects
configured on the specified interface, including the address objects that are only in the persistent
configuration.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128

Reference: man ipadm

"Pass Any Exam. Any Time." - www.TwPass.com

54

Oracle 1z0-821 Exam

QUESTION NO: 69
Subnets are created by using________.

A. subnet
B. netmask
C. unicast
D. broadcast
Answer: B
Explanation: The process of subnetting involves the separation of the network and subnet portion
of an address from the host identifier. This is performed by a bitwise AND operation between the
IP address and the (sub)network prefix. The result yields the network address or prefix, and the
remainder is the host identifier.
The routing prefix of an address is written in a form identical to that of the address itself. This is
called the network mask, or netmask, of the address. For example, a specification of the mostsignificant 18 bits of an IPv4 address, 11111111.11111111.11000000.00000000, is written as
255.255.192.0.
Reference: Subnetwork

QUESTION NO: 70
Which three options accurately describe Oracle Solaris 11 zones?

A. can be NFS servers


B. are whole root type only
C. cannot have their own time zone setting
D. can execute zs and zpool commands (from a non-global zone)
E. are virtualized operating system environments, each with its own dedicated OS and kernel
F. are virtualized operating system environments, created with a single instance of the OS shared
kernel
Answer: A,C,F
Explanation: A: Zones can use Oracle Solaris 11 products and features such as the following:
Oracle Solaris ZFS encryption
Network virtualization and QoS
"Pass Any Exam. Any Time." - www.TwPass.com

55

Oracle 1z0-821 Exam


CIFS and NFS
C: Non-global zones cannot modify the system clock by default, but each zone can have a
separate time zone setting.
F (not E): The Oracle Solaris Zones partitioning technology is used to virtualize operating system
services and provide an isolated and secure environment for running applications. A zone is a
virtualized operating system environment created within a single instance of the Oracle Solaris
operating system.

QUESTION NO: 71
View the Exhibit and review the disk configuration.

The following command is executed on the disk:


zpool create pool1 c3t3d0s0
What is the result of executing this command?

A. A zpool create error is generated.


B. A 1-GB ZFS file system named /pool1 is created. C.
A 15.97-GB storage pool named pool1 is created. D.
The disk will contain an EFI disk label.
"Pass Any Exam. Any Time." - www.TwPass.com

56

Oracle 1z0-821 Exam


Answer: B
Explanation: The s0 part of c3t3d0 is 1 GB in size according to the exhibit.

QUESTION NO: 72
You log in to the system as user1, then switch user to root by using the su - command. After
entering the correct password, yon enter the following commands:
whoami;who am i;id
Which option correctly represents the output?
A. uid-0(root) gid=0(root)
user1 console Dec 30 20:20
root
B. root
user1 console Dec 30 20:20
uid=0(root) gid=0(root)
C. user1 console Dec 30 20:20
root
uid=0(root) gid=0(root)
D. uid=0(root) gid=0(root)
root
user1 console Dec 30 20:20
Answer: B
Explanation: *The whoami utility displays your effective user ID as a name.
Here this would be root.
* who am i
The command who shows who is logged on.
Here this would be:
user1 console Dec 30 20:20
* The id utility displays the user and group names and numeric IDs, of the
calling process, to the standard output. If the real and effective IDs
are different, both are displayed, otherwise only the real ID is displayed.
Here this would be:
uid=0(root) gid=0(root)

"Pass Any Exam. Any Time." - www.TwPass.com

57

Oracle 1z0-821 Exam


Note:
Each UNIX proces has 3 UIDs associated to it. Superuser privilege is UID=0.Real UID--------This
is the UID of the user/process that created THIS process. It can be changed only if the running
process has EUID=0.Effective UID-------------This UID is used to evaluate privileges of the process
to perform a particular action. EUID can be change either to RUID, or SUID if EUID!=0. If EUID=0,
it can be changed to anything.Saved UID---------If the binary image file, that was launched has a
Set-UID bit on, SUID will be the UID of the owner of the file. Otherwise, SUID will be the RUID.
'

QUESTION NO: 73
Your server has a ZFS storage pool that is configured as follows:

The server has two spare 146-GB disk drives: c3t5d0 c3t6d0
You need to add more space to the pool1 storage pool. Which command would add more mirrored
storage to the pool1 storage pool?

A. zpool add pool1 mirror c3t5d0 c3t6d0


B. zpool attach pool1 mirror c3t5d0 c3t6d0
C. zpool attach pool1 c3r3d0 c3r5d0; zpool attach pool1 c3r4d0 c3r6d0
D. zpool add pool1 c3r3d0 c3r5d0; zpool add pool1 c3r4d0 c3r6d0
Answer: B
Explanation: zpool attach [-f] pool device new_device
Attaches new_device to an existing zpool device. The existing device cannot be part of a raidz
configuration. If device is not currently part of a mirrored configuration, device automatically
transforms into a two-way mirror of device and new_device. If device is part of a two-way mirror,
attaching new_device creates a three-way mirror, and so on. In either case, new_device begins to
resilver immediately.

"Pass Any Exam. Any Time." - www.TwPass.com

58

Oracle 1z0-821 Exam


Reference: man zpool

QUESTION NO: 74
You attempted to reboot a system via the init command, however the system did not perform boot
sequence into the Oracle Solaris Operating Environment. You are presented with a prompt from
the OpenBoot PROM. Which command would you enter, to boot the system from the default
device?

A. boot -net install


B. boot
C. boot -default
D. boot -s0
Answer: B
Explanation: boot
With this form, boot loads and executes the program specified by the default boot
arguments from the default boot device
Note: boot has the following general format:
boot [device-specifier] [arguments]
where device-specifier and arguments are optional.
Reference: OpenBoot 4.x Command Reference Manual

QUESTION NO: 75
You have a ZFS file system named /dbase/oral and you want to guarantee that 10 GB of storage
space is available to that dataset for all data, snapshots, and clones.
Which option would you choose?

A. zfs set refreservation=10g dbase/oral


B. zfs set quota=10g dbase/oral
C. zfs set refquota=10g dbase/oral
D. zfs set reservation=10g dbase/oral

"Pass Any Exam. Any Time." - www.TwPass.com

59

Oracle 1z0-821 Exam


Answer: D
Explanation: A ZFS reservation is an allocation of disk space from the pool that is guaranteed to
be available to a dataset. As such, you cannot reserve disk space for a dataset if that space is not
currently available in the pool. The total amount of all outstanding, unconsumed reservations
cannot exceed the amount of unused disk space in the pool. ZFS reservations can be set and
displayed by using the zfs set and zfs get commands. For example:
# zfs set reservation=5G tank/home/bill
# zfs get reservation tank/home/bill
NAME PROPERTY VALUE SOURCE
tank/home/bill reservation 5G local

Reference:Oracle Solaris ZFS Administration Guide Setting , Reservations on ZFS File Systems

QUESTION NO: 76
View the Exhibit.

Which is true regarding the disk drive?

A. This disk configuration could be used as a ZFS root disk. B.


This disk contains an SMI disk label.
C. Slice 7 represents the entire disk and cannot be used as a slice for a file system
D. The disk contains an EFI disk label.
Answer: A
Explanation: Installing a ZFS Root Pool
The installer searches for a disk based on a recommended size of approximately 13 GB.

"Pass Any Exam. Any Time." - www.TwPass.com

60

Oracle 1z0-821 Exam


Reference: Oracle Solaris ZFS Administration Guide, Managing Your ZFS Root Pool

QUESTION NO: 77
User jack logs in to host solaris and then attempts to log in to host oracle using ssh. He receives
the following error message:
The authenticity of host oracle (192.168.1.22) can't be established. RSA key fingerprint is
3B:23:a5:6d:ad:a5:76:83:9c:c3:c4:55:a5:18:98:a6
Are you sure you want to continue connecting (yes/no)?

Which two are true?

A. The public host key supplied by solaria is not known to the host oracle.
B. The error would not occur if the RSA key fingerprint shown in the error message was added to
the /etc/ssh/known_hosts file on solaris.
C. The private host key supplied by oracle is not known to solaris.
D. If jack answers yes, the RSA public key for the host oracle will be added to the known_hosts file
for the user jack.
E. The public host key supplied by oracle is not known to the host solaris.
Answer: B,D
Explanation: The fingerprints are used to guard against man in the middle attacks. Since ssh
logins usually work over the internet (an insecure connection), someone could hijack your
connection. When you try to log into yourmachine.com, he could get "in the middle" and return
your challenge as if he was yourmachine.com. That way, he could get hold of your login password.
To make this attack harder, ssh stores the fingerprint of the server's public key on the first
connection attempt. You will see a prompt like:
The authenticity of host 'eisen (137.43.366.64)' can't be established.
RSA key fingerprint is cf:55:30:31:7f:f0:c4:a0:9a:02:1d:1c:41:cf:63:cf.
Are you sure you want to continue connecting (yes/no)
When you enter yes, ssh will add the fingerprint to your known_hosts file. you will see
Code:
Warning: Permanently added 'eisen,137.43.366.64' (RSA) to the list of known hosts.

"Pass Any Exam. Any Time." - www.TwPass.com

61

Oracle 1z0-821 Exam


The next time you login, ssh will check whether the host key has changed. A changing host key
usually indicates a man in the middle attack, and ssh refuses to connect.

QUESTION NO: 78
To help with your troubleshooting, you need to determine the version of the OBP. Which two
commands will provide you with this information?

A. printenv B.
banner C. .version
D. set-env
E. show-devs
F. value version
Answer: B,C
Explanation: B: banner
Displays power-on banner.
The PROM displays the system banner. The following example shows a
SPARCstation 2 banner. The banner for your SPARC system may be different.
SPARCstation 2, Type 4 Keyboard
ROM Rev. 2.0, 16MB memory installed, Serial # 289
Ethernet address 8:0:20:d:e2:7b, Host ID: 55000121
C: .version
Displays version and date of the boot PROM.
Note: OBP-OpenBootProm is a firmware which is placed on the sun
machine's prom chip.
It is a os independent user interface to deal with the sun machine's hardware components.
The user interface provides one or more commands to display system information.

Reference: OpenBoot 4.x Command Reference Manual

QUESTION NO: 79
"Pass Any Exam. Any Time." - www.TwPass.com

62

Oracle 1z0-821 Exam


Examine the following command sequence:

Which three are true?

A. User jill, a member of the group other, can do a long listing (is -1) of user jack's home directory. B.
User oracle, not a member of the group other, cannot execute the shell script. C. User jill, a member
of the group other, can make a copy of testfile in dira. D. User jill, a member of the group other, can
edit the data content of testfile. E. User jill, a member of the group other, cannot delete testfile.
F. User oracle, not a member of the group other, can do a short listing (1s) of dirb.
Answer: C,D,E
Explanation:

QUESTION NO: 80
The /usr/bin/p7zip file that is part of the p7zip package has been overwritten. This server is critical
to production and cannot be rebooted. Identify the command that would restore the file without
requiring a reboot.

A. pkg verify p7zip


B. pkg fix p7sip
C. pkg rebuild-index p7zip
D. pkg revert p7zip
E. pkg uninstsll p7zip
F. pkg install p7zip
G. pkg install --no-backup-be p7sip
H. pkg refresh p7zip
Answer: D
Explanation: Use the pkg revert command to restore files to their as-delivered condition.

"Pass Any Exam. Any Time." - www.TwPass.com

63

Oracle 1z0-821 Exam


Reference: Adding and Updating Oracle Solaris 11 Software Packages, Restoring a File

QUESTION NO: 81
Given:
file1 and file2 are text files.
dir1 and dir2 are directories.
Which two commands will be successful?

A. cp dir1 dir1 B. cp
dir1 file1 C. cp file? dir1
D. cp file. dir1
E. cp file% dir2
F. cp file1 file2 dir1
Answer: C,F
Explanation: C: Here the wildcard character ? is used (Matches any single character).
file1 and file2 will be copied into dir1
F: the two files file1 and file2 are copied into directoy dir1.
Note: cp - copy files and directories
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Cp has three principal modes of operation. These modes are inferred from the type and count of
arguments presented to the program upon invocation.
* When the program has two arguments of path names to files, the program copies the contents of
the first file to the second file, creating the second file if necessary.
* When the program has one or more arguments of path names of files and following those an
argument of a path to a directory, then the program copies each source file to the destination
directory, creating any files not already existing.
* When the program's arguments are the path names to two directories, cp copies all files in the
source directory to the destination directory, creating any files or directories needed. This mode of
operation requires an additional option flag, typically r, to indicate the recursive copying of
directories. If the destination directory already exists, the source is copied into the destination,
while a new directory is created if the destination does not exist.

"Pass Any Exam. Any Time." - www.TwPass.com

64

Oracle 1z0-821 Exam


Reference: man cp

QUESTION NO: 82
You want to delete the IPv4 address on the interface net3. Which command should you use?

A. ipadm delete-ip net3/v4


B. ipadm down-addr net3/v4
C. ipadm disable-if net3/v4 D.
ipadm delete-vni net3/v4
E. ipadm delete-addr net3/v4 F.
ipadm deiete-ipv4 ner3/v4
Answer: E
Explanation: The ipadm delete-addr subcommand removes addresses from interfaces.
To remove an address from the IPMP group, type the following command:
# ipadm delete-addr addrobj
The addrobj uses the naming convention inder-interface/user-string.
Reference: Oracle Solaris Administration: Network Interfaces and Network Virtualization

QUESTION NO: 83
Select two correct statements about the authentication services available in Oracle Solaris 11.

A. Pluggable Authentication Modules (PAM) is used to control the operation of services such
console logins and ftp.
B. The Secure Shell can be configured to allow logins across a network to remote servers without
transmitting passwords across the network.
C. Secure Remote Procedure Calls (Secure RPC) provides a mechanism to encrypt data on any
IP Socket connection.
D. Pluggable Authentication Modules (PAM) is used to implement the Secure Shell in Oracle
Solaris 11.
E. Simple Authentication and Security Layer (SASL) provides a mechanism to authenticate and
"Pass Any Exam. Any Time." - www.TwPass.com

65

Oracle 1z0-821 Exam


encrypt access to local file system data.
Answer: A,E
Explanation: A: Pluggable Authentication Modules (PAM) are an integral part of the
authentication mechanism for the Solaris. PAM provides system administrators with the ability and
flexibility to choose any authentication service available on a system to perform end-user
authentication.
By using PAM, applications can perform authentication regardless of what authentication method
is defined by the system administrator for the given client.
PAM enables system administrators to deploy the appropriate authentication mechanism for each
service throughout the network. System administrators can also select one or
multipleauthentication technologies without modifying applications or utilities. PAM insulates
application developers from evolutionary improvements to authentication technologies, while at the
same time allowing deployed applications to use those improvements.
PAM employs run-time pluggable modules to provide authentication for system entry services.
E: The Simple Authentication and Security Layer (SASL) is a method for
adding authentication support to connection-based protocols.
Simple Authentication and Security Layer (SASL) is a framework for authentication and data
security in Internet protocols. It decouples authentication mechanisms from application protocols,
in theory allowing any authentication mechanism supported by SASL to be used in any application
protocol that uses SASL. Authentication mechanisms can also support proxy authorization, a
facility allowing one user to assume the identity of another. They can also provide a data security
layer offering data integrity and data confidentiality services. DIGEST-MD5 provides an example of
mechanisms which can provide a data-security layer. Application protocols that support SASL
typically also support Transport Layer Security (TLS) to complement the services offered by SASL.
Reference: softpanorama.org, Solaris PAM

QUESTION NO: 84
User brian changes the permissions for db_data this command:
chmod 4755 db_data
What is true?
"Pass Any Exam. Any Time." - www.TwPass.com

66

Oracle 1z0-821 Exam


A. db_data now has permissions rwsr-xr-x and can be deleted only by user brian.
B. db_data now has permissions rwsr-xr-x and, if executed, will inn with the permissions of user
brian.
C. db_data now has permissions rwxr-sr-x and can be deleted only by members of the group
owning it.
D. The permissions for db_data cannot be determined, because the permissions prior to the
change have not been specified.
E. db_data must be an ordinary file, because special permissions cannot be set on a directory.
Answer: C
Explanation: Use the chmod command to change permissions for a file or directory. You must be
the owner of a file or directory, or have root access, to change its permissions. Here we do not
know if brian owns db_data.

Note:
Permission
7full
6read and write
5read and execute
4read only
3write and execute
2write only
1execute only
0none
0 --- no permission
1 --x execute
2 -w- write
3 -wx write and execute
4 r-- read
5 r-x read and execute
6 rw- read and write
7 rwx read, write and execut
Solaris: Solaris Advanced User's Guide

QUESTION NO: 85
Which three of the components would degrade performance if used in a ZFS storage pool, and are
"Pass Any Exam. Any Time." - www.TwPass.com

67

Oracle 1z0-821 Exam


not recommended configurations?

A. a file on a UFS file system


B. a Veritas Volume Manager (VxVM) volume
C. a LUN in a hardware RAID array
D. a disk slice from an SMI labeled disk
E. a Solaris Volume Manager (SVM) volume
F. an EDI disk
Answer: A,B,E
Explanation: A: ZFS also allows you to use UFS files as virtual devices in your storage pool. This
feature is aimed primarily at testing and enabling simple experimentation, not for production use.
The reason is that any use of files relies on the underlying file system for consistency. If you create
a ZFS pool backed by files on a UFS file system, then you are implicitly relying on UFS to
guarantee correctness and synchronous semantics.
However, files can be quite useful when you are first trying out ZFS or experimenting with more
complicated layouts when not enough physical devices are present. All files must be specified as
complete paths and must be at least 64 Mbytes in size.
B, E: You can construct logical devices for ZFS using volumes presented by software-based
volume managers, such as Solaris Volume Manager (SVM) or Veritas Volume Manager (VxVM).
However, these configurations are not recommended. While ZFS functions properly on such
devices, less-than-optimal performance might be the result.
Reference: Solaris ZFS Administration Guide, Managing ZFS Storage Pools

QUESTION NO: 86
View the Exhibit and review the file system information displayed from a remote server.

"Pass Any Exam. Any Time." - www.TwPass.com

68

Oracle 1z0-821 Exam

You are configuring a new server. This new server has the following storage pool configured:

This new server also has the following file systems configured:

When you are finished building this new server, the pool1/data dataset must be an exact duplicate
of note server. What is the correct procedure to create the pool1/data dataset on this new server?

A. zfs create -o mountpoint=/data -o refquota=1g pool1/data


B. zfs set mountpoint=none pool1zfs create pool1/data
C. zfs set mountpoint=none pool1zfs create -o mountpoint=/data -o quota=1g pool1/data
D. zfs create quota=1g pool1/data
E. zfs create mountpoint=/data pool1/data
F. zfs set quota=1g pool1/data
Answer: E
Explanation:

"Pass Any Exam. Any Time." - www.TwPass.com

69

Oracle 1z0-821 Exam


QUESTION NO: 87
You have installed an update to the gzip package and need to "undo" .ho update and return the
package to its "as-delivered" condition. Which command would you use?

A. pkg undo B. pkg


revert
C. pkg fix
D. pkg uninstall
Answer: B
Explanation: Use the pkg revert command to restore files to their as-delivered condition.
Reference: Adding and Updating Oracle Solaris 11 Software Packages, Restoring a File

QUESTION NO: 88
To confirm the IP address and netmask have been correctly configured on the network interfaces
which command should you use?

A. ipdilm show-if
B. ipadm show-nic
C. ipadm show-addr
D. ipadm show-ifconfig
E. ipadm show-addripadm show-mask
Answer: C
Explanation: Show address information, either for the given addrobj or all the address objects
configured on the specified interface, including the address objects that are only in the persistent
configuration.
State can be:disabled, down, duplicate, inaccessible, ok, tentative
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128

"Pass Any Exam. Any Time." - www.TwPass.com

70

Oracle 1z0-821 Exam

QUESTION NO: 89
You are the administrator of a system that a large number of developers work on. These
developers crash the system, and their applications, on a regular basis.
What command would you use to configure where the core files are saved?

A. savecore B.
dumpadm
C. svcadm
D. proc
E. coreadm
Answer: E
Explanation: The coreadm command is used to specify the name and location of core files
produced by abnormally-terminating processes.
Reference: man coreadm

QUESTION NO: 90
Which option displays the result of running the zfs list command?

"Pass Any Exam. Any Time." - www.TwPass.com

71

Oracle 1z0-821 Exam


A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Explanation: The zfs list command provides an extensible mechanism for viewing and querying
dataset information.
You can list basic dataset information by using the zfs list command with no options. This
command displays the names of all datasets on the system and the values of their used, available,
referenced, and mountpoint properties. For more information about these properties, see
Introducing ZFS Properties.
For example:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
pool 476K 16.5G 21K /pool
pool/clone 18K 16.5G 18K /pool/clone
pool/home 296K 16.5G 19K /pool/home
pool/home/marks 277K 16.5G 277K /pool/home/marks
pool/home/marks@snap 0 - 277K pool/test 18K 16.5G 18K /test
Reference: Querying ZFS File System Information, Oracle Solaris ZFS Administration Guide

QUESTION NO: 91
Which network protocol provides connectionless, packet-oriented communication between
applications?

A. TCP B. UDP
C. IP
D. ICMP
E. NFS
F. IPSec
Answer: B
"Pass Any Exam. Any Time." - www.TwPass.com
72

Oracle 1z0-821 Exam


Explanation: The User Datagram Protocol (UDP) is one of the core members of the Internet
Protocol Suite, the set of network protocols used for the Internet. With UDP, computer applications
can send messages, in this case referred to as datagrams, to other hosts on an Internet
Protocol (IP) network without requiring prior communications to set up special transmission
channels or data paths.
Compared to TCP, UDP is a simpler message-based connectionless protocol.

QUESTION NO: 92
A datalink can best be described as______.

A. a driver for a Network Interface Card


B. the software connecting the Internet Layer and the Physical Layer
C. a device that provides Classless Inter-Domain Routing
D. a logical object used for IP Multipathing
E. a device instance
Answer: E
Explanation: The command dladm is used to configure data-link interfaces in Sun Solaris. A
configured data-link is represented in the system as interface that can be used for TCP/IP. Each
data-link relies on either a single network device or an link aggregation device to send & recieve
packets.
Network interfaces provide the connection between the system and the network. These interfaces
are configured over data links, which in turn correspond to instances of hardware devices in the
system.
In the current model of the network stack, interfaces and links on the software layer build on the
devices in the hardware layer. More specifically, a hardware device instance in the hardware layer
has a corresponding link on the data-link layer and a configured interface on the interface layer.
This one-to-one relationship among the network device, its data link, and the IP interface is
illustrated in the figure that follows.
Network Stack Showing Network Devices, Links, and Interfaces:

"Pass Any Exam. Any Time." - www.TwPass.com

73

Oracle 1z0-821 Exam

Reference: System Administration Guide: Network Interfaces and Network Virtualization

QUESTION NO: 93
View the exhibit to inspect the file system configuration on your server.
Exhibit: *Missing*
Your department's backup policy is to perform a full backup to a remote system disk on Saturday. On
Sunday through Friday, you are to perform an incremental backup to the same remote system disk.

Each incremental backup will contain only data that has been modified since the previous
Saturday backup.

The server file systems must remain available at all times and can never be taken offline,
The backup must not only provide for the recovery of the most recent version of a file, but must
"Pass Any Exam. Any Time." - www.TwPass.com

74

Oracle 1z0-821 Exam


also allow recovery of previous versions of a file created since Saturday's full backup.
Following your company policy, which option describes a valid procedure for backing up the /data
file system to a remote disk named /remote/backup?
A.
On Saturday:
zfs create snapshot pool1/data@sat.
zfs send pool1/data@sat > /remote/backup/full
On each weekday:
Remove the previous daily snapshot.
zfs snapshot pool1/data@daily
zfs send -i pool1/data@sat pool1/data@daily > /remote/backup/full B.
On Saturday:
zfs create snapshot pool1/data@sat.
zfs send pool1/data@sat | zfs recv remote/backup/'date '+%m%d%Y' '
On each weekday:
Remove the previous daily snapshot.
zfs create pool1/data@daily
zfs send -i pool1/data@sat pool1/data@daily | zfs recv remote/backup
d%y' ' C.
On Saturday:
zfs snapshot pool1/data@sat
zfs send pool1/data@sat > /remote/backup/full
On each weekday:
Remove the previous daily snapshot.
zfs snapshot pool1/data@daily
zfs send -i pool1/data@sat pool1/data@daily > /remote/backup/daily D.
On Saturday:
zfs create snapshot pool1/data@sat
zfs send pool1/data@sat | zfs recv remote/backup
On each weekday:
Remove the previous daily snapshot.
zfs create -i pool1/data@sat pool1/data@daily
zfs send pool1/data@daily | zfs recv remote/backup E.
On Saturday:
zfs snapshot pool1/data@sat
zfs pool1/data@sat > /remote/backup/full
On each weekday:
Remove the previous daily snapshot.
zfs snapshot pool1/data@daily
zfs send -i pool1/data@sat pool1/data@daily > /remote/backup/full
"Pass Any Exam. Any Time." - www.TwPass.com

75

Oracle 1z0-821 Exam


Answer: C
Explanation:

QUESTION NO: 94
A user account must be a member of a primary group, and may also be a member of one or more
secondary groups. What is the maximum total number of groups that one user can concurrently
belong to?

A. 15 B. 16 C.
17 D. 63 E. 64 F.
65
G. The number of groups one user can concurrently belong to is unlimited in Solaris 11.
Answer: B
Explanation: Each user belongs to a group that is referred to as the user's primary group. The
GID number, located in the user's account entry within the /etc/passwd file, specifies the user's
primary group.
Each user can also belong to up to 15 additional groups, known as secondary groups. In the
/etc/group file, you can add users to group entries, thus establishing the user's secondary group
affiliations.
Note (4 PSARC/2009/542):
his project proposes changing the maximum value for NGROUPS_MAX
from 32 to 1024 by changing the definition of NGROUPS_UMAX from 32 to
1024.
The use for a larger number of groups is described in CR 4088757,
particular in the case of Samba servers and ADS clients; the
Samba servers map every SID to a Unix group. Users with more
than 32 groups SIDs are common. We've seen reports varying from
"64 is enough", "128 is absolutely enough" and "we've users with
more 190 group SIDS).
NGROUPS_MAX as defined by different Unix versions are as follows
(http://www.j3e.de/ngroups.html):

"Pass Any Exam. Any Time." - www.TwPass.com

76

Oracle 1z0-821 Exam


Linux Kernel >= 2.6.365536
Linux Kernel < 2.6.332
Tru64 / OSF/132
IBM AIX 5.264
IBM AIX 5.3 ... 6.1128
OpenBSD, NetBSD, FreeBSD, Darwin (Mac OS X)16
Sun Solaris 7,8,9,1016 (can vary from 0-32)
HP-UX20
IRIX16 (can vary from 0-32)
Plan 9 from Bell Labs32 Minix
30 (Minix-vmd: 16)
QNX 6.48

Reference: Increase the maximum value of NGROUPS_MAX to 1024 PSARC/2009/542

QUESTION NO: 95
Identify three differences between the shutdown and init commands.

A. init shuts a system down faster than the shutdown command.


B. Only shutdown broadcasts a final shutdown warning to all fogged in users.
C. init does not terminate all services normally. The shutdown command performs a t shutdown of
all services.
D. The shutdown command can only bring the system to the single-user milestone. The command
must be used to shut the system down to run level 0.
E. The shutdown sends a shutdown message to any systems that are mounting resource-tern that
is being shut down.
F. The shutdown command will shut the system down and turn off power; init will only shut system
down.
Answer: A,B,E
Explanation: Note shutdown:
shutdown is executed by the super user to change the state of
the machine. In most cases, it is used to change from the multiuser state (state 2) to another state.

"Pass Any Exam. Any Time." - www.TwPass.com

77

Oracle 1z0-821 Exam


By default, shutdown brings the system to a state where only
the console has access to the operating system. This state is
called single-user.
Before starting to shut down daemons and killing processes,
shutdown sends a warning message and, by default, a final
message asking for confirmation. message is a string that is
sent out following the standard warning message "The system
will be shut down in ..." If the string contains more than
one word, it should be contained within single (') or double (")
quotation marks.
Note init:
If a 0 through 6 is entered, init enters the corresponding run
level. Run levels 0, 5, and 6 are reserved states for
shutting the system down. Run levels 2, 3, and 4 are
available as multi-user operating states.
OPTIONS
0 Go into firmware.
5 Shut the machine down so that it is safe to remove the
power. Have the machine remove power, if pos- sible.
6 Stop the operating system and reboot to the state
defined by the initdefault entry in /etc/inittab.
Reference: man init, man shutdown

QUESTION NO: 96
View the exhibit.

The configuration information in the exhibit is displayed on your system immediately after installing
"Pass Any Exam. Any Time." - www.TwPass.com

78

Oracle 1z0-821 Exam


the OS. Choose the option that describes the selection made during the Installation of the OS to
obtain this configuration.

A. The automatic network configuration option was chosen during the installation of the OS.
B. The manual network configuration option was chosen during the installation of the OS. C.
The network was not configured during the installation of the OS.
D. The DHCP network configuration option was chosen during the Installation of the OS.
Answer: A
Explanation: There are two ways to configure the network configuration: automatic or manual.
In the exhibit we see that DHCP has been used used. This indicates an automatic network
configuration.

QUESTION NO: 97
Which command would you use to determine which package group is installed on your system?

A. pkg list group/system/\*


B. pkg info
C. uname -a
D. cat /var/sadm/system/admin/CLUSTEP
Answer: B
Explanation: The pkg info command provides detailed information about a particular IPS
package.
Note: The pkginfo command does the same for any SVR4 packages you may have installed on
the same system.
pkg info example:
$pkg info p7zip
Name: compress/p7zip
Summary: The p7zip compression and archiving utility
Description: P7zip is a unix port of the 7-Zip utility. It has support for
numerous compression algorithms, including LZMA and LZMA2, as
well as for various archive and compression file formats,
including 7z, xz, bzip2, gzip, tar, zip (read-write) and cab,
cpio, deb, lzh, rar, and rpm (read-only).

"Pass Any Exam. Any Time." - www.TwPass.com

79

Oracle 1z0-821 Exam


Category: System/Core
State: Installed
Publisher: solaris
Version: 9.20.1
Build Release: 5.11
Branch: 0.175.0.0.0.2.537
Packaging Date: Wed Oct 19 09:13:22 2011
Size: 6.73 MB
FMRI: pkg://solaris/compress/p7zip@9.20.1,5.11-0.175.0.0.0.2.537:20111019T091322Z

QUESTION NO: 98
Oracle Solaris 11 kernel encounters a fatal error, and it results in a system panic. What type of file
does this generate?

A. a.out
B. objdump
C. core dump D. tape
dump E. crash dump
Answer: C
Explanation: A kernel panic is a type of error that occurs when the core (kernel) of an operating
system receives an instruction in an unexpected format or when it fails to handle properly. A kernel
panic can also follow when the operating system can't recover from a different type of error. A
kernel panic can be caused by damaged or incompatible software or, more rarely, damaged or
incompatible hardware.
When a server kernel panics it abruptly halts all normal system operations. Usually, a kernel
process named panic() outputs an error message to the console and stores debugging information
in nonvolitile memory to be written to a crash log file upon restarting the computer. Saving the
memory contents of the core and associated debugging information is called a "core dump."

QUESTION NO: 99
The following information is displayed for the svc:/network/ssh service:

"Pass Any Exam. Any Time." - www.TwPass.com

80

Oracle 1z0-821 Exam

Which describes the minimum set of commands to be executed to bring the svc: /network/ssh:
default service back online?

A. svcadm refresh svc:/network/ssh:default B.


svcadm restart svc:/network/ssh:default
C. svcadm enable svc:/system/cryptosvc
D. svcadm enable svc:/system/cryptosvcsvcadm enable svc:/network/ipfilter:defaultsvcadm enable
svc:/network/ssh:default
E. svcadm enable svc:/system/cryptosvcsvcadm enable svc:/network/ipfilter:defaultsvcadm refresh
svc:/network/ssh:default
F. svcadm restart svc:/system/cryptosvcsvcadm restart svc:/network/ipfilter:defaultsvcadm restart
svc:/network/ssh:default
G. svcadm enable svc:/system/ssh:default
Answer: D
Explanation: According to the exhibit the ssh service is offline.
Further we can see that ssh has a require_all dependency to cryptosvc which is disabled
and an optional_all dependacy to ipfilter:default which is also disabled.
First we enable cryptosvc, then ipfilter:default, finally cryptosvc is enabled.
Note:
Dependencies
Service instances may have dependencies on services or
files. Those dependencies govern when the service is started
and automatically stopped. When the dependencies of an
enabled service are not satisfied, the service is kept in
the offline state. When its dependencies are satisfied, the
service is started. If the start is successful, the service
"Pass Any Exam. Any Time." - www.TwPass.com

81

Oracle 1z0-821 Exam


is transitioned to the online state. Whether a dependency is
satisfied is determined by its type:
require_all Satisfied when all cited services are running (online or degraded), or when all indi- cated
files are present.
require_any Satisfied when one of the cited services is
running (online or degraded), or when at least
one of the indicated files is present.
optional_all Satisfied if the cited services are running
(online or degraded) or will not run without
administrative action (disabled, maintenance, not present, or offline waiting for
dependencies which will not start without
administrative action).
exclude_all Satisfied when all of the cited services are
disabled, in the maintenance state, or when cited
services or files are not present.
Reference: man smf

QUESTION NO: 100


You are the administrator for a group of shell script developers. They use vi, and have asked you
to make their scripts automatically executable when they save their files.
How can this be accomplished?

A. Enter set -o vi on the command line, or include it in each user's startup script. B.
Enter umask -s on the command line, or include it in each user's startup script.
C. Enter umask 000 on the command line, or include it in each user's startup script. D.
Enter umask 777 on the command line, or include it in each user's startup script.
E. It is not possible to automatically set the execute bit on with the umask setting, or vi option.
F. Enter umask 766 the command line, or include it in the global startup script for the default shell.
Answer: C
"Pass Any Exam. Any Time." - www.TwPass.com

82

Oracle 1z0-821 Exam


Explanation: Unlike DOS, which uses the file extension to determine if a file is executable or not,
UNIX relies on file permissions.
The value assigned by umask is subtracted from the default.
User's file creation mask. umask sets an environment variable which automatically sets file
permissions on newly created files. i.e. it will set the shell process's file creation mask to mode.
umask 000 would grant full permissions.
Note: 777 full permissions

QUESTION NO: 101


You have connected a new printer at a fixed IP address.
It appears to work correctly most of the time, but at other times does not respond
You suspect that the assigned address may not be unique within the network.
What command will be useful to confirm this?

A. arp
B. netstat
C. ipadm show-if
D. dladm show-addr E.
ipadm show-addr
Answer: E
Explanation: 'ipadm show-addr' displays all the configured addresses on the system.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128

QUESTION NO: 102


Your server has a ZFS storage pool that is configured as follows:

"Pass Any Exam. Any Time." - www.TwPass.com

83

Oracle 1z0-821 Exam

The server has two spate 140-GB disk drives: c3t5d0 c3t6d0
Which command would add redundancy to the pool1 storage pool?

A. zpool attach pool1 c3t5d0 c3t6d0


B. zpool attach pool1 c3t3d0 c3c5d0; zpoo1 attach pool1 c3t4d0 c3t6d0
C. zpool mirror pool1 c3t5d0 c3t6d0
D. zpool add pool1 mirror c3t5d0 c3t6d0 E.
zpool add raidz pool1 c3t5d0 c3t6d0
Answer: A
Explanation: You can convert a non-redundant storage pool into a redundant storage pool by
using the zpool attach command.
Note: zpool attach [-f] pool device new_device
Attaches new_device to an existing zpool device. The existing
device cannot be part of a raidz configuration. If device is not
currently part of a mirrored configuration, device automatically
transforms into a two-way mirror of device and new_device. If
device is part of a two-way mirror, attaching new_device creates a
three-way mirror, and so on. In either case, new_device begins to
resilver immediately.
Reference: Converting a Non-Redundant ZFS Storage Pool to a Mirrored ZFS Storage Pool
Reference: man zpool

QUESTION NO: 103


A user on the system has started a process, but it needs to be terminated.
"Pass Any Exam. Any Time." - www.TwPass.com

84

Oracle 1z0-821 Exam


The process ID was determined as follows:
pgrep userprogram
l5317
The user attempted to terminate the program as follows:
pkill 15317
This command runs without an error message, and the process continues to run.
What is the issue?

A. You need to run the pkill command with the process name. B.
You need to switch to super user to kill the process.
C. You need to run the ps command to get more information.
D. You need to run the prstat command to get more information.
Answer: B
Explanation: You can use the pgrep and pkill commands to identify and stop command
processes that you no longer want to run. These commands are useful when you mistakenly start a
process that takes a long time to run.
To terminate a process:
Type pgrep to find out the PID(s) for the process(es).
Type pkill followed by the PID(s).
You can kill any process that you own. Superuser can kill any process in the system except for
those processes with process IDs of 0, 1, 2, 3, and 4. Killing these processes most likely will crash
the system.

Reference: Terminating Processes (pkill)

QUESTION NO: 104


You are logged in to a Solaris 11 system as user jack. You issue the following sequence of
commands:
"Pass Any Exam. Any Time." - www.TwPass.com

85

Oracle 1z0-821 Exam

Identify two correct statements.

A. You have the effective privilege of the account root. B.


Your GID is 10.
C. Your home directory is /root.
D. You are running the shell specified for the account root. E.
Your UID is 1.
Answer: A,B
Explanation: Oracle Solaris provides predefined rights profiles. These profiles, listed in the
/etc/security/prof_attr, can be assigned by the root role to any account. The root role is assigned
all privileges and all authorizations, so can perform all tasks, just as root can when root is a user.
To perform administrative functions, you open a terminal and switch the user to root. In that
terminal, you can then perform all administrative functions.
$ su - root
Password: Type root password
#
When you exit the shell, root capabilities are no longer in effect.
Reference: User Accounts, Roles, and Rights Profiles

QUESTION NO: 105


.Which two are user definable OpenBoot parameters that can be set in the OpenBoot PROM?

A. IP address for the system console


B. host ID
C. system date and time
D. default boot device

"Pass Any Exam. Any Time." - www.TwPass.com

86

Oracle 1z0-821 Exam


E. verbose hardware diagnostics
F. powering off the hardware
Answer: D,E
Explanation: The NVRAM chip stores user-definable system parameters, also referred to as
NVRAM variables or EEPROM parameters. The parameters allow administrators to control
variables such
as the default boot device and boot command. The NVRAM also contains writeable areas for
user-controlled diagnostics, macros, and device aliases. NVRAM is where the system
identification information is stored, such as the host ID, Ethernet address, and time-of-day (TOD)
clock.
Examples of NVRAM variables:
Variable Default Description
boot-device disk or net The device from which to start up. diagdevice net The diagnostic startup source device.
diag-file Empty string Arguments passed to the startup program in diagnostic mode.
diag-switch? false Whether to run in diagnostic mode
Reference: OpenBoot 4.x Command Reference Manual

QUESTION NO: 106


Which two capabilities are provided by the OpenBoot PROM?

A. a command to safely shut down the system


B. hardware testing and initialization
C. booting from a disk or network
D. starting the GRUB loader
Answer: B,C
Explanation: OpenBoot firmware is executed immediately after you turn on your system. The
primary tasks of OpenBoot firmware are to: *
Test and initialize the system hardware (B)
* Determine the hardware configuration
*Boot the operating system from either a mass storage device or from a network (C)
*Provide interactive debugging facilities for testing hardware and software
Reference: OpenBoot 4.x Command Reference Manual

"Pass Any Exam. Any Time." - www.TwPass.com

87

Oracle 1z0-821 Exam

QUESTION NO: 107


On which is the open boot prom available?

A. x86 only
B. x86 64-Bit only
C. SPARC only
D. both x86 and x86 64-Bit
E. x86, x86 64-Bit and SPARC
Answer: C
Explanation: No OpenBoot Environment on the Intel Platform. The Intel environment has no
OpenBoot PROM or NVRAM. On Intel systems, before the kernel is started, the system is
controlled by the basic input/output system (BIOS), the firmware interface on a PC. Therefore,
many features provided by OpenBoot are not available on Intel systems.
Note: The Open Boot PROM (OBP) bootloader only exists within SPARC. Before Solaris 10 01/06,
the bootloader for Solaris x86 was a Sun customized bootstrap software. After Solaris 10 01/06, it
uses GRUB, a well known bootloader that's commonly used in the Linux world.
With GRUB, it's much easier to make the system dual-boot Linux and Solaris. GRUB extends the
capabilities of the bootloader that was not available previously such as the ability to boot from a
USB DVD drive. Those who have used Linux will be quite familiar with GRUB and its options.

QUESTION NO: 108


Review the storage pool information:

"Pass Any Exam. Any Time." - www.TwPass.com

88

Oracle 1z0-821 Exam

Which statement describes the status of this storage pool?

A. It is a RAIDZ storage pool and can withstand a single disk failure; data will be striped at: disk
components.
B. It is a double-parity RAIDZ storage pool and can withstand two disk failures; data will be striped
across four disk components.
C. It is an improperly configured RAIDZ storage pool; data will be striped across four disk
components, but only three drives are protected with redundancy.
D. It is an improperly configured RAIDZ storage pool; data will be striped across three disk
components, but only three drives are protected with redundancy.
Answer: D
Explanation: Device c3t6d0 is not included in the RAIDZ storage pool. The other three devices
are included in the raidz pool. The data on these devices are protected.
Note: In addition to a mirrored storage pool configuration, ZFS provides a RAID-Z configuration
with either single, double, or triple parity fault tolerance. Single-parity RAID-Z (raidz or raidz1) is
similar to RAID-5. Double-parity RAID-Z (raidz2) is similar to RAID-6.
Reference: RAID-Z Storage Pool Configuration

QUESTION NO: 109


Which two statements describe the COMSTAR framework available in Oracle Solaris 11?

A. It converts an Oracle Solaris 11 host into a SCSI target device that can be accessed over a
storage network by Linux, Mac OS, or Windows client systems.
"Pass Any Exam. Any Time." - www.TwPass.com

89

Oracle 1z0-821 Exam


B. iSCSI targets cannot be configured as dump devices.
C. It provides support for iSCSI devices that use SLP.
D. It is used to connect to Fibre Channel or iSCSI Storage Area Network (SAN) environments.
E. It provides an upgrade and update path to convert your iSCSI LUNs from Solaris 10 systems.
Answer: A,B
Explanation: A: You can configure Common Multiprotocol SCSI TARget, or COMSTAR, a
software framework that enables you to convert any Oracle Solaris 11 host into a SCSI target
device that can be accessed over a storage network by initiator hosts.
This means you can make storage devices on a system available to Linux, Mac OS, or Windows
client systems as if they were local storage devices. Supported storage protocols are iSCSI, FC,
iSER, and SRP.
B: iSCSI targets cannot be configured as dump devices.

Reference: Oracle Solaris Administration: Devices and File Systems, COMSTAR and iSCSI
Technology (Overview)

QUESTION NO: 110


Review the non-global zone configuration displayed below:

"Pass Any Exam. Any Time." - www.TwPass.com

90

Oracle 1z0-821 Exam

The global zone has 1024 MB of physical memory. You need to limit the non-global zone so that it
uses no more than 500 MB of the global zone's physical memory. Which option would you
choose?

"Pass Any Exam. Any Time." - www.TwPass.com

91

Oracle 1z0-821 Exam

A. Option A B. Option
B C. Option C D.
Option D E. Option E
Answer: C
Explanation: Add a memory cap.
zonecfg:my-zone> add capped-memory
Set the memory cap.
zonecfg:my-zone:capped-memory> set physical=50m
End the memory cap specification.
zonecfg:my-zone:capped-memory> end
Reference: System Administration Guide: Oracle Solaris Containers-Resource Management and
Oracle Solaris Zones, How to Configure the Zone

"Pass Any Exam. Any Time." - www.TwPass.com

92

Oracle 1z0-821 Exam

QUESTION NO: 111


You are troubleshooting interface net3 and you enter the following sequence of commands:

Your next command should be:

A. ipadm up-addr net3/v4 B.


ipadm enable-if -T net3
C. <ipadm create-vnic -a 192.168.1.25/24 net3/v4
D. ipadm create-ip -T static -a 192.168.1.25/24 -n net3 E.
ipadm create-addr -T static -a 192.168.1.25/24 net3
Answer: E
Explanation: If you are assigning a static IP address, use the following syntax:
# ipadm create-addr -T static -a address addrobj
where addrobj uses the naming format interface/user-defined-string, such as e1000g0/v4globalz.
Note:
create-addr [-t] -T static [-d] -a {local | remote}=addr[/prefixlen],... addrobj
Creates a static IPv4 or IPv6 address on the interface specified in addrobj. If the interface on
which the address is created is not plumbed, this subcommand will implicitly plumb the interface.
The created static address will be identified by addrobj.
By default, a configured address will be marked up, so that it can be used as a source or
destination of or for outbound and inbound packets.
Reference: man ipadmn

"Pass Any Exam. Any Time." - www.TwPass.com

93

Oracle 1z0-821 Exam

QUESTION NO: 112


The storage pool configuration on your server is:

You back up the /pool1/data file system, creating a snapshot and copying that snapshot to tape
(/dev/rmt/0). You perform a full backup on Sunday night and Incremental backups on Monday
through Saturday night at 11:00 pm. Each incremental backup will copy only the data that has
been modified since the Sunday backup was started.
On Thursday, at 10:00 am, you had a disk failure. You replaced the disk drive (c4t0d0). You
created pool (pool1) on that disk.
Which option would you select to restore the data in the /pool1/data file system?

A. zfs create pool1/dataLoad the Monday tape and enter:zfs recv pool1/data < /dev/rmt/0Load the
Wednesday tape and enter:zfs recv -F pool1/data < /dev/rmt/0
B. Load the Sunday tape and restore the Sunday snapshot:zfs recv pooll/data < /dev/rmt/0zfs
rollback pool1/data@monLoad the Wednesday tape and restore the Wednesday snapshot:zfs
recv -i pooll/data < /dev/rmt/0zfs rollback pool1/data@wed
C. zfs create pooll/dataLoad the Wednesday tape and enter:zfs recv -F pool1/data < /dev/rmt/0
D. Load the Sunday tape and enter:zfs recv pool1/data < /dev/rmt/0Load the Wednesday tape and
enter:* commands missing*
Answer: D
Explanation: First the full backup must be restored. This would be the Sunday backup.
Then the last incremental backup must be restored. This would be the Wednesday backup.
Before restoring the Wednesday incremental file system snapshot, the most recent snapshot must
first be rolled back.
By exclusion D) would be best answer even though it is incomplete.

QUESTION NO: 113

"Pass Any Exam. Any Time." - www.TwPass.com

94

Oracle 1z0-821 Exam


In Oracle Solaris 11, where is the Oracle default repository located?

A. /var/spool/pkg
B. http://localhost/solaris
C. http://pkg.oracle.com/solaris/release
D. http://www.oracle.com/Solaris/download
E. /cdrom/cdrom0
Answer: C
Explanation: REPOSITORY DESCRIPTION
* http://pkg.oracle.com/solaris/release
The default repository for new Oracle Solaris 11 users. This repository receives
updates for each new release of Oracle Solaris. Significant bug fixes, security updates, and
new software may be provided at any time for users to install at Oracle's discretion.
*https://pkg.oracle.com/solaris/support
Provides bug fixes and updates. Accessible with a current support contract from Oracle.
* https://pkg.oracle.com/solaris/dev Provides the latest development updates. Accessible to users
enrolled in the Oracle Solaris 11 Platinum Customer Program and approved Oracle Partners.
Reference: Oracle Solaris 11, What's New for Application Developers

QUESTION NO: 114


Which two are implemented using the Internet Control Message Protocol (ICMP)?

A. ping
B. DHCP C. HTTP
D. telnet E. syslog
F. traceroute
Answer: A,F
Explanation: The Internet Control Message Protocol (ICMP) is one of the core protocols of the
Internet Protocol Suite.
ICMP differs from transport protocols such as TCP and UDP in that it is not typically used to
exchange data between systems, nor is it regularly employed by end-user network applications

"Pass Any Exam. Any Time." - www.TwPass.com


95

Oracle 1z0-821 Exam


(with the exception of some diagnostic tools like ping and traceroute).

QUESTION NO: 115


Review the information taken from your server:

Which option describes the command used to create these snapshots of the root file system?

A. zfs snapshot -r rpool@BEI


B. beadm create -n BE1
C. zfs snapshot -r BE1 rpool
D. zfs snapshot rpool BEI
E. zfs snapshot rpool@BEl rpool/ROOT@BEl rpool/ROOT/solaris@BEl \rpool/ROOT/dump@BEI
rpocl/ROOT/export@BEl \rpool/ROOT/export/home@BEl rpaol/ROOT/swap@BEI:
Answer: A
Explanation: zfs snapshot [-r] [-o property=value] ... filesystem@snapname|volume@snapname
Creates a snapshot with the given name. All previous modifications by successful system calls to
the file system are part of the snapshot. See the "Snapshots" section for details.
-r
Recursively create snapshots of all descendent datasets. Snapshots are taken atomically, so that
all recursive snapshots correspond to the same moment in time.
Reference: man zfs

"Pass Any Exam. Any Time." - www.TwPass.com

96

Oracle 1z0-821 Exam


QUESTION NO: 116
XJ notice that the /var/.dm/messages file has become very large. Typically, this is managed by a
crontab entry. Which entry should be in the root's crontab file?

A. 10 3 * * * /usr/adm/messages
B. 10 3 * * * /usr/sbin/logadm
C. 10 3 * * * /usr/sbin/syslogrotate
D. 10 3 * * * /usi/sbin/logrotate
E. 10 3 * * * /usr/sbin/messages
Answer: B
Explanation: This example shows how to display the default root crontab file.
$ suPassword:
# crontab -l
#ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 */
#
# The root crontab should be used to perform accounting data collection.
##
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
Reference: Oracle Solaris Administration: Common Tasks, Displaying crontab Files

QUESTION NO: 117


user1 is attempting to run the following command:
cp bigfile verybig
The system displays the following errer:
cp: cannot create verybig: Disc quota exceeded
Your initial troubleshooting shows that the df -h command indicates the account is at 100%
capacity. What command would you use to determine how much disk space the user has
"Pass Any Exam. Any Time." - www.TwPass.com

97

Oracle 1z0-821 Exam


available?

A. zfs get quota rpool/export/home/user1


B. zfs userused@user1
C. zfs quota=1M /rpool/export/home/user1
D. df -h | grep user1
Answer: A
Explanation: ZFS quotas can be set and displayed by using the zfs set and zfs get commands. In
the following example, a quota of 10 Gbytes is set on tank/home/bonwick.
# zfs set quota=10G tank/home/bonwick
# zfs get quota tank/home/bonwick
NAME PROPERTY VALUE SOURCE
tank/home/bonwick quota 10.0G local
Reference: ZFS Quotas and Reservations

QUESTION NO: 118


Select the packet type that identifies members of the group and sends information to all the
network interfaces in that group.

A. Unicast
B. Multicast
C. Broadcast D.
Bayesian
E. Quality of Service Priority
Answer: B
Explanation: IPv6 defines three address types:
unicast
Identifies an interface of an individual node.
multicast
Identifies a group of interfaces, usually on different nodes. Packets that are sent to the multicast
address go to all members of the multicast group.

"Pass Any Exam. Any Time." - www.TwPass.com

98

Oracle 1z0-821 Exam


anycast
Identifies a group of interfaces, usually on different nodes. Packets that are sent to the anycast
address go to the anycast group member node that is physically closest to the sender.
Reference: System Administration Guide: IP Services, IPv6 Addressing Overview

QUESTION NO: 119


The current ZFS configuration on your server is:
pool1 124K 3.91G 32K /pool1
pool1/data 31K 3.91G 31K /data
You need to create a new file system named /data2. /data2 will be a copy of the /data file system.
You need to conserve disk space on this server whenever possible.
Which option should you choose to create /data2, which will be a read writeable copy of the /data
file system, while minimizing the amount of total disk space used in pool1?

A. zfs set mountpoint=/data2 compression=on pool1/data2


B. zfs snapshot pool1/data@nowzfs set mountpoint=/data2,comptession=on pool1/data@now
C. zfs create snapshot pool1/data@nowzfs send pool1/data@now | zfs recv pool1/data2
D. zfs create snapshot pool1/data@nowzfs clone -o mountpoint=/data2 pool1/data@now
pool1/data2
E. zfs snapshot pool1/data@nowzfs clone -o mountpoint=/data2 -ocompression=on
pool1/data@now pool1/data2
F. zfs snapshot pool1/data@nowzfs clone -o mountpoint=/data2 pool1/data@now pool1/data2
Answer: E
Explanation: zfs snapshot [-r] [-o property=value]
... filesystem@snapname|volume@snapname
Creates a snapshot with the given name. All previous modifications by successful system calls to
the file system are part of the snapshot
zfs clone [-p] [-o property=value] ... snapshot filesystem|volume
Creates a clone of the given snapshot.
Note:
Because snapshots are fast and low overhead, they can be used extensively without great

"Pass Any Exam. Any Time." - www.TwPass.com

99

Oracle 1z0-821 Exam


concern for system performance or disk use .
With ZFS you can not only create snapshot but create a clone of a snapshot.
A clone is a writable volume or file system whose initial contents are the same as the dataset from
which it was created. As with snapshots, creating a clone is nearly instantaneous, and initially
consumes no additional disk space. In addition, you can snapshot a clone.
A clone is a writable volume or file system whose initial contents are the same as the original
dataset. As with snapshots, creating a clone is nearly instantaneous, and initially consumes no
additional space.
Clones can only be created from a snapshot. When a snapshot is cloned, it creates an implicit
dependency between the parent and child.
Reference: man zfs

QUESTION NO: 120


You wish to troubleshoot some issues that you are having on the system. You want to monitor the
/var/adm/messages file in real time. Which command would you use to do this?

A. head
B. tail C. cat D.
file E. test
Answer: B
Explanation: tail is a program on Unix and Unix-like systems used to display the last few lines of a
text file or piped data.
By default, tail will print the last 10 lines of its input to the standard output. With command line
options the number of lines printed and the printing units (lines, blocks or bytes) may be changed.
The following example shows the last 20 lines of filename:
tail -n 20 filename

QUESTION NO: 121


"Pass Any Exam. Any Time." - www.TwPass.com

100

Oracle 1z0-821 Exam


Which two options describe how to override the default boot behavior of an Oracle Solaris 11
SPARC system to boot the system to the single-user milestone?

A. from the ok prompt, issue this command:boot -m milestone=single-user B.


From the ok prompt, issue this command:boot -m milestone/single-user
C. From the ok prompt, issue this command:boot -milestone=single-user
D. From the ok prompt. issue this command:boot -s
E. From from the ok prompt, issue this command:boot -m milestone=s
Answer: A,D
Explanation: By default, Solaris will boot to the pseudo milestone "all" and start all services. This
behaviour can be changed at boot time using either "-s" to reach single-user, or the new SMF
option "-m milestone=XXX" (see kernel(1M) for a list of the bootable milestones) to select an
explicit milestone.
Note: boot -s is the same as: boot -m milestone=single-user
with the difference being that the former is a lot less to type and is what most SysAdmins will be
familiar with.

QUESTION NO: 122


In a default standalone installation of Oracle Solaris 11, what is the default minimum length in
characters of a user password, and where is the minimum password length defined?

A. Default minimum length is 8, and is defined in /etc/default/password. B.


Default minimum length is 6, and is defined in /etc/default/password. C.
Default minimum length is 8, and is defined in /etc/shadow. D. Default
minimum length is 6, and is defined in /etc/shadow.
E. Default minimum length is 8, and is defined in /usr/sadm/defadduser. F.
Default minimum length is 6, and is defined in /usr/sadm/defadduser.
Answer: B
Explanation: By default, the passwd command assumes a minimum length of six characters. You
can use the PASSLENGTH default in the /etc/defaults/passwd files to change that by setting the
minimum number of characters that a user's password must contain to some other number.
Reference: Solaris Naming Administration Guide, Minimum Password Length

"Pass Any Exam. Any Time." - www.TwPass.com

101

Oracle 1z0-821 Exam

QUESTION NO: 123


Which four can the SMF notification framework be configured to monitor and report?

A. all service transition states


B. service dependencies that have stopped or faulted
C. service configuration modifications
D. legacy services that have not started
E. services that have been disabled F.
service fault management events G.
processes that have been killed
Answer: A,E,F,G
Explanation: Note 1: State Transition Sets are defined as:
to<state>
Set of all transitions that have <state> as the final state of the transition.
form-<state>
Set of all transitions that have <state> as the initial state of the transition.
<state>
Set of all transitions that have <state> as the initial state of the transition.
all
Set of all transitions. (A)
Valid values of state are maintenance, offline (G), disabled (E), online and degraded. An example
of a transitions set definition: maintenance, from-online, to-degraded.
F: In this context, events is a comma separated list of SMF state transition sets or a comma
separated list of FMA (Fault Management Architecture) event classes. events cannot have a mix
of SMF state transition sets and FMA event classes. For convenience, the tags problem{diagnosed,updated,repaired,resolved} describe the lifecycle of a problem diagnosed by the FMA
subsystem - from initial diagnosis to interim updates and finally problem closure.

Note 2:
SMF allows notification by using SNMP or SMTP of state transitions. It publishes Information
Events for state transitions which are consumed by notification daemons like snmp-notify(1M) and
"Pass Any Exam. Any Time." - www.TwPass.com

102

Oracle 1z0-821 Exam


smtp-notify(1M). SMF state transitions of disabled services do not generate notifications unless
the final state for the transition is disabled and there exist notification parameters for that
transition. Notification is not be generated for transitions that have the same initial and final state.
Reference: man svccfg setnotify

QUESTION NO: 124


You have been asked to do an orderly shutdown on a process with a PID of 1234, with the kill
command. Which command is best?

A. kill -2 1234
B. kill -15 1234
C. kill -9 1234 D. kill -1
1234
Answer: B
Explanation: On POSIX-compliant platforms, SIGTERM is the signal sent to a process to request
its termination. The symbolic constant for SIGTERM is defined in the header file signal.h. Symbolic
signal names are used because signal numbers can vary across platforms, however on the vast
majority of systems, SIGTERM is signal #15.
SIGTERM is the default signal sent to a process by the kill or killall commands. It causes the
termination of a process, but unlike the SIGKILL signal, it can be caught and interpreted (or
ignored) by the process. Therefore, SIGTERM is akin to asking a process to terminate nicely,
allowing cleanup and closure of files. For this reason, on many Unix systems during shutdown, init
issues SIGTERM to all processes that are not essential to powering off, waits a few seconds, and
then issues SIGKILL to forcibly terminate any such processes that remain.

QUESTION NO: 125


user1, while in his home directory, is attempting to run the following command in his home
directory: cp bigfile verybig
The system displays the following error:
cp: cannot create verybig: Disc quota exceeded

"Pass Any Exam. Any Time." - www.TwPass.com

103

Oracle 1z0-821 Exam


Your initial troubleshooting shows that the df -h command indicates he is at 100% capacity. What
command would you use to increase the disk space available to the user?

A. zfs get quota rpool/export/home/user1


B. zfs userused@user1
C. zfs quota=none /rpool/export/home/user1
D. df -h | grep user1
E. zfs set quota=none /rpool/export/home/user1
Answer: E
Explanation: ZFS quotas can be set and displayed by using the zfs set and zfs get commands.
We can remove the quota restriction by setting to quota to none.
Reference: man zfs

QUESTION NO: 126


You need to install the gzip software package on your system. Which command would you use to
find the software package in the configured repository?

A. pkg search gzip


B. pkg info gzip
C. pkg contents gzip
D. pkginfo gzip E. yum
list gzip
Answer: A
Explanation: Use the pkg search command to search for packages whose data matches the
specified pattern.
Like the pkg contents command, the pkg search command examines the contents of packages.
While the pkg contents command returns the contents, the pkg search command returns the
names of packages that match the query.
Reference: Oracle Solaris 11 Information Library, Searching for Packages

"Pass Any Exam. Any Time." - www.TwPass.com

104

Oracle 1z0-821 Exam


QUESTION NO: 127
What is the result of executing the following command?
svcs -d svc:/network/ssh:default

A. disables the svc:/network/ssh:default service


B. displays the services that svc: /network/ssh:default is dependent on
C. displays the services that are dependent on the svc: /network/ssh:default service
D. deletes the svc: /network/ssh:default service
Answer: B
Explanation: The svcs command displays information about service
instances as recorded in the service configuration reposi- tory.
-d Lists the services or service
instances upon which the given ser- vice
instances depend.
Reference: man svcs

QUESTION NO: 128


Which two accurately describe the Solaris IPS repository?

A. It contains a collection of operating system patches. B. It


contains a collection of software packages.
C. All packages within an IPS package repository reside in a catalog. D.
It is an ISO image of the Solaris installation media.
E. The packages in a catalog are associated with a specific publisher.
Answer: B,E
Explanation: Image Packaging System (IPS) is a new network based package management
system included in Oracle Solaris 11. It provides a framework for complete software lifecycle
management such as installation, upgrade and removal of software packages. IPS also enables
you to create your own software packages, create and manage package repositories, and mirror
existing package repositories.

"Pass Any Exam. Any Time." - www.TwPass.com

105

Oracle 1z0-821 Exam


Oracle Solaris software is distributed in IPS packages. IPS packages are stored in IPS package
repositories, which are populated by IPS publishers.
E: The following command displays property information about the local repository.
$ pkgrepo get -s /export/repoSolaris11
SECTION PROPERTY VALUE
publisher prefix solaris
repository description This\ repository\ serves\ a\ copy\ of\ the\ Oracle\ Solaris\ 11\
Build\ 175b\ Package\ Repository.
repository name Oracle\ Solaris\ 11\ Build\ 175b\ Package\ Repository
repository version 4
The value of the publisher prefix specifies that solaris is to be used in the following cases:
When more than one publisher's packages are present and no publisher is specified in the
package name in the pkg command
When packages are published to the repository and no publisher is specified.
Reference: Oracle Solaris 11 Express Image Packaging System Guide
Reference: Copying and Creating Oracle Solaris 11 Package Repositories, Checking and Setting
Repository Properties

QUESTION NO: 129


Which operation will fail if the DNS configuration is incorrect?

A. domainname
B. ping localhost.
C. ping 192.168.1.1
D. ping 23.45.82.174
E. ping www.oracle.com.
F. cat /etc/resolv.conf
Answer: E
Explanation: www.oracle.comwould have to be resolved to an IP name by the domain name
service.

"Pass Any Exam. Any Time." - www.TwPass.com

106

Oracle 1z0-821 Exam


QUESTION NO: 130
You have a process called bigscript, and you need to know the PID number for this process.
Which command will provide that information?

A. pkill bigscript
B. ps bigscript
C. pgrep bigscript D. prstat
bigscript
Answer: C
Explanation: Pgrep takes a process name and return a PID.
Note: pgrep looks through the currently running processes and lists the process IDs which
matches the selection criteria to stdout. All the criteria have to match. For example,
pgrep -u root sshd
will only list the processes called sshd AND owned by root.
Incorrec answers:
ps bigscript: You can't pass a name to ps, it interprets it as arguments.

QUESTION NO: 131


Server A, Server B, and Server C are connected to the same network switch and are on the sari
Each server has a single network interface, net0.
You received a tech support call that Server B has lost network connectivity. Your troubleshooting
has discovered:

Server A can ping Server C, but not Server B.


Server B can ping localhost, but not Server A or C.
Server C can ping Server A, but not Server B.
On Server F3, you enter the following command:
dladm show-phys | grep net0
"Pass Any Exam. Any Time." - www.TwPass.com

107

Oracle 1z0-821 Exam


Response:
net0/v4 Ethernet down 0 unknown el00gl
What is the next logical troubleshooting action?

A. Run arp -a on all servers.


B. Confirm that the router is working.
C. Confirm that the power light of the network switch is on.
D. Confirm that the physical network connections are intact. E.
On Server A and C, run tranceroute -n server.
F. On Server B, run tranceroute -n servera and tranceroute -n serverc.
Answer: D
Explanation: Check the physical connection.

QUESTION NO: 132


View the Exhibit.

After Installing the OS, you need to verify the network interface information. Which command was
used to display the network interface information in the exhibit?

A. ifconfiq -a
B. ipadm show-addr
C. svcs -1 network/physical
D. netstat -a
Answer: B
Explanation: 'ipadm show-addr' displays all the configured addresses on the system.
Example:
# ipadm show-addr
ADDROBJ TYPE STATE ADDR
"Pass Any Exam. Any Time." - www.TwPass.com

108

Oracle 1z0-821 Exam


lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128

QUESTION NO: 133


You suspect a problem with the oponldap package and want to make sure that the files have not
be modified or otherwise tampered with. Which command would validate all of the files contained
in the openldap package and report any problems?

A. pkgchk openldap B.
pkginfo openldap
C. pkg contents openldap
D. pkg verify openldap
E. pkg set-property signature-policy verify
Answer: A
Explanation: pkgchk checks the accuracy of installed files or, by using the -l option, displays
information about package files. pkgchk checks the integrity of directory structures and files.
Discrepancies are written to standard error along with a detailed explanation of the problem.
Reference: man pkgchk

QUESTION NO: 134


You wish to edit your crontab file that is located in /var/spool/cron/crontab. What command must
you enter to edit this file?

A. crontab -e
B. crontab -e /var/spool/cron/crontab
C. crontab -r
D. crontab -e /etc/default/cron
Answer: A
Explanation: The main tool for setting up cron jobs is the crontab command, though this is not
available on every Unix variant. Typically under Solaris or Linux one would create a new crontab
or edit an existing one, using the command;

"Pass Any Exam. Any Time." - www.TwPass.com

109

Oracle 1z0-821 Exam


crontab -e
Use the ls -l command to verify the contents of the/var/spool/cron/crontabs file.
Reference: System Administration Guide: Advanced Administration, Creating and Editing crontab
Files

QUESTION NO: 135


What is the output of the following command, if executed using the default shell for the root
account of a standard Live CD Install of Oracle Solaris 11?
echo '$SHELL'

A. /usr/bin/bash
B. /usr/bin/ksh
C. $SHELL
D. the PID for the current shell
Answer: C
Explanation: Single quotes are most strict. They prevent even variable expansion. Double quotes
prevent wildcard expansion but allow variable expansion. For example:
#!/bin/sh
echo $SHELL
echo "$SHELL" echo
'$SHELL' This will print:
/usr/bin/bash
/usr/bin/bash
$SHELL

QUESTION NO: 136


User jack logs in to host solar in and issues the following command:
jack@solaris:-$ ls .ssh

"Pass Any Exam. Any Time." - www.TwPass.com

110

Oracle 1z0-821 Exam


id_dsa id_dsa.pub id_rsa id_rsa.pub known_hosts authorized_keys

Which two are true?

A. The id_rsa file contains the private key for rhosts-based host authentication.
B. The id_dsa.pub file contains the Digital Signature Algorithm public key for the user jack.
C. The id_rsa.pub file contains the Rivest Shamir Adelman public key for the host solaris.
D. The authorized_keys file contains the private keys of remote users authorized to access jack's
account on solaris.
E. The known_hosts file contains the verified public keys of remote hosts known to be trusted.
Answer: A,E
Explanation: A: You will see two files starting with id_rsa. id_rsa is the private key and id_rsa.pub
is public key.
E: The .ssh/known_hosts file
In order to use public-key secure connection with other hosts (ssh, scp, sftp) there is a special
directory, ~/.ssh/, where passphrases and public keys are stored. Normally you wouldn't need to
know the gory details, but from time to time a host will change its public key and then you have
difficulty using ssh or scp with that host, and have to edit a file named known_hosts.
If you try to ssh to another computer, but get an error message that warns about a changed or
incorrect public key, then it is probably just a case of that host changing its public key. (It is
possible, though usually not the case, that malicious hacking is involved.) Unless you actually
suspect hacker involvement, you can edit the file ~/.ssh/known_hosts using your usual text editor
(vi, emacs, nedit, or pico) and delete any line with the name of that host.
Then when you try to ssh that host again, it will be like the first time ever; ssh will ask you if you
want to accept a new public key, you type the whole word yes, and everything will proceed
normally from there.
Here is what a typical ~/.ssh/known_hosts file might contain. Note that newton is represented on
two different lines:
newton 1024 35
153438062610297067329638677441205712613292203533062535600064224677647442245028
855505387934431717435134842994423656065076260604296084868001730665553662299156
116414854701274715680961503198280525759778667306417179500370189017139564144825
610347509023078143132936185076849630461827976942220442313116255293297021841
ucsub 1024 37
132170811640421742212085598383135714069016332111955003414250071326834884018721
183646445780180633494496866895830879394309011412231102757022090299732775466435

"Pass Any Exam. Any Time." - www.TwPass.com

111

Oracle 1z0-821 Exam


482517698989962531081214859205054227533597152962802400251809883548442498002326
460312850336779152617243800769119880843882425555806081435017335194477605333
simpson 1024 41
840896920592494584403453622735282634536002054701576247765078766974814128393752
943151071629834843909016027026612791643752972116459602750267266908365259665072
736159491719667576217171370458928680504368847255632477925660234893185547218857
65548457461907512536847079297627580626353420887972219277539015703446529603
newton,128.138.249.8 ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEA0d7Aoure0toNJ+YMYi61QP2ka8m5x5ZQlT7obP8CK3eropf
qsMPPY6uiyIh9vpiFX2r1LHcbx139+vG6HOtVvuS8+IfMDtawm3WQvRuOopz3vVy5GtMwtaOgehs
XoT930Ryev1bH5myPtWKlipITsOd2sX9k3tvjrmme4KCGGss=
Reference: How to Generate a Public/Private Key Pair for Use With Solaris Secure Shell

QUESTION NO: 137


You have completed configuring a zone named dbzone on your Solaris 11 server. The
configuration is as following:

"Pass Any Exam. Any Time." - www.TwPass.com

112

Oracle 1z0-821 Exam

The global zone displays the following network information:

The zone has never been booted. Which three options correctly describe this zone?

A. It is a sparse root zone. B. It is


a whole root zone.
C. It is an immutable zone. D. It is
a native zone.
E. The zone shares the network interface with the host. F.
The zone uses a virtual network interface. G. The hostid is
the same as the global zone. H. The IP address of the zone
is 10.0.2.18.

"Pass Any Exam. Any Time." - www.TwPass.com

113

Oracle 1z0-821 Exam


Answer: C,E,G
Explanation:
C: Immutable Zones provide read-only file system profiles for solaris non-global zones.
Note that ip-type: exclusive:
Starting with OpenSolaris build 37 and Oracle Solaris 10 8/07, a default zone can be configured as
an "exclusive-IP zone" which gives it exclusive access to the NIC(s) that the zone has been
assigned. Applications in such a zone can communicate directly with the NIC(s) available to the
zone.

Note on zones:
After installing Oracle Solaris on a system, but before creating any zones, all processes run in the
global zone. After you create a zone, it has processes that are associated with that zone and no
other zone. Any process created by a process in a non-global zone is also associated with that
non-global zone.
Any zone which is not the global zone is called a non-global zone. Most people call non-global
zones simply "zones." Some people call them "local zones" but this is discouraged.
The default native zone file system model on Oracle Solaris 10 is called "sparse-root." This model
emphasizes efficiency and security at the cost of some configuration flexibility. Sparse-root zones
optimize physical memory and disk space usage by sharing some directories, like /usr and /lib.
Sparse-root zones have their own private file areas for directories like /etc and /var. Whole-root
zones increase configuration flexibility but increase resource usage. They do not use shared file
systems for /usr, /lib, and a few others.
There is no supported way to convert an existing sparse-root zone to a whole-root zone. Creating a
new zone is required.
Reference: Reference: Zones and Containers FAQ

QUESTION NO: 138


You have been asked to terminate a process that appears to be hung and will not terminate. The
process table is shown below:
root 15163 15156 0 12:51:15 pts/3 0:00 hungscript

"Pass Any Exam. Any Time." - www.TwPass.com

114

Oracle 1z0-821 Exam


What command will terminate the process?

A. kill -9 15163 B. kill -1


15163
C. kill -15 15163
D. kill -2 15163
Answer: A
Explanation: Here we should use SIGTERM to terminate the process.
Note:
When no signal is included in the kill command-line syntax, the default signal that is used is -15
(SIGKILL). Using the -9 signal (SIGTERM) with the kill command ensures that the process
terminates promptly. However, the -9 signal should not be used to kill certain processes, such as a
database process, or an LDAP server process. The result is that data might be lost.
Tip - When using the kill command to stop a process, first try using the command by itself, without
including a signal option. Wait a few minutes to see if the process terminates before using the kill
command with the -9 signal.
Reference: Terminate the process

QUESTION NO: 139


The global zone has 8 CPUS. YOU suspect that one of your non global /ones, dbzone, is
consuming all of the CPU resources. Which command would you use to view the CPU utilization
for all of the zones to confirm this?

A. Run from the global zone:prstat -Z


B. Run from each zonezlogin <zonename> mpstat C.
Run from the global zone:zonestar -r summary
D. Run from the global zone:rctladm -1
E. Run from the global zone:prctl -i
Answer: A
Explanation: If you're logged on to the system, you can run prstat -Z to generate a summary of
cpu/memory utilization by zone.

"Pass Any Exam. Any Time." - www.TwPass.com

115

Oracle 1z0-821 Exam


QUESTION NO: 140
You are executing this command in the default shell:
sleep 5000 &
The system displays a number. This value is______.

A. the priority of the /usr/bin/sleep process


B. the process ID of the /usr/bin/sleep process
C. the process ID of the shell spawned to execute /usr/bin/sleep D.
the process group ID that includes the /usr/bin/sleep process E. the
amount of memory allocated to the /usr/bin/sleep process F. the
current number of instances of the /usr/bin/sleep process
Answer: C
Explanation: If a command is terminated by the control operator '&', the shell executes the
command asynchronously in a subshell. This is known as executing the command in the
background. The shell does not wait for the command to finish, and the return status is 0 (true).

QUESTION NO: 141


You are installing the Solaris 11 Operation System by using the Text Installer. A panel prompts
you to create a root password and a user account. Which four describe your options for
completing this panel of the Installation?

A. Creating a user account is optional.


B. The root password must be set and cannot be blank. C.
The root password can be left blank.
D. If you provide a username, that user is assigned the root role. E. If
you provide a username, that user is given root privileges.
F. If you provide a username, root is an account rather than a role and is set to expire
immediately.
G. If you do not provide a username, root is an account rather than a role and is set to expire
immediately.
Answer: A,B,D,G
Explanation: A:You are not required to create a user account. B:
You must create a root password.
D: If you create a user account in this panel, you need to provide both the user's password and a

"Pass Any Exam. Any Time." - www.TwPass.com

116

Oracle 1z0-821 Exam


root password.
In this case, root will be a role assigned to the user.
G:If you do not create a user account, you still need to provide a root password. In
this case, root will be a regular user.
Reference:Oracle Solaris 11 Information Library,Installing With the Text Installer, Complete the
User panel.

QUESTION NO: 142


Which option would you choose to display the kernel revision level for your operating system?

A. cat. /etc/release
B. uname -a
C. pkg info kernel
D. banner (issued from the OpenBoot Prom)
E. cat /etc/motd
Answer: A
Explanation: Different UNIX-like operating systems store information about their release versions
differently. If you know what OS you have, but not sure about the version, then here's how you can
find out:
bash-2.03$ cat /etc/release
Solaris 8 2/04 s28s_hw4wos_05a SPARC
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Assembled 08 January 2004
Reference: How To: Find Out the Release Version of Your UNIX

QUESTION NO: 143


After installing the OS, the following network configuration information is displayed from the
system:

"Pass Any Exam. Any Time." - www.TwPass.com

117

Oracle 1z0-821 Exam


Which option describes the state of this server?

A. The automatic network configuration option was chosen during the installation of the OS.
B. The manual network configuration option was chosen during the installation of the OS. C.
The network was not configured during the installation of the OS. D. The network interface is
configured with a static IP address.
Answer: C
Explanation: Only the loopback addresses are configured. No IP address is configured.

QUESTION NO: 144


The /etc/hosts file can be best described as______.

A. a local database of host names for rlogin, rsh, and rep


B. the configuration file for the host name of the system
C. a local database of information for the uname command
D. the configuration file for the Domain Name Service (DNS)
E. a local database of host names and their associated IP addresses
Answer: E
Explanation: As your machine gets started, it will need to know the mapping of some hostnames
to IP addresses before DNS can be referenced. This mapping is kept in the /etc/hosts file. In the
absence of a name server, any network program on your system consults this file to determine the
IP address that corresponds to a host name.
Reference: The /etc/hosts file

QUESTION NO: 145


Review the boot environment information displayed on your system:

"Pass Any Exam. Any Time." - www.TwPass.com

118

Oracle 1z0-821 Exam


Which two options accurately describe the newBE boot environment?

A. It cannot be destroyed. B. It
cannot be activated. C. It cannot
be renamed.
D. You can create a snapshot of it. E. It is
activated but unbootable.
F. It has been deleted and will be removed at the next reboot.
Answer: B,C
Explanation: If the boot environment is unbootable, it is marked with an exclamation point (!) in
the Active column in the beadm list output.
The beadm command restricts actions on unbootable boot environments as follows:
You cannot activate an unbootable boot environment. (B)
You cannot destroy a boot environment that is both unbootable and marked as active on reboot.
You cannot create a snapshot of an unbootable boot environment.
You cannot use an unbootable boot environment or boot environment snapshot with the -e option
of beadm create.
You cannot rename an unbootable boot environment. (C)
Reference: Creating and Administering Oracle Solaris 11 Boot Environments, Unbootable Boot
Environments

QUESTION NO: 146


You are attempting to troubleshoot an event that should have made an entry into the messages
log. This event happened about two weeks ago. Which file should you look at first?

A. /var/adm/messages
B. /var/adm/messages.0 C. /var
/adm/messagas.1 D.
/var/adm/messages.2 E.
/var/adm/messages.3

"Pass Any Exam. Any Time." - www.TwPass.com

119

Oracle 1z0-821 Exam


Answer: A
Explanation: The /var/adm/messages is the file to which all the messages printed on the console
are logged to by the Operating System. This helps to track back check the console messages to
troubleshoot any issues on the system.
Syslog daemon also writes to this /var/adm/messages file.
The /var/adm/messages file monitored and managed by newsyslog and its configuration file is
/usr/lib/newsyslog.
This script runs as the roots cron job everyday, checks the /var/adm/messages file and
copies/moves it to /var/adm/messages.0,1,2,3,4,5,6,7. In other words, it does the Log Rotation for
the /var/adm/messages.
In an event the /var file system is running out of space, these files needs to checked and can be
removed (not the actual /var/adm/messages itself) to free up space on the file system.
However, care has to be taken, if you decide to empty the /var/adm/messages itself for any
reason. This process is called Truncation.

References: SOLARIS SYSTEM ADMIN TIPS, /var/adm/messages

QUESTION NO: 147


Review the boot environments displayed on your system:

Which option describes the solaris-1 BE?

A. It is active on the next reboot. B. It


is active now. C. It is inactive.
D. It is unbootable.
E. It is active now and on reboot.
F. It has been removed and will no longer be available after the next reboot.
Answer: E
"Pass Any Exam. Any Time." - www.TwPass.com
120

Oracle 1z0-821 Exam


Explanation: In the below output, NR (now running) means the BE is active now and will be the
active BE on reboot.
Example:
Display your existing BE information.
# beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ ------solaris NR / 12.24G static 2011-10-04 09:42

QUESTION NO: 148


On localSYS, your SPARC based server, you back up the root file system with recursive
snapshots of the root pool. The snapshots are stored on a remote NTS file system.
This information describes the remote system where the snapshots are stored:
Remote system name: backupSYS
File system whore the snapshots are stored: /backups/localSYS
Mounted file system on localSYS: /rpool/snaps
Most recent backup name: rpool-1202
Disk c0t0d0 has failed in your root pool and has been replaced. The disk has already been part<
and labeled and now you need to restore the root file system. Which procedure would you follow
to restore the ZFS root file system on localSYS?
A.
boot cdrom -s
mount -f nfs backup_server:/rpool/snaps /rmt
zpool create rpool c0t0d0s0
cat /mnt/rpool.1202 | zfs receive -Fdu rpool zpool
set bootfs=rpool/ROOT/solaris rpool Recreate
swap and dump devices. Reinstall the bootblock
on c0t0d0. B.
boot cdrom -s
mount -f nfs backup_server:/rpool/snaps /mnt
zpool create rpool c0t0d0s0
zfs create -o mountpoint=/ rpool/ROOT
cat /mnt/rpool.1011 | zfs receive -Fdu rpool zpool
set bootfs=rpool/ROOT/solaris rpool
"Pass Any Exam. Any Time." - www.TwPass.com

121

Oracle 1z0-821 Exam


Recreate swap and dump devices.
Reinstall the bootblock on c0t0d0. C.
boot cdrom -s
mount -F nfs backup_server:/rpool/snaps /mnt
cat /mnt/rpool.1011 | zfs receive -Fdu rpool
zpool set bootfs=rpool/ROOT/solaris rpool c0t0d0s0
Reinstall the bootblock on c0t0d0s0 D.
boot cdrom -s
mount -f nfs backup_server:/rpool/snaps /rmt
zpool create rpool c0t0d0s0
zfs receive -Fdu /mnt/rpool.1011
zpool set bootfs=rpool/ROOT/solaris rpool
Reinstall the bootblock on c0t0d0.
Answer: A
Explanation: How to Recreate a ZFS Root Pool and Restore Root Pool Snapshots
In this scenario, assume the following conditions:
* ZFS root pool cannot be recovered
* ZFS root pool snapshots are stored on a remote system and are shared over NFS
* The system is booted from an equivalent Solaris release to the root pool version so that the
Solaris release and the pool version match. Otherwise, you will need to add the -o
version=version-number property option and value when you recreate the root pool in step 4
below.
All steps below are performed on the local system.
1.
Boot from CD/DVD or the network.
On a SPARC based system, select one of the following boot methods:
ok boot net -s
ok boot cdrom -s
If you don't use -s option, you'll need to exit the installation program.

2.
Mount the remote snapshot dataset.
For example:
# mount -F nfs remote-system:/rpool/snaps /mnt

"Pass Any Exam. Any Time." - www.TwPass.com

122

Oracle 1z0-821 Exam


3.
Recreate the root pool.
For example:
# zpool create -f -o failmode=continue -R /a -m legacy -o cachefile=/etc/zfs/zpool.cache rpool
c1t0d0s0
4.
Restore the root pool snapshots.
This step might take some time. For example:
# cat /mnt/rpool.0311 | zfs receive -Fdu rpool
Using the -u option means that the restored archive is not mounted when the zfs receive operation
completes.
5.
Set the bootfs property on the root pool BE.
For example:
# zpool set bootfs=rpool/ROOT/osolBE rpool
6.
Install the boot blocks on the new disk.
On a SPARC based system:
# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t0d0s0
Reference: How to Recreate a ZFS Root Pool and Restore Root Pool Snapshots, Oracle Solaris
ZFS Administration Guide

QUESTION NO: 149


You have edited /etc/profile to include the lines:
dennis_says=hello
export dennie_says
You have also edited /etc/skel/local.profile to include the line:

"Pass Any Exam. Any Time." - www.TwPass.com

123

Oracle 1z0-821 Exam


dennis_says=world
You now create a new user account brian, and specify use of the bash shell. When brian logs in
and enters
echo $dennis_says
What will he see, and why?

A. world, because the local.profile entry will be executed last


B. hello, because the global /etc/profile entry overrides the local.profile entry C.
hello, because the local.profile entry is not automatically sourced on login
D. hello, because the value specified in local.profile was not exported
E. nothing, because the variable was not exported in local.profile
Answer: A
Explanation: The $HOME/.profile file is an initialization file that is executed after the /etc/profile
when logging in to the Bourne or Korn shell. The file contains user preferences for variable
settings. If the ENV variable is set to .kshrc, the .kshrc file executes every time a new shell begins
execution. The $HOME/.profile is copied from the /etc/skel/local.profile file by the Administration
Tool when creating a new account.
Note: /etc/skel/local.profile
Per-system configuration file for
sh/ksh/ksh93/bash login sessions,
installed for new users

QUESTION NO: 150


You want to install the openldap software package to a now boot environment for testing before
introducing the now software package to the production environment. What option describes the
correct procedure to:

1) create a new BE named nowBE


2) install the software to that new BE only

A. pkg install --newBE openldap


B. pkg install --be-nama newBE openldap
"Pass Any Exam. Any Time." - www.TwPass.com

124

Oracle 1z0-821 Exam


C. beadm create newBEbeadm mount newBE /mntpkg -R /mnt update openldap
D. beadm create newBEbeadm activate newBEpkg install openldap
Answer: D
Explanation: If you want to create a backup of an existing boot environment, for example, prior to
modifying the original boot environment, you can use the beadm command to create and mount a
new bootenvironment that is a clone of your active boot environment. This clone is listed as an
alternate boot environment in the GRUB menu for x86 systems or in the boot menu for SPARC
systems.
When you clone a boot environment by using the beadm create command, all supported zones in
that boot environment are copied into the new boot environment.
How to Create a Boot Environment
1. Become the root role.
2. Create the boot environment.
# beadm create BeName
BeName is a variable for the name of the new boot environment. This new boot environment is
inactive.
3. (Optional) Use the beadm mount command to mount the new boot environment.
# beadm mount BeName mount-point
Note: If the directory for the mount point does not exist, the beadm utility creates the directory,
then mounts the boot environment on that directory.
If the boot environment is already mounted, the beadm mount command fails and does not
remount the boot environment at the newly specified location.
4. (Optional) Activate the boot environment.
# beadm activate BeName
BeName is a variable for the name of the boot environment to be activated.
On reboot, the newly active boot environment is displayed as the default selection in the x86
GRUB menu or the SPARC boot menu.

Reference: Creating and Administering Oracle Solaris 11 Boot Environments, Creating a Boot
Environment

"Pass Any Exam. Any Time." - www.TwPass.com

125

Oracle 1z0-821 Exam


QUESTION NO: 151
You arc Installing the Oracle Solaris 11 Operating System by using the Text Installer. Which three
options describe the features associated with the Text Installer?

A. It can be used to install only SPARC systems.


B. It installs gnome as the default user environment on a system capable of displaying a
environment.
C. You can choose whether root is a role or user account. D.
You can configure the network manually.
E. You can do both automatic and manual configuration of the network. F.
You can select how to configure the remaining network interfaces.
Answer: C,D,E
Explanation: C: You are not required to create a user account. But, you must create a root
password.
If you create a user account in this panel, you need to provide both the user's password and a root
password.
In this case, root will be a role assigned to the user.
To create a user account, type a username and password. The name must begin with a letter and
can contain only letters and numbers.
If you do not create a user account, you still need to provide a root password.
In this case, root will be a regular user.

Networking Configuration With Text Installer


The networking panel in the text installer provide users with the following options.
Automatically - Configures target system with automatic NCP, similar to the LiveCD installer's
method.
Manually - Selects "DefaultFixed" NCP and provides for static IPv4 configuration of one network
interface (NIC). IPv4 default route and IPv6 autoconfiguration are enabled for that chosen NIC.
This option also provides for manual configuration of DNS, NIS and LDAP naming services.
None - Selects "DefaultFixed" NCP and configures loopback interfaces only.
Reference: Installing Oracle Solaris 11 Systems, How to Perform a Text Installation

"Pass Any Exam. Any Time." - www.TwPass.com

126

Oracle 1z0-821 Exam

QUESTION NO: 152


The interface net3 should be operating, but is not.
Command:
ipadm show-addr | grep net3
Response:
net3/v4 static down 192.168.0.200/24
Which command should you enter next?

A. ipadm create-ip B.
ipadm enable-if
C. ipadm show-if D.
ipadm up-addr
Answer: B
Explanation: enable-if -t interface
Enables the given interface by reading the configuration from the persistent store. All the
persistent interface properties, if any, are applied and all the persistent addresses, if any, on the
given interface will be enabled.
-t, --temporary
Specifies that the enable is temporary and changes apply only to the active configuration.

QUESTION NO: 153


When issuing the zonestat 2 1h is command, the following information is displayed:

"Pass Any Exam. Any Time." - www.TwPass.com

127

Oracle 1z0-821 Exam


Which two options accurately describe the statistics contained in the output?

A. dbzone is using 0.21% of the total CPU resource available in the zone's processor set.
B. dbzone is using 0.21% of the global zone's total CPU.
C. dbzone is using 5.48% of the total physical memory that has been allocated to the zone.
D. dbzone is using 2.37% of the global zone's total virtual memory.
E. The network is being utilized 100% with no physical bandwidth remaining.
Answer: A,C
Explanation: A: %PART
The amount of cpu used as a percentage of the total cpu in a processor-set to which the zone is
bound. A zone can only have processes bound to multiple processor sets if it is the global zone, or
if psrset(1m) psets are used. If multiple binding are found for a zone, it's %PART is the fraction
used of all bound psets. For [total] and [system], %PART is the percent used of all cpus on the
system.
Note: The zonestat utility reports on the cpu, memory, and resource control utilization of the
currently running zones. Each zone's utilization is reported both as a percentage of system
resources and the zone's configured limits.
The zonestat utility prints a series of interval reports at the specified interval. It optionally also
prints one or more summary reports at a specified interval.
Reference: man zonestat

QUESTION NO: 154


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_____.

A. take up large amounts of disk space


B. make numerous entries into the /var/adm/wtmpx file
C. steal resources from the processor, slowing down system performance
D. fill up swap space; this will begin to slow the system due to swaps E.
fill up swap space; this will begin to slow the system due to paging
Answer: A
Explanation: Part of the job of cleaning up heavily loaded file systems involves locating and
"Pass Any Exam. Any Time." - www.TwPass.com

128

Oracle 1z0-821 Exam


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 byexamining
the core files in a specific directory whenever a process or daemon terminates abnormally.
Reference: Oracle Solaris Administration: Common Tasks, Finding and Removing Old or Inactive
Files

QUESTION NO: 155


The line
set noexec_user_stack= l
should be added to the /etc/system file to prevent an executable stack while executing user
programs. What is the purpose of this?

A. help prevent core dumps on program errors


B. help programs to execute more quickly by keeping to their own memory space
C. log any messages into the stack log
D. help make buffer-overflow attacks more difficult
Answer: D
Explanation: How to Disable Programs From Using Executable Stacks
Purpose: Prevent executable stack from overflowing. You must be in the
root role.
Edit the /etc/system file, and add the following line:
set noexec_user_stack=1 Reboot
the system.
# reboot
Reference: How to Disable Programs From Using Executable Stacks
"Pass Any Exam. Any Time." - www.TwPass.com

129

Oracle 1z0-821 Exam

QUESTION NO: 156


User jack makes use of the bash shell; his home directory is/export/home/jack.
What is the correct setting of umask, and where should it be set, to allow jack to create a shell
script using the vi editor, that is executable by default?

A. It is not possible to make a script executable without using the chmod command.
B. umask value of 0002 set in /etc/profile
C. umask value of 0002 set in /export/home/jack/.bashrc
D. umask value of 0722 set in /etc/profile
E. umask value of 0722 set In /export/home/jack/.bashrc
Answer: B
Explanation: The user file-creation mode mask (umask) is use to determine the file permission for
newly created files. It can be used to control the default file permission for new files. It is a fourdigit octal number.
You can setup umask in /etc/bashrc or /etc/profile file for all users. By default most Unix distro set it
to 0022 (022) or 0002 (002).
In short,

"Pass Any Exam. Any Time." - www.TwPass.com

130

Anda mungkin juga menyukai