Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Arista Linux Essentials ACE-P-ALE1.04 Exam Questions

Last updated: · 13 practice questions with answers and explanations

Page: 1 / 10 Total 100 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Linux Fundamentals

Skill tested: Selects file permissions that grant access to a group without exposing a file to others.

A Linux host collects diagnostic bundles containing customer identifiers. The collection process runs under the account `collector`, and a small on-call group must be able to read the completed bundle. Other local users must not have access. The file is created as `/var/tmp/incident.tar`; its owner is `collector` and its group is `ops`. Assume the group membership is already correct and the file is not accessed through a directory that grants broader permissions. Which permission setting best meets the requirement while preserving owner write access?

Correct Answer: B. Set the mode to 0640.
Explanation:

Mode 0640 grants the owner read and write access, the group read access, and no permissions to others. This lets `collector` update the bundle while members of `ops` can inspect it without exposing it to unrelated local accounts. Mode 0644 allows all users to read it; 0600 prevents the group from reading it; and 0664 grants other users read access as well as granting the group write access.

Question 2

New Multiple answers

Topic: Linux Fundamentals

Skill tested: Uses file discovery and archive commands to preserve a selected directory subtree.

An administrator must archive all regular files under `/srv/reports` that were modified in the last seven days. The archive must retain paths relative to `/srv`, so that restoring it recreates the `reports` directory rather than placing every file directly at the archive root. The source tree also contains directories and symbolic links, but neither should be included as archive members. Which two command approaches meet these requirements? Select TWO. Assume GNU find and tar are available.

Correct Answer: D. Run `find /srv/reports -type f -mtime -7 -print0 | tar --null -T - -czf recent.tar.gz -C /srv`.; E. Run `find /srv/reports -type f -mtime -7 -print0 | tar --null -T - -czf recent.tar.gz` from `/srv`.
Explanation:

Both A and B use `find` with `-type f` to select regular files only, and `-mtime -7` to select files whose modification time is less than seven 24-hour periods ago. NUL-delimited names avoid failures with spaces or unusual characters. Since the listed paths begin with `/srv/reports`, GNU tar removes leading slashes when storing absolute paths, retaining the `srv/reports` hierarchy; using `-C /srv` with those absolute input names does not make them relative. C archives the entire tree without the date filter, D retains the `/srv` hierarchy under a different path context, and E includes directories and symbolic links.

Question 3

New Single answer

Topic: Linux Fundamentals

Skill tested: Uses process inspection and signals to terminate a process gracefully before escalation.

A maintenance script is consuming CPU and appears stuck while waiting on an external operation. The service owner asks you to stop only that script, allow it to perform its normal shutdown handling, and avoid disrupting unrelated processes. You have identified its PID from `ps`; no service manager controls the script, and there is no evidence that it is blocked in an uninterruptible kernel state. What should you do first?

Correct Answer: D. Run `kill -TERM PID`, then check whether it exits before considering escalation.
Explanation:

`kill` sends SIGTERM by default, and explicitly specifying `-TERM` communicates the intended graceful shutdown. The process can handle the signal, release resources, and exit; verify its state before escalating to SIGKILL if it remains alive. SIGKILL in A prevents cleanup, `killall` may affect other matching processes, and changing scheduling priority with `nice` does not terminate an already-running process.

Question 4

New Single answer

Topic: Linux Fundamentals

Skill tested: Installs a requested package using the configured distribution package manager.

A Linux operations team needs the `rsync` utility on a maintenance host. The host is managed through a distribution package manager with configured repositories, and administrators must use that manager so package dependencies and its database remain consistent. You have a root shell, the repositories are reachable, and the team does not want a manually downloaded binary or a source build. Which action is most appropriate?

Correct Answer: D. Use the host's package manager to install the `rsync` package from a configured repository.
Explanation:

Installing the package through the configured package manager records the package in its database and resolves declared dependencies using the host's repository configuration. That is the required managed installation path. Copying a binary or extracting files bypasses package tracking and may omit dependencies or conflict with later updates; compiling into `/usr/local` also violates the requirement to use the distribution-managed package.

Question 5

New Single answer

Topic: Linux Fundamentals

Skill tested: Chooses shell redirection that appends output without replacing an existing log.

A scheduled shell script runs a health check each hour. Its standard output must be added to `/var/log/health-check.log` so that the history is retained, while standard error must be written to the same log for later diagnosis. The script runs with permission to write the file, and the log already contains earlier results. Which redirection appends both streams without discarding existing content?

Correct Answer: D. `health-check >> /var/log/health-check.log 2>&1`
Explanation:

In C, `>>` opens the log in append mode for standard output, and the subsequent `2>&1` sends standard error to the same destination as standard output. The order matters: redirections are processed from left to right. A truncates the existing log. In B, standard error is first tied to the old standard-output destination before standard output is redirected. D opens the same file separately for the two streams, which can lead to overwrites or interleaved output rather than reliably sharing one append destination.

Question 6

New Single answer

Topic: Networking Fundamentals

Skill tested: Determines subnet membership and selects an appropriate IPv4 prefix for host addressing.

A site is allocating a subnet for a server segment that needs at least 50 usable IPv4 host addresses. The network team has been assigned `192.168.40.0/26`, and all server addresses must come from that block. A proposed server address is `192.168.40.63`. The team wants the largest possible subnet mask that still meets the host requirement and wants to avoid assigning a network or broadcast address to a server. Which conclusion is correct?

Correct Answer: B. Use `/26`; it provides 62 usable addresses, but `.63` is the broadcast address and cannot be assigned.
Explanation:

A `/26` contains 64 addresses, of which 62 are conventionally usable for hosts after reserving the network and broadcast addresses. It therefore meets the requirement and is more specific than a `/25`. For `192.168.40.0/26`, `.0` is the network address and `.63` is the broadcast address, so the proposed server address is invalid. A overlooks that reservation, while `/27` provides only 30 usable addresses; `/25` is unnecessarily large and its network address is `.0`, not `.63`.

Question 7

New Multiple answers

Topic: Networking Fundamentals

Skill tested: Diagnoses local-versus-remote connectivity using interface, route, and reachability checks.

A Linux application server can reach other hosts on its local subnet but cannot reach a remote service. The network team has not yet confirmed whether the fault is local configuration or upstream routing. You have shell access, and the application itself is not required for the initial diagnosis. Which two checks most directly establish whether the host has a usable interface configuration and a route toward the remote destination? Select TWO.

Correct Answer: C. Inspect the routing decision with `ip route get `.; E. Inspect addresses and link state with `ip addr show`.
Explanation:

`ip addr show` reveals whether the relevant interface is up and has the expected address and prefix. `ip route get ` asks the kernel which route and outgoing interface it would use for that specific destination, helping identify a missing or incorrect route. Process, filesystem, and local-account checks do not establish basic interface addressing or the routing decision. These checks narrow the fault domain; they do not alone prove that an upstream device or the remote service is functioning.

Question 8

New Single answer

Topic: Networking Fundamentals

Skill tested: Selects a default gateway that lies within the host's directly connected subnet.

A Linux workstation is configured with address `10.24.8.37/24`. It must send traffic to networks outside `10.24.8.0/24` through the site's router. The network administrator confirms that the router interface on this LAN is `10.24.8.1`; no other gateway is available, and the workstation should retain its current host address and prefix. Which default-route configuration is appropriate?

Correct Answer: D. Add a default route via `10.24.8.1` on the LAN interface.
Explanation:

With a `/24` prefix, the workstation's directly connected network is `10.24.8.0/24`; `10.24.8.1` is a valid on-link router address and can serve as the next hop for a default route. The gateway in A is outside the connected subnet, and `.0` in C is the network address rather than the router. D describes a route to the local subnet, which is already directly connected, and provides no path to other networks.

Question 9

New Single answer

Topic: Networking Fundamentals

Skill tested: Uses TCP connectivity checks to distinguish transport reachability from name resolution.

A Linux service is reported as unavailable by clients using its DNS name. You can log in to a client on the same network and know the service's IP address and listening TCP port. The goal is to determine whether a TCP connection can reach that address and port, without treating a successful DNS lookup as proof of service availability. Which initial check most directly answers that question?

Correct Answer: C. Use a TCP-capable connectivity tool such as `nc -vz ` against the known address and port.
Explanation:

A TCP connection attempt to the known IP and port directly checks transport-layer reachability to that endpoint, separating the test from DNS resolution. A successful `nc` connection does not prove the application is healthy, but it answers the stated connectivity question. Ping tests ICMP rather than the service's TCP port, name lookup only tests resolution, and the presence of a default route does not establish that the destination or port is reachable.

Question 10

New Single answer

Topic: System Administration

Skill tested: Uses system logs to identify the time and cause of a failed service startup.

A production daemon failed shortly after a maintenance window, but the host is still running and other services remain available. The team needs to establish the failure time and inspect the system's recorded messages before changing configuration or restarting the daemon. The machine uses systemd and its journal is available. Which action is the best first step?

Correct Answer: B. Review the journal for the affected unit and relevant time range using `journalctl -u ` with appropriate time filters.
Explanation:

The systemd journal can show messages associated with a specific unit and time range, allowing the administrator to correlate the startup failure with maintenance and identify errors before making changes. This preserves evidence and targets the investigation. Editing configuration without diagnosis risks introducing another fault; rebooting is disruptive and can erase useful transient context; deleting logs destroys evidence rather than clarifying it.

Question 11

New Multiple answers

Topic: System Administration

Skill tested: Combines CPU and memory observations to diagnose resource pressure before remediation.

Users report intermittent delays on a Linux application host. The host remains responsive, and you must collect evidence before changing workload limits or restarting services. You want a live view of CPU and process activity plus a separate check for memory and swap pressure; a single snapshot is not sufficient to rule out transient contention. Which two approaches best meet the requirement? Select TWO.

Correct Answer: A. Run `free -h` repeatedly over time to observe memory and swap utilization.; B. Run `top` or `htop` interactively to observe changing CPU use and process activity.
Explanation:

An interactive process monitor such as `top` or `htop` provides a changing view of CPU utilization and process-level activity. Repeating `free -h` allows comparison of memory and swap usage over time rather than relying on one moment. Kernel version and logged-in user count do not identify resource pressure. Disk capacity from `df` is useful for a separate storage-capacity problem, but it is not a measure of CPU or memory contention.

Question 12

New Single answer

Topic: System Administration

Skill tested: Chooses an orderly shutdown method that allows services and filesystems to stop cleanly.

A Linux server must be powered off for scheduled hardware work. It is accessible through a remote administrative session, the operating system is responsive, and there is no emergency requiring an immediate power cut. Services should receive an orderly opportunity to stop and filesystems should be cleanly unmounted. Which action is most appropriate?

Correct Answer: A. Use the system's normal shutdown procedure, such as `shutdown -h now` with administrative privileges.
Explanation:

A normal shutdown command requests an orderly system halt: services can stop, pending writes can be flushed, and filesystems can be unmounted. That best fits a planned maintenance window on a responsive host. Killing PID 1 is not a valid orderly shutdown method, while removing power risks data or filesystem damage. Rebooting is unnecessary and disconnecting power during startup creates the same risks.

Question 13

New Single answer

Topic: System Administration

Skill tested: Applies least-privilege permissions to protect a system configuration file.

A Linux server's SSH daemon reads `/etc/ssh/sshd_config`. A security review finds that the file is readable and writable by a broad operations group, although only root should be able to modify it. The service must continue to read the file, and administrators can use privilege escalation for changes. Which permission approach best reduces unauthorized modification while keeping normal service operation possible?

Correct Answer: C. Restrict write access to root and retain read access needed by the daemon, for example with ownership `root:root` and mode `0644`.
Explanation:

A root-owned configuration file with mode 0644 permits root to modify it while allowing the daemon and other processes to read it. Administrators can make controlled changes through privilege escalation, matching least privilege. Making the file world-writable expands the attack surface; removing read permissions can prevent the daemon from loading its configuration; and granting write access to a service account or all users does not enforce the stated root-only modification policy.