1Z0-821 | Down to date Oracle 1Z0-821 exam dumps


Q31. - (Topic 1) 

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:

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. 

Q32. - (Topic 1) 

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:

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. 

Q33. - (Topic 2) 

The ZFS configuration on your server is: 

Pool1 6.67G31K/pool 

Pool1/data31K31K/data 

Select the three commands that you would use to 1. Create,2. List,and 3. Delete a snapshot of the /data file system. 

A. zfs snapshot pool1/data@now 

B. zfs create snapshot pool1/data@now 

C. zfs list -t snapshot 

D. zfs list -t snapshot pool1/data 

E. zfs destroy pool1/data@now 

F. zfs destroy snapshot pool1/data@now 

Answer: A,D,E 

Explanation: 

A: Snapshots are created by using the zfs snapshot command,which takes as its only argument the name of the snapshot to create. 

D: You can list snapshots as follows: # zfs list -t snapshot 

E: Snapshots are destroyed by using the zfs destroy command. For example: 

# zfs destroy tank/home/ahrens@now 

Q34. - (Topic 2) 

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

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:

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. 

Q35. - (Topic 1) 

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:

Explanation: 

The prtconf command prints the system configuration informa-tion. 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. 

Q36. - (Topic 1) 

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:

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. 

Q37. - (Topic 2) 

You are creating a non-global zone on your system. 

Which option assigns a zpool to a non-global zone,and gives the zone administrator permission to create zfs file system in that zpool? 

A. While creating the non-global zone,make the following entry: add deviceset match=/dev/rdsk/c4t0d0endBoot the zone and log in the zone as root. Create the zpool: zpool create pool2 c4t0d0In the non-global zone,root can now create ZFS file system in the pool2 zpool 

B. In the global zone,create the zpool: global# zpool create pool2 c4t1d0While creating the no-global zone,make the following entry: add datasetset name=pool2endadd fsset dir=pool1set special=pool1settype=zfspool1endBoot the zone,log in the zone as root,and create the zfs file system in the pool2 zpool. 

C. In the global zone,create the zpool:global#zpool create pool2 c4t1d0While creating the global zone,make the following entry: add datasetset name=pool2endBoot the zone,log in to the zone as root and create the zfs file systems in the pool2 zpool. 

D. In the global zone,create the zpool and the ZFS file systems that you want to use in the non-global zone: global#zpool create pool2 c4t1d0global#zfs create pool2/dataWhile creating the non-global zone,make the following entry for each ZFS file system that you want to make available in the zone: add fsset dir=/dataset special=pool2/dataset type=zfsend 

E. Create the zpool in the global zone: global#zpool create pool2 c4t1d0Boot the non-global zone,log in to the zone as root,and issue this command to delegate ZFS permissions to root: non-global zone# zfs allow root create,destroy,mount pool2Log in to the non-global zone create ZFS file systems in the pool2 zpool. 

Answer:

Explanation: 

You can add a ZFS file system to a non-global zone by using the zonecfg command's add fs subcommand. 

In the following example,a ZFS file system is added to a non-global zone by a global zone administrator from the global zone: 

# zonecfg -z zion zonecfg:zion> add fs zonecfg:zion:fs> set type=zfs zonecfg:zion:fs> set special=tank/zone/zion zonecfg:zion:fs> set dir=/export/shared zonecfg:zion:fs> end 

Q38. - (Topic 2) 

The core dump configuration in your non global zone is 

A user is running a process in a non-global zone (testzone) and the process crashes. The process information is: user126632618017:46:42pts/20:00/usr/bin/bash When the user's process crashes in testzone,a non-global zone,where will the core dump be saved? 

A. The file will be stored in the non-global zone's directory: /var/core/pprocess/core.hash.2663. 

B. The file will be saved in the global zone's directory: /var/core/core.bash.2663. 

C. A core file cannot be generated in a non-global zone because it shares the kernel with the global zone. 

D. The file will be stored in the global zone's directory: /var/core/pprocess/core.bash.2663. 

E. The file will be saved in non-global zone’s directory: /var/core/core.bash.2663 

Answer:

Explanation: 

The line init core file pattern: /var/core/core.%f.%p will be used for the non-global process to determine the destination of the dump file. 

Note: When a process is dumping core,up to three core files can be produced: one in the per-process location,one in the system-wide global location,and,if the process was running in a local (non-global) zone,one in the global location for the zone in which that process was running. 

Q39. - (Topic 1) 

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. 

Q40. - (Topic 2) 

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