Skip to content

Arista Linux Essentials Exam Practice Questions

Prepare for ACE-P-ALE1.04 with more than an answer.

126 questions in the full set12 sample questionsUpdated Sep 16, 2021
Exam fee
$295 USD
Level
Professional
Valid for
3 years
Domains covered on the exam 5
  1. Linux Command Line Interface20%
  2. File System Management20%
  3. Bash Scripting25%
  4. System Monitoring and Log Analysis20%
  5. Networking and Arista Integration15%
  1. 1

    The cd into a directory, you need what kind of permission?

    Show answer details
  2. 2

    In bash scripting, which of the following comparison operators are used on strings?

    Show answer details

    Correct answer: C

    C

  3. 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 with gzip and appending a .gz extension. 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. -exec runs the gzip command for each file found. The {} is replaced by the filename, and \; terminates the command. While correct, it can be inefficient as it forks a new gzip process for every single file.

    This is a more robust and efficient solution. The -print0 option in find separates filenames with a null character, and xargs -0 reads null-separated input. This correctly handles filenames that contain spaces or other special characters. xargs also batches multiple filenames into a single gzip command, making it more efficient than -exec for a large number of files.

  4. 4

    When using the sudo command to run something as root, which password is required?

    Show answer details

    Correct answer: D

    D

  5. 5

    What does the dime of a file indicate?

    Show answer details
  6. 6

    Who invented NFS?

    Show answer details

    Correct answer: D

Create an account to continue.