Exam 200-901 Question id=6177 Software Development and Design

Refer to the exhibit.

#!/bin/bash apt install nginx export AVAILABLE_SITES_ DIR = '/etc/nginx/sites-available' export ENABLED_SITES_DIR = '/etc/nginx/sites_enabled' cd /opt/nginx cat sites.txt | while read site; do cp template.conf "$AVAILABLE_SITES_DIR/$site"; ln -s "$AVAILABLE_SITES_DIR/$site"" $ENABLED_SITES_DIR"; chown www-data:www-data "$AVAILABLE_SITES_DIR/$site"; done

An engineer must configure a load balancer server. The engineer prepares a script to automate workflow by using Bash. The script installs the nginx package, moves to the /opt/nginx directory, and reads the sites.txt file for further processing. Based on the script workflow, which process is being automated within the loop by using the information in sites.txt?

A. creating a file per each line in sites.txt with the information in template.conf, creating a link for the previously created file, and then changing the ownership of the created files
B. using the content of the file to create the template.conf file, creating a link from the created file to the /etc/nginx/sites_enabled, and then changing the file execution permissions
C. creating a new file based on template.conf in the /etc/nginx/sites_enabled directory for each line in the sites.txt file, and then changing the file execution permissions
D. using the information in the file to create a set of empty files in the /etc/nginx/sites_enabled directory, and then assigning the owner of the file

WARNING

the answers are mixed, do not specify in the comment number or the letter of the answer
please write answer#A instead A, answer#B instead B...
Subject:

only logged users can write comments