100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA Study Questions with Correct Answers $13.59   Add to cart

Exam (elaborations)

RHCSA Study Questions with Correct Answers

 12 views  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA Study Questions with Correct Answers Which of the following comes first in the Red Hat Enterprise Linux 7 boot procedure? a. Systemd b. Kernel c. GRUB 2 d. Initramfs - Answer-C. Explanation: During the boot procedure, the GRUB 2 boot loader gets loaded first. From here, the kernel with t...

[Show more]

Preview 3 out of 26  pages

  • August 18, 2024
  • 26
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
Scholarsstudyguide
RHCSA Study Questions with Correct
Answers
Which of the following comes first in the Red Hat Enterprise Linux 7 boot procedure?
a. Systemd
b. Kernel
c. GRUB 2
d. Initramfs - Answer-C. Explanation: During the boot procedure, the GRUB 2 boot
loader gets loaded first. From here, the kernel with the associated initramfs are loaded,
and once that has completed, systemd can be loaded

You have just entered a kernel argument on the GRUB 2 boot prompt. Which key(s)
enables you to start with this boot argument?
a. ZZ
b. Ctrl+X
c. Esc
d. Enter - Answer-B. Explanation: The Ctrl+X key sequence leaves the GRUB 2 shell
and continues booting

Your initramfs seems faulty and cannot initialize the LVM volumes on your disk. Which
configuration file should you check for options that are used?
a. /etc/dracut.d/dracut.conf
b. /etc/dracut.conf
c. /etc/sysconfig/dracut
d. /etc/mkinitrd.conf - Answer-B. Explanation: The /etc/dracut.conf file is used for
managing the initramfs file system

You do not have the root password and want to reset it. Which kernel argument offers
the recommended way to reset it?
a. init=/bin/bash
b. init=/bin/sh
c. systemd.unit=emergency.target
d. rd.break - Answer-D. Explanation: The rd.break boot option enters at the end of the
initrd phase. The root file system has not been mounted on / yet, which allows for easy
troubleshooting.

You want to see exactly what is happening on system boot. Which two boot options
should you remove from the GRUB 2 boot prompt? (Choose two.)
a. rhgb
b. logo
c. quiet

,d. silent - Answer-A and C. Explanation: The rhgb and quiet boot options make it
impossible to see what is happening while booting.

You want to enter the most minimal troubleshooting mode where as few services as
possible are loaded. Which boot argument should you use?
a. systemd.unit=break.target
b. systemd.unit=emergency.target
c. systemd.unit=rescue.target
d. 1 - Answer-B. Explanation: The emergency.target systemd target gives just a root
shell and not much more than that. All other options that are mentioned also include the
loading of several systemd unit files.

Which of the following situations can be resolved only by using a rescue disk?
a. The kernel stops loading.
b. The initramfs stops loading.
c. You never get to a GRUB 2 boot prompt.
d. You are prompted to enter the root password for maintenance mode. - Answer-C.
Explanation: If you do not get a GRUB 2 boot prompt, you cannot select any alternate
startup mechanism. This is why his situation requires you to use a rescue disk so that
GRUB can be reinstalled. If the kernel or initramfs cannot load successfully, you might
need to use a rescue disk also, but in many cases an alternate kernel is provided by
default.

You have entered a troubleshooting mode, and disk access is read-only. What should
you do?
a. Restart the troubleshooting mode and pass the rw boot option to thekernel.
b. Use the rd.break boot argument to manually start into the initramfs mode.
c. Use mount -o remount,rw / .
d. Use mount / . - Answer-C. Explanation: The mount -o remount,rw / option remounts
the / file system in read/write mode.

Your server shows a blinking cursor only while booting. No GRUB 2 menu is available.
What is the first step in troubleshooting this issue?
a. From a rescue disk, try the boot from local disk option.
b. Start a rescue environment and reinstall GRUB.
c. Start a rescue environment and re-create the initramfs.
d. Use the rd.break boot argument. - Answer-A. Explanation: Because the error occurs
before the GRUB 2 menu is loaded, the only option to fix this is by using a rescue disk.

When recovering access to a virtual machine, you need to make the storage devices in
the image file available. Which of the following commands would do that, assuming that
the name of the image file is /home/user/lab1.img??
a. partx -ax /home/user/lab1.img
b. kpartx -ax /home/user/lab1.img
c. kpartx -av /home/user/lab1.img
d. partx -av /home/user/lab1.img.

, From - Answer-C. Explanation: The kpartx command is used to create device nodes for
devices that are found in a block device. The -a option adds device nodes for all
devices, and the -v option does that in a verbose way.

Name the eight steps of the boot process - Answer-1. POST
2. Select bootable device
3. Loading the boot loader
4. Loading the Kernel
5. Starting /sbin/init
6. Processing initrd.target
7. Switching to the root file system
8. Running the default target

If you reboot from an installation disk to troubleshoot and you get to a command prompt,
what command can you use to mount the root partition? - Answer-chroot /mnt/sysimage

If your GRUB2 boot loader is broken what are the steps to fix it? - Answer-1. Make sure
that you have made the contents of the /mnt/sysimage directory to your current working
environment
2. If your disk is /dev/sda, run the following command grub2-install /dev/sda

What command can you use if the initramfs is damaged? - Answer-You can use the
dracut command

There are three places where dracut is configured, what are they? - Answer-■
/usr/lib/dracut/dracut.conf.d/*.conf contains the system default configuration files.
■ /etc/dracut.conf.d contains custom dracut configuration files.
■ /etc/dracut.conf is used as the master configuration file.

If you suspect that you are having a problem with the initramfs, how do you re-create it?
- Answer-dracut --force

What is the procedure the root password where nobody knows what it is? - Answer-1.
Press e when Grub2 menu is shown
2. Enter rd.break as boot argument to the line that loads the kernel and press Ctrl+X to
boot with this option.
3. mount -o remount,rw /sysroot
4. chroot /sysroot
5. Now you can enter passwd and set the new password for the user root.
6. Load SELinux policy: load_policy -i
7. manually set the correct context type to /etc/shadow: chcon -t shadow_t /etc/shadow
8. reboot

Instead using load_polic -i and chcon to correct labels on /etc/shadow, what is an easier
way to do it? - Answer-An alternative (and easier) method is to create a file with the
name /.autorelabel which will force

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Scholarsstudyguide. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.59. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.59
  • (0)
  Add to cart