Arista Linux Essentials Exam Practice Questions
Prepare for ACE-P-ALE1.04 with more than an answer.
- Exam fee
- $295 USD
- Level
- Professional
- Valid for
- 3 years
Domains covered on the exam 5
- Linux Command Line Interface20%
- File System Management20%
- Bash Scripting25%
- System Monitoring and Log Analysis20%
- Networking and Arista Integration15%
- 1
The cd into a directory, you need what kind of permission?
Show answer details
Correct answer: C
- 2
In bash scripting, which of the following comparison operators are used on strings?
Show answer details
Correct answer: C
C
- 3
A system administrator needs to create a maintenance script for an Arista switch. The script must archive any log file in
/mnt/flash/log/that ends with.log, is older than 7 days, and is larger than 1 megabyte. The archiving process involves compressing the file withgzipand appending a.gzextension. Which of the following command pipelines correctly and efficiently performs this task? (Select TWO).flowchart TD Start([Start]) --> FindFiles{Find files in /mnt/flash/log/: - name ends in .log - older than 7 days - larger than 1MB} FindFiles -->|For Each File| Gzip[Compress with gzip] Gzip --> End([End])Show answer details
Correct answer: A, C
This is a correct and common solution.
-execruns thegzipcommand for each file found. The{}is replaced by the filename, and\;terminates the command. While correct, it can be inefficient as it forks a newgzipprocess for every single file.This is a more robust and efficient solution. The
-print0option infindseparates filenames with a null character, andxargs -0reads null-separated input. This correctly handles filenames that contain spaces or other special characters.xargsalso batches multiple filenames into a singlegzipcommand, making it more efficient than-execfor a large number of files. - 4
When using the sudo command to run something as root, which password is required?
Show answer details
Correct answer: D
D
- 5
What does the dime of a file indicate?
Show answer details
Correct answer: B
- 6
Who invented NFS?
Show answer details
Correct answer: D
Reference: https://en.wikipedia.org/wiki/Network File System
