exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 201 discussion

Actual exam question from Cisco's 200-901
Question #: 201
Topic #: 1
[All 200-901 Questions]


Refer to the exhibit. 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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
designated
Highly Voted 1 year, 2 months ago
Selected Answer: A
A is correct. 1 - bash file 2 - installing nginx 3 - exporting variable = directory/sites_available file 4 - exporting variable = directory/sites_enabled file 5 - changing directory 6 - reading file sites.txt and while read "sites" 7 - do 8 - copy template.conf to sites_available file 9 - make a symboloic links between files sites_available and sites_enabled 10 - change file owner and group of the new sites_available file created 11 - done
upvoted 7 times
...
aplicacion101
Most Recent 7 months ago
Selected Answer: A
A is correct. The magical pharse "changing the ownership of the created files ", because chown command use to change the ownership of the file. Other options dont make sense.
upvoted 2 times
...
macxsz
10 months, 4 weeks ago
Selected Answer: A
Only A makes sense. In the last line the ownership is changed, not assigned. Also We dont know if the file is empty or not
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago