1Z0-100 Demo and Sample
Note: Answers are below each question.
Samples are taken from full version.
A web server on HOST01 is listening on port 80. Examine the IPTABLES rule shown:
[root@host01 ~] # iptables –L INPUT Chain INPUT (policy ACCEPT) targetportoptsourcedestination
ACCEPTtcp- - anywhereanywheretcp dpt:http Another rule is then added:
[root@host01 ~] # iptables –A INPUT –P tcp - - dport 80 –j REJECT
What is the effect of this command on subsequent attempts to access the web server on HOST01 using port 80?
New connection attempts timeout.
New connection attempts are refused and the client informed of the refusal.
New connection attempts always succeed.
New connection attempts succeed until a reload of the firewall rules.
Which three actions may be performed using the date command in Oracle Linux?
Setting the hardware clock from the current system time
Setting the system time from the hardware clock
Displaying the current time in an administrator-specified format
Displaying the time and date in the future
Displaying the time and date in the past
Synchronizing the system time from an ntp server
Answer: B, C, F
Match the following symbolic notations of the file permissions with their numeric values:
- - - - S - - - - - - a) 5000
- - - - - - - S - - - b) 4100
- - - - - - - - - - - tc) 7101
- - - - S - - - - - Td) 1001
- - - - S - - S - - te) 7040
- S - - S r - - - Tf) 2010
A. 1-d, 2-f, 3-b, 4-e, 5-c, 6-a
B. 1-b, 2-f, 3-d, 4-a, 5-c, 6-e
C. 1-f, 2-a, 3-c, 4-b, 5-e, 6-d
D. 1-b, 2-d, 3-f, 4-a, 5-e, 6-c
The dailyrun.sh shell script run by the user hr on a daily basis suddenly returns an error.
You investigate this by running the commands manually as user hr and discovered that this line of shell cod is responsible:
1s –als > /home/prodrun/files.1st
Bash: files.1st:cannot overwrite existing file What is the cause of this error?
The hr user has no write permissions on the /home/prodrun/files.1st file.
The hr user has no write permissions on the /home/prodrun directory.
The dailyrun.sh shell script has the setuid bit turned off.
The hr user environment has set on the noclobber option.
Examine the output shown:
[root@FAROUT fs] # rpm –qa | grep preinstall
[root@FAROUT fs] # rpm –q1 oracle-rdbms-server-11gR2-preinstall-1.0- 6.e16.x86_64
/etc/rc.d/init.d/oracle-rdbms-server-11gR2-preinstall-firstboot /etc/sysconfig/Oracle- rdbms-server-
Which three statements are true about oracle-rdbms-server-11gR2-preinstall-1.0- 6.e16.x86_64 rpm?
It is a new name for oracle-validated package from Oracle Linux 5 that sets parameters to the same values.
It creates the oracle user if not already created, which owns the Grid Infrastructure software should that get installed.
It creates the grid user if not already created which owns the grid infrastructure software should that get installed.
It modifies kernel parameters in /etc/sysctl.conf.
It runs at the first boot after installing the packages to set a parameter indicating that is has run once.
It modifies parameters in the /etc/sysconfig/network-scripts directly.
It creates the osoper group, if not already created.
Answer: C, E, F
You installed the sendmail-cf package using the yum command as shown:
# yum –Y install sendmail-cf Loaded plugins: security Setting up Install Process Resolving Dependencies
-> Running Transaction Check
- - > Package sendmail-cf.noarch 0:8.14.4-8.e16 will be installed
- > Processing Dependency: sendmail = 7.14.4-8.e16 for package: sendmail-cf- 8.14.4-8.e16.noarch
- > Running transaction check
- > Package sendmail.x86_64 0:8.14.4-8.e16 will be installed
- > Finished Dependency Resolution Dependency Resolved
What is the outcome of the YUM command?
# yun –y remove sendmail
It fails with an error because the sendmail-cf package depends on the package being removed.
It succeeds and removes both the sendmail and sendmail-cf packages.
It succeeds and only removes the sendmail package.
It removes the sendmail packages and raises a warning about the sendmail-cf package, which depends on the package being removed.
It removes the sendmail package and prompts you for the option to remove the sendmail-cf package.
The user smith, whose primary group is smith, wants to create a file in his home directory, which belongs to the group apps. Which two statements are correct?
SGID should be set on smith's home directory to let smith create files that belong to a group that is not his primary group.
The user smith can create a file that belongs to the apps group, only If his private group is the apps group as per /etc/group.
The user smith can use the newgrp command to change the primary group to apps, only if smith is listed in /etc/group as a member of the apps group.
The user smith can use the newgrp command to change the primary group to apps, but a password is required if smith is not listed in /etc/group as a member of the apps group.
Answer: C, D
Which three are valid directories for cron jobs to be run at known intervals?
Answer: A, B, D
An alternative to editing the crontab is to place executable scripts into one of the following directories. The script will be run at the appropriate interval.
This is actually using anacron, rather than cron, but it achieves a similar goal. Reference: www.oracle-base.com/articles/linux/cron-on-linux.php
Read more Details »