10 exam-style questions with answers and explanations, straight from our 1,030-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.
A nightly report must append both normal output and diagnostics to an existing log. This Bourne-shell command appends normal output, but diagnostics still appear on the terminal:
report 2>&1 >> /var/adm/nightly.log
Both streams initially point to the terminal, and the report program does not redirect them itself. All file operations succeed. Which replacement captures both streams without discarding earlier log entries?
Show answer & explanation
Correct answer: D - report >> /var/adm/nightly.log 2>&1
Question 2
An OpenServer Release 5 client mounts an NFS export read/write and can read its public files. User lchen cannot read one private file. The server shows:
-rw------- 1 604 70 8192 analysis.txt
The server's lchen account has UID 604; the client's lchen session has UID 731 and GID 70. NFS uses numeric UNIX credentials without translating this non-root user's identity. Parent directories are searchable, and no ACLs apply. What explains the denied read?
Show answer & explanation
Correct answer: B - The client supplies a UID that does not match the file owner.
Question 3
A UnixWare 7 secondary DNS server holds zone serial 316, while its primary serves serial 317. The secondary can query the primary over UDP, and the primary permits this secondary to request AXFR transfers. After a firewall change, AXFR attempts cannot establish a connection, although the primary is listening on both TCP and UDP port 53. The stateful firewall permits replies to allowed traffic. Which additional rule addresses the missing transfer path?
Show answer & explanation
Correct answer: B - Allow TCP connections from the secondary to port 53 on the primary.
Question 4
A failed data filesystem will be restored onto an empty replacement volume. Its verified backup catalog contains:
F: Sunday full backup
D1: Monday differential, containing changes since F
D2: Tuesday differential, containing changes since F
I3: Wednesday incremental, containing changes since D2
Some files last changed on Tuesday and were not changed again on Wednesday. The required recovery point is Wednesday's backup. With no other recovery data available, which sequence uses the fewest backup sets while reconstructing that point?
Show answer & explanation
Correct answer: D - F -> D2 -> I3
Question 5
A Bourne-shell verification script is invoked as:
sh check-files.sh '/data/May report' '/data/June report'
Both files exist. IFS contains space, tab, and newline. Each file must be passed to /usr/local/bin/verify in a separate invocation, with its full pathname as one argument. Choose the loop that preserves those requirements.
Show answer & explanation
Correct answer: A - for file in "$@"; do /usr/local/bin/verify "$file"; done
Question 6
An engineer is allocating one conventional IPv4 broadcast subnet for an OpenServer Release 5 terminal network. The address plan includes 48 terminals, 6 network printers, 1 router interface, and 12 additional host addresses reserved for expansion. The available address block is 172.20.8.0/24. Which mask creates the smallest subnet that accommodates the complete plan?
Show answer & explanation
Correct answer: C - 255.255.255.128 (/25)
Question 7
A Bourne-shell job has created export.1 and export.2 in a private directory. It runs the following commands; both files remain present until normal exit, and the cleanup command has permission to remove either:
work=/home/ops/tmp/export.1
trap "rm -f '$work'" 0
work=/home/ops/tmp/export.2
exit 0
What does the exit trap remove, and why?
Show answer & explanation
Correct answer: C - Only export.1, because work expands when the trap is installed.
Question 8
A Windows user authenticates to a UnixWare 7 VisionFS share and can open existing documents but cannot create a new file. The share permits read/write access. Its backing directory is owned by root:design and has mode 0750; the mapped non-root UNIX account belongs to design. The filesystem is writable, all parent directories are searchable, and no ACLs apply. Existing documents are readable by design. Which change enables file creation while preserving the existing owner, group, and exclusion of other users?
Show answer & explanation
Correct answer: D - Add group write permission to the backing directory.
Question 9
From a UnixWare 7 client, FTP login and PWD succeed, but LIST times out. A packet capture shows the server trying to open a data connection from TCP port 20 to the client's advertised port; the client firewall rejects it. Policy permits client-initiated connections to the FTP server, including its passive data-port range, but prohibits new inbound connections. How can transfers proceed without changing that policy?
Show answer & explanation
Correct answer: A - Use passive mode so the client initiates the data connection.
Question 10
An inventory job in a traditional Bourne shell runs:
collect_inventory | sort > /var/tmp/inventory.txt
rc=$?
The collector writes some records, then fails with status 2. The sort command successfully sorts what it received and returns 0. The job marks the inventory complete whenever rc is zero. Which revision prevents this partial inventory from being accepted merely because sorting succeeded?
Show answer & explanation
Correct answer: A - Save the collection in a private temporary file; sort it only after collection succeeds.
That's 10 of 1,030
The full bank has 1,020 more ACE-ENGINEER questions with explanations.