Red Hat Certified Specialist EX342 PDF Dumps
0 likes | 1 Vues
Easily download the Red Hat Certified Specialist EX342 PDF Dumps from Passcert to keep your study materials accessible anytime, anywhere. This PDF includes the latest and most accurate exam questions and answers verified by experts to help you prepare confidently and pass your exam on your first try.
Red Hat Certified Specialist EX342 PDF Dumps
E N D
Presentation Transcript
Download Valid RedHat EX342 Exam Dumps for Best Preparation Exam : EX342 Title : Red Hat Certified Specialist in Linux Diagnostics and Troubleshooting exam https://www.passcert.com/EX342.html 1 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation 1.You are asked to troubleshoot a hardware-related issue on a RHEL server. As part of the initial diagnosis, you need to collect detailed hardware information including CPU, memory, motherboard, and BIOS version. What commands will you use and how? A. See the Explanation. Answer: A Explanation: Open a terminal and gain root access: sudo -i Run lshw to list hardware: lshw -short (install with yum install lshw if missing). Use dmidecode for BIOS and memory info: dmidecode -t system (system info) dmidecode -t memory (RAM info) dmidecode -t bios (BIOS details) For CPU and cores: lscpu Save output to file for reporting: lshw > /tmp/hw_info.txt 2.You are troubleshooting a performance issue and need to collect information about all block devices and their attributes including mount points and sizes. How can you achieve this? A. See the Explanation. Answer: A Explanation: Open a terminal and become root: sudo -i Use lsblk -f to list block devices with filesystems and mount points. For detailed device attributes: udevadm info --query=all --name=/dev/sda To get device sizes: fdisk -l or lsblk -o NAME,SIZE,MOUNTPOINT Redirect all output to a file: lsblk -f > /tmp/disk_info.txt 3.You want to identify what kernel version your system is running and compare it against the latest available from Red Hat. What steps will you follow? A. See the Explanation. Answer: A Explanation: Display current kernel version: uname -r Check installed kernels: rpm -q kernel Enable RHEL repos (if not already): subscription-manager repos --enable=* Check available kernel updates: yum list kernel --showduplicates Use dnf upgrade kernel to upgrade if needed (on RHEL 8+) 4.You suspect that a faulty driver module is causing issues. How can you list all currently loaded kernel modules and gather more info about a specific one? A. See the Explanation. Answer: A 2 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation Explanation: Run lsmod to list all loaded kernel modules. Identify the suspected module name, e.g., e1000e. Check module info: modinfo e1000e Inspect dependencies: lsmod | grep e1000e Log results: modinfo e1000e > /tmp/e1000e_info.txt 5.A user reports slow system performance. You are tasked to analyze CPU and memory usage for the last hour. How can you collect this data? A. See the Explanation. Answer: A Explanation: Use sar from sysstat package: install with yum install sysstat Enable data collection: systemctl enable --now sysstat View CPU usage: sar -u -s 08:00 -e 09:00 View memory usage: sar -r -s 08:00 -e 09:00 Save reports: sar -u -s 08:00 -e 09:00 > /tmp/cpu_usage.txt 6.You need to gather information about all system services and their statuses to check for failed services. What is the most efficient method? A. See the Explanation. Answer: A Explanation: Open terminal and switch to root: sudo -i List all services: systemctl list-units --type=service Identify failed services: systemctl --failed Get more info on a failed service: journalctl -u <service> Export to a file: systemctl --failed > /tmp/failed_services.txt 7.Your team is troubleshooting a startup issue. You're asked to identify failed systemd units during boot. How do you do this? A. See the Explanation. Answer: A Explanation: Log in to the system and become root. View boot logs: journalctl -b Search for failed units: journalctl -p err -b Filter specific unit info: systemctl status <unit-name> Save the journal output: journalctl -b > /tmp/boot_log.txt 8.You are asked to collect CPU, memory, I/O, and network usage in real-time for analysis. What tools and steps will you use? A. See the Explanation. 3 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation Answer: A Explanation: Use top or htop (install with yum install htop) for CPU/mem. Use iotop for disk I/O (install with yum install iotop). Use nload or iftop for network (install if not available). Record output via script: Start: script /tmp/perf_monitor.txt Run tools Stop: exit 9.A user complains of application crashes. How do you locate and collect system logs related to the crash for analysis? A. See the Explanation. Answer: A Explanation: Open terminal and switch to root. Check system logs: journalctl -xe Filter logs by time or keywords: journalctl --since "1 hour ago" Check application-specific logs in /var/log/ Collect and compress logs: tar czf /tmp/app_crash_logs.tar.gz /var/log 10.Your task is to identify recent changes made to configuration files across the system. How can you trace this effectively? A. See the Explanation. Answer: A Explanation: Use find to search modified config files: find /etc -type f -mtime -1 Check audit logs if auditd is enabled: ausearch -f /etc/* -ts recent-time Use ls -lt /etc to list files by modified time Create report: find /etc -type f -mtime -1 > /tmp/recent_config_changes.txt Investigate changes with diff if backups are present 11.You are diagnosing frequent I/O errors reported by applications. You need to collect detailed disk error logs and SMART data to assess potential disk failure. How can you do this on a RHEL server? A. See the Explanation. Answer: A Explanation: 1. Open the terminal and switch to root: sudo -i 2. Use dmesg | grep -i error or dmesg | grep -i sda to check for I/O errors. 3. Install smartmontools if not installed: yum install smartmontools 4. Run a SMART health check: smartctl -a /dev/sda 4 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation 5. Save logs: o smartctl -a /dev/sda > /tmp/sda_smart.log o dmesg > /tmp/dmesg_errors.log 12.An engineer requests information about all installed packages for system validation. How can you generate and share a list of all installed RPM packages and their versions? A. See the Explanation. Answer: A Explanation: 1. Switch to root in the terminal: sudo -i 2. Use rpm -qa to list all installed packages. 3. To sort alphabetically: rpm -qa | sort 4. Save to a file: rpm -qa | sort > /tmp/installed_packages.txt 5. Share file with team: scp /tmp/installed_packages.txt user@host:/shared/location/ 13.You need to identify which process is consuming excessive memory during peak hours. What commands can help you pinpoint the culprit and collect memory statistics? A. See the Explanation. Answer: A Explanation: 1. Use top or htop (install via yum install htop) 2. Sort processes by memory: press M in top 3. Identify the PID and use ps: ps -p <PID> -o %mem,cmd 4. Use smem -r (install with yum install smem) for detailed memory mapping 5. Log data: top -b -n1 > /tmp/mem_usage.txt 14.A system has frequent reboots. You are asked to check previous boot events and identify causes for the reboots. What approach should you take? A. See the Explanation. Answer: A Explanation: 1. View reboot history: last reboot 2. Get timestamp of previous boots: journalctl --list-boots 3. View logs from a specific boot: journalctl -b -1 (for previous boot) 4. Search for errors: journalctl -b -1 -p err 5. Save boot log: journalctl -b -1 > /tmp/prev_boot.log 15.You're assisting in a kernel panic investigation. How can you gather historical panic messages and kernel crash information for analysis? A. See the Explanation. Answer: A Explanation: 1. Enable kdump (if not already): yum install kexec-tools and enable with systemctl enable --now kdump 5 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation 2. After a panic, check /var/crash/ for vmcore dumps 3. Use crash /usr/lib/debug/lib/modules/$(uname -r)/vmlinux /var/crash/<dir>/vmcore 4. Check logs: journalctl -k -b -1 5. Document findings in /tmp/kernel_panic_analysis.txt 16.An engineer needs to consult Red Hat's official documentation to check kernel tuning parameters. How do you locate and verify this information online and offline? A. See the Explanation. Answer: A Explanation: 1. Visit https://access.redhat.com/documentation/ 2. Choose your OS version (e.g., RHEL 8) ® Performance Tuning Guide 3. Search for “kernel parameters” or view /usr/share/doc/* locally 4. Run sysctl -a to list current kernel parameters 5. Save results: sysctl -a > /tmp/kernel_params.txt 17.You are auditing a system and must gather system boot and shutdown times over the past week. How can you do this efficiently using built-in tools? A. See the Explanation. Answer: A Explanation: 1. Run last -x | grep shutdown to list shutdowns 2. Run last -x | grep reboot to list reboots 3. To filter specific days: last -x | grep "Apr 10" 4. Combine and sort for a timeline: last -x | grep -E "shutdown|reboot" > /tmp/boot_audit.txt 5. Share or store logs for review 18.You suspect a recent software update might have introduced a bug. How can you find all packages updated in the last 7 days and their history? A. See the Explanation. Answer: A Explanation: 1. Use yum history list to see recent transactions 2. For more detail: yum history info <transaction_ID> 3. Filter updates with timestamp: awk -v date="$(date -d '7 days ago' '+%Y-%m-%d')" '$1 >= date' /var/log/yum.log 4. Save output: yum history list > /tmp/yum_updates.txt 5. Roll back (optional): yum history undo <transaction_ID> 19.During troubleshooting, your team wants a full snapshot of running processes, memory, and open files. How do you collect this all-in-one snapshot? A. See the Explanation. Answer: A Explanation: 6 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation 1. List all processes: ps aux 2. Dump memory usage: free -h 3. List open files: lsof (install if needed: yum install lsof) 4. Combine and redirect: { date ps aux free -h lsof } > /tmp/system_snapshot.txt 5. Share or archive snapshot 20.You are preparing a troubleshooting report. How can you generate a complete summary of the RHEL system’s hardware, software, network, and log data using one built-in tool? A. See the Explanation. Answer: A Explanation: 1. Use sosreport utility (install if missing: yum install sos) 2. Run as root: sosreport 3. Answer prompts (hostname, ticket ID if any) 4. The report will be saved under /var/tmp/sosreport-* 5. Copy it for upload or sharing: scp /var/tmp/sosreport-*.tar.xz admin@host:/support_reports/ 21.A system fails to boot into graphical.target and remains in emergency mode. You suspect a service failure is responsible. How do you identify and fix the failing service? A. See the Explanation. Answer: A Explanation: 1. Reboot the system and select the default kernel in GRUB. 2. When dropped to emergency mode, login as root. 3. Run systemctl --failed to list failed services. 4. Inspect a failed unit: journalctl -xe -u <service> 5. Fix configuration or reinstall the service, then systemctl enable <service> and reboot. 22.After reboot, a custom service doesn’t start. You need to debug and fix the unit file. How do you approach this? A. See the Explanation. Answer: A Explanation: 1. Check status: systemctl status myapp.service 2. Examine logs: journalctl -u myapp.service 3. Check for syntax errors: systemd-analyze verify /etc/systemd/system/myapp.service 7 / 8
Download Valid RedHat EX342 Exam Dumps for Best Preparation 4. Fix any [Service] or [Install] section issues 5. Reload and enable: systemctl daemon-reexec && systemctl enable --now myapp.service 23.A user reports that after enabling a service, the system hangs at boot. How can you temporarily prevent it from starting to troubleshoot? A. See the Explanation. Answer: A Explanation: 1. Reboot and press e at the GRUB menu. 2. Append systemd.unit=multi-user.target to the kernel line and boot. 3. Once logged in, disable the problematic service: systemctl disable <service> 4. Analyze logs: journalctl -u <service> 5. Fix the issue, then test with systemctl start <service> 24.A misconfigured fstab entry causes the system to hang at boot. How do you regain access and fix it? A. See the Explanation. Answer: A Explanation: 1. Reboot and enter GRUB, then append systemd.unit=emergency.target 2. At the prompt, remount root: mount -o remount,rw / 3. Edit fstab: vi /etc/fstab 4. Comment out or fix the incorrect line 5. Save and reboot: reboot 25.Your system boots into rescue mode due to a corrupted initramfs. How can you regenerate it and restore boot? A. See the Explanation. Answer: A Explanation: 1. Boot from RHEL installation media and select "Rescue a Red Hat system" 2. Mount the root partition: chroot /mnt/sysimage 3. Rebuild initramfs: dracut -f /boot/initramfs-$(uname -r).img $(uname -r) 4. Exit and reboot: exit && reboot 5. Verify successful boot: journalctl -b 8 / 8