SCA_SLES15 MCQs and Practice Test

https://killexams.com/pass4sure/exam-detail/SCA
Download PDF for SCA
_SLES15"/>


SCA_SLES15 MCQs

SCA_SLES15 TestPrep SCA_SLES15 Study Guide SCA_SLES15 Practice Test SCA_SLES15 Exam Questions


killexams.com


SUSE


SCA_SLES15


SCA in SUSE Linux Enterprise Server 15


https://killexams.com/pass4sure/exam-detail/SCA

Download PDF for SCA
_SLES15




Question: 732


In a scenario where you are configuring remote access via RDP, which of the following security measures should you implement to protect the server from unauthorized access?


  1. Use a strong password policy for RDP users

  2. Allow all incoming connections on port 3389

  3. Disable network-level authentication

  4. Allow RDP access for all users

    Answer: A

Explanation: Implementing a strong password policy for RDP users is crucial for protecting the server from unauthorized access, while other options increase security risks.




Question: 733


In a SUSE Linux Enterprise Server 15 environment, you are auditing a script that processes user input files. The script uses the cut command to extract specific fields from a CSV file located at /data/users.csv, which has the format: username,uid,home_dir,shell. The script snippet is:


cut -d',' -f1,3 /data/users.csv > /tmp/user_info.txt


You notice that some usernames contain commas, causing incorrect field extraction. How should you modify the command to robustly extract only the username and home directory fields, handling commas within fields correctly?


  1. Use awk -F',' '{print $1 "," $3}' /data/users.csv > /tmp/user_info.txt

  2. Preprocess the file with sed 's/,"[^"]*",/,/g' /data/users.csv | cut -d',' -f1,3 > /tmp/ user_info.txt

  3. Replace cut with csvcut -c 1,3 /data/users.csv > /tmp/user_info.txt

  4. Use cut -d',' --complement -f2,4 /data/users.csv > /tmp/user_info.txt

    Answer: C

Explanation: The cut command assumes a simple delimiter and cannot handle commas within quoted fields, which is common in CSV files. The csvcut command, part of the

csvkit package, is designed for CSV parsing and correctly handles quoted fields with embedded commas. Using csvcut -c 1,3 extracts the first and third columns (username and home_dir) accurately. The awk approach suffers the same issue as cut. The sed preprocessing is complex and error-prone. The --complement doesn???t address quoted fields.




Question: 734


On a SUSE Linux Enterprise Server 15 SP5 system, you are investigating a disk space issue caused by large log files. The /etc/logrotate.conf is configured with weekly and rotate 4, but the /etc/logrotate.d/syslog specifies daily and rotate 7 for /var/log/messages. A recent spike in logging activity caused /var/log/messages to grow to 2GB before rotation. Which command would you run to manually trigger log rotation for /var/log/ messages and verify the rotation occurred?


  1. logrotate -f /etc/logrotate.conf

  2. systemctl restart logrotate

  3. logrotate -v /etc/logrotate.d/syslog

  4. logrotate -d /etc/logrotate.d/syslog

    Answer: C

Explanation: The logrotate -v command runs logrotate in verbose mode, processing the specified configuration file (/etc/logrotate.d/syslog) and showing the actions taken, allowing verification of rotation for /var/log/messages. The -f option (A) forces rotation for all logs in /etc/logrotate.conf, which is unnecessary. Restarting logrotate (

  1. does not trigger immediate rotation. The -d option (

  2. runs in debug mode without performing rotation.




Question: 735


In a situation where you need to revert a logical volume "data_lv" back to its previous state after making changes, which command would you use if a snapshot named "data_snapshot" was created?


  1. lvmerge data_snapshot

  2. lvconvert --merge data_snapshot

  3. lvremove data_snapshot

  4. lvsnapshot --restore data_snapshot



Answer: B


Explanation: The lvconvert --merge command is used to merge a snapshot back to its original logical volume, effectively reverting it to its previous state.




Question: 736


You are tasked with creating a symbolic link to a file called original.txt in a different directory called backup. Which command would achieve this?


  1. cp -s original.txt backup/

  2. ln original.txt backup/

  3. ln -s original.txt backup/

  4. link original.txt backup/

    Answer: C

Explanation: The ln -s command creates a symbolic link to original.txt in the backup directory, allowing access to the original file from the new location.




Question: 737


To test the network connectivity specifically to a remote host and ensure that the expected response time is within acceptable limits, which command would you most appropriately use?


  1. ping -c 10

  2. traceroute

  3. nslookup

  4. netstat -r

    Answer: A

Explanation: The command ping -c 10 sends 10 ICMP echo requests to the specified host, allowing you to assess both connectivity and response times effectively.




Question: 738


In a high-availability setup, you must ensure that your LVM configuration survives a system crash. Which command should you run to ensure that your changes are saved to the metadata?

  1. lvscan


  2. lvmdiskscan

  3. vgextend

  4. vgcfgrestore

    Answer: D

Explanation: The vgcfgrestore command restores the volume group from a backup of its metadata, ensuring configuration persistence after crashes.




Question: 739


You are managing a SUSE Linux Enterprise Server 15 SP6 system hosting a web application. The application logs are managed by rsyslog, and you need to ensure that all logs with a priority of ???warning??? or higher from the application (facility local0) are sent to a dedicated file /var/log/webapp.log, while other logs continue to /var/log/messages. Which configuration snippet should you add to /etc/rsyslog.conf to achieve this without disrupting existing logging?


  1. local0.warning /var/log/webapp.log

    *.* /var/log/messages


  2. local0.>=warning /var/log/webapp.log

    *.*;local0.none /var/log/messages


  3. local0.* /var/log/webapp.log

    *.* /var/log/messages


  4. local0.warning /var/log/webapp.log stop




Answer: B


Explanation: To filter logs with facility local0 and priority warning or higher to /var/log/ webapp.log, use local0.>=warning. To prevent these logs from also going to /var/log/ messages, add ;local0.none to the . rule, excluding local0 logs from /var/log/messages. Option A does not exclude local0 logs from /var/log/messages, causing duplication. Option C captures all local0 priorities, not just warning or higher. Option D uses stop, which halts further processing, potentially breaking other logging rules.




Question: 740

What is the primary purpose of the /etc/lvm/lvm.conf file in a SUSE Linux environment?


  1. It stores user-defined volume group names.

  2. It defines the physical volumes available to the system.


  3. It logs all LVM-related commands executed.

  4. It contains configuration settings for LVM operations.

    Answer: D

Explanation: The /etc/lvm/lvm.conf file is crucial as it contains configuration settings that affect how LVM behaves, including filters for physical volumes and other operational parameters.




Question: 741


In a SLE201v15 lab, you are configuring a SLES 15 SP4 system to use Btrfs with snapshots for system recovery. Given the command snapper create --type pre before a system update, which command restores the system to the pre-update state?


  1. btrfs subvolume snapshot


  2. snapper undochange

  3. snapper --config root restore

  4. snapper rollback

    Answer: D

Explanation: The snapper rollback command restores the system to a previous snapshot, such as the pre-update state created with snapper create --type pre. undochange reverts specific changes, --config restore is not a valid option, and btrfs subvolume snapshot creates snapshots manually.




Question: 742


If a system administrator needs to install a group of related packages using Zypper, which command should be used?


  1. zypper install --group package_group_name

  2. zypper in package_group_name

  3. zypper install --bundle package_group_name

  4. zypper install --set-group package_group_name

    Answer: B

Explanation: The command zypper in package_group_name installs all packages associated with the specified group by name.




Question: 743


In a systemd service unit, which of the following directives indicates that a service should only be started when the specified target is active and the service is not already running?


  1. After=

  2. Wants=

  3. ConditionPathExists=

  4. OnFailure=

    Answer: B

Explanation: The "Wants=" directive creates a weak dependency, indicating that the specified target should be active for the service to start, without enforcing it strictly.




Question: 744


In a SUSE Linux Enterprise Server 15 environment, you are auditing file types and find a file /dev/null with a c in its ls -l output. What type of file is this, and what is its primary use?


  1. Character device; discards data

  2. Block device; stores data

  3. Regular file; logs errors

  4. Symbolic link; redirects data

    Answer: A

Explanation: The /dev/null file is a character device, indicated by a c in ls -l. Its primary use is to discard data written to it, acting as a ???black hole??? for output redirection, and it returns an EOF when read. It is not a block device, regular file, or symbolic link.




Question: 745

In a multi-homed system, how does the kernel determine which routing table to use for outgoing packets when multiple default gateways are configured?


  1. It selects the gateway with the lowest metric.

  2. It uses the first defined gateway.

  3. It randomly selects a gateway.

  4. It prioritizes the gateway based on interface speed.

    Answer: A

Explanation: The kernel uses the routing table entry with the lowest metric when determining the default gateway for outgoing packets, ensuring optimal routing.




Question: 746


You need to mount a filesystem at boot time with specific options for noexec and nodev. Which configuration file should be modified, and what would the line look like for the device /dev/sdb1?


  1. /etc/mtab /dev/sdb1 /mnt/data ext4 defaults,noexec,nodev 0 2

  2. /etc/fstab /dev/sdb1 /mnt/data ext4 defaults,noexec,nodev 0 2

  3. /etc/fstab /mnt/data /dev/sdb1 ext4 defaults,noexec,nodev 0 2

  4. /etc/mtab /mnt/data /dev/sdb1 ext4 defaults,noexec,nodev 0 2

    Answer: B

Explanation: The /etc/fstab file is used to configure filesystems to be mounted automatically at boot. The specified line includes the device, mount point, filesystem type, and options such as noexec and nodev.




Question: 747


On a SUSE Linux Enterprise Server 15 SP6 system, you are tasked with ensuring that systemd-journald logs are forwarded to a remote rsyslog server at 192.168.1.200 over UDP port 514 for centralized monitoring. The journald configuration must remain persistent, and local journal logs should also be retained. Which configuration changes should you make to /etc/systemd/journald.conf and /etc/rsyslog.conf to achieve this?


  1. journald.conf: ForwardToSyslog=yes Storage=persistent

    rsyslog.conf:

    *.* @192.168.1.200:514

  2. journald.conf: ForwardToSyslog=no Storage=persistent rsyslog.conf:

    *.* @192.168.1.200:514

  3. journald.conf: ForwardToSyslog=yes Storage=volatile rsyslog.conf:

    *.* @192.168.1.200:514

  4. journald.conf: ForwardToSyslog=yes Storage=persistent rsyslog.conf:

*.* @@192.168.1.200:514




Answer: A


Explanation: Setting ForwardToSyslog=yes in journald.conf ensures journald forwards logs to rsyslog, and Storage=persistent retains local journal logs on disk. In rsyslog.conf,

. @192.168.1.200:514 sends all logs to the remote server over UDP (single @).




Question: 748


You are managing a SUSE Linux Enterprise Server 15 system where a critical application service (app.service) must be part of a custom systemd target (app-stack.target). The target should pull in app.service and db.service, ensuring they start after network- online.target. The target must be active in the multi-user.target runlevel. Which target unit file configuration is correct?


  1. [Unit] Requires=app.service db.service, After=network.target, WantedBy=graphical.target

  2. [Unit] Wants=app.service db.service, After=network-online.target, WantedBy=multi- user.target

  3. [Unit] After=app.service db.service, Requires=network-online.target, PartOf=multi- user.target

  4. [Unit] Wants=network-online.target, Requires=app.service db.service, WantedBy=default.target




Answer: B

Explanation: Wants=app.service db.service pulls in the services without failing if they fail. After=network-online.target ensures proper ordering. WantedBy=multi-user.target ties the target to the multi-user.target. Requires is too strict, After for services is incorrect, and graphical.target or default.target are not suitable.




Question: 749


While trying to terminate an unresponsive process, you notice that it is in a "stopped" state. What command would you use to resume its execution?


  1. kill -CONT

  2. fg

  3. bg

  4. resume

    Answer: A

Explanation: The kill -CONT command sends the CONT signal to the specified process, resuming its execution from the stopped state.




Question: 750


If a system administrator wishes to check which files belong to a specific RPM package, what command should be executed?


  1. rpm -qa | grep package_name

  2. rpm -ql package_name

  3. rpm -qf file_path

  4. rpm -q --filesbypkg package_name

    Answer: C

Explanation: The rpm -qf file_path command queries the RPM database to find which package a specific file belongs to.




Question: 751

A SUSE Linux Enterprise Server 15 system uses a Btrfs file system on /dev/sda1, mounted at /data, with subvolumes @/home and @/logs. The administrator needs to create a snapshot of the @/home subvolume for backup purposes and ensure it is read-

only. The snapshot should be stored at /data/@/home_snap. Which commands achieve this, and what is the correct syntax for verifying the snapshot???s properties?


  1. btrfs subvolume snapshot -r /data/@/home /data/@/home_snap; btrfs subvolume show

    /data/@/home_snap

  2. btrfs snapshot create /data/@/home /data/@/home_snap; btrfs property set

    /data/@/home_snap ro true; btrfs filesystem show /data

  3. btrfs subvolume snapshot /data/home /data/home_snap; btrfs property set /data/ home_snap ro true; btrfs subvolume list /data

  4. btrfs subvolume create /data/@/home_snap; btrfs snapshot /data/@/home

/data/@/home_snap; btrfs subvolume show /data/@/home_snap

Answer: A

Explanation: The btrfs subvolume snapshot -r command creates a read-only snapshot of the @/home subvolume at the specified path. The btrfs subvolume show command verifies the snapshot???s properties, including its read-only status. Other options use incorrect commands, paths, or do not ensure the snapshot is read-only. The btrfs subvolume list command shows subvolumes but not detailed properties.




Question: 752


You are developing a script that needs to run a command in the background and immediately return control to the terminal. Which of the following commands would you use in your script to accomplish this?


  1. command > /dev/null

  2. command &

  3. command;

  4. command & disown

    Answer: B

Explanation: Appending & to the command allows it to run in the background, freeing up the terminal for other tasks while the command executes.




Question: 753


You want to create a snapshot of a subvolume named work in /mnt/data and send it to a remote Btrfs file system. Which command accomplishes this?


  1. btrfs send /mnt/data/work | ssh user@remote 'btrfs receive /mnt/backup'

  2. btrfs send -r /mnt/data/work | ssh user@remote 'btrfs receive /mnt/backup'

  3. btrfs snapshot /mnt/data/work /mnt/data/work_snapshot; btrfs send /mnt/data/ work_snapshot | ssh user@remote 'btrfs receive /mnt/backup'

  4. btrfs snapshot /mnt/data/work /mnt/data/work_snapshot; btrfs send /mnt/data/ work_snapshot




Answer: C


Explanation: To send a snapshot to a remote file system, you first create the snapshot and then use the btrfs send command piped through SSH to the remote system.




Question: 754


You are debugging a process with PID 45678 on a SUSE Linux Enterprise Server 15 system that is not responding to SIGTERM. You need to send a SIGABRT signal to generate a core dump for analysis. Which command sends this signal?


  1. kill -INT 45678


  2. kill -TERM 45678

  3. kill -HUP 45678

  4. kill -ABRT 45678




Answer: D


Explanation: The kill -ABRT 45678 command sends the SIGABRT signal to PID 45678, typically generating a core dump. Other signals do not serve this purpose.


KILLEXAMS.COM


Killexams.com is a leading online platform specializing in high-quality certification exam preparation. Offering a robust suite of tools, including MCQs, practice tests, and advanced test engines, Killexams.com empowers candidates to excel in their certification exams. Discover the key features that make Killexams.com the go-to choice for exam success.



Exam Questions:

Killexams.com provides exam questions that are experienced in test centers. These questions are updated regularly to ensure they are up-to-date and relevant to the latest exam syllabus. By studying these questions, candidates can familiarize themselves with the content and format of the real exam.


Exam MCQs:

Killexams.com offers exam MCQs in PDF format. These questions contain a comprehensive

collection of questions and answers that cover the exam topics. By using these MCQs, candidate can enhance their knowledge and improve their chances of success in the certification exam.


Practice Test:

Killexams.com provides practice test through their desktop test engine and online test engine. These practice tests simulate the real exam environment and help candidates assess their readiness for the actual exam. The practice test cover a wide range of questions and enable candidates to identify their strengths and weaknesses.


thorough preparation:

Killexams.com offers a success guarantee with the exam MCQs. Killexams claim that by using this materials, candidates will pass their exams on the first attempt or they will get refund for the purchase price. This guarantee provides assurance and confidence to individuals preparing for certification exam.


Updated Contents:

Killexams.com regularly updates its question bank of MCQs to ensure that they are current and reflect the latest changes in the exam syllabus. This helps candidates stay up-to-date with the exam content and increases their chances of success.

Back to Home