Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 200-901 Exam - Topic 1 Question 100 Discussion

Posted by Coral on Jul 05, 2025 at 07:16 AM

Refer to the exhibit.

A network engineer executes the bash script shown. Which two things are achieved by running the script? (Choose two.)

Suggested Answer: A, C

The bash script in the exhibit performs the following actions step-by-step:

#!/bin/bash - This is the shebang line that tells the system this script should be run with the bash shell.

apt-get update - This command updates the package lists for upgrades for packages that need upgrading, as well as new packages that have just come to the repositories.

apt-get -y install git - This command installs git automatically confirming the installation with -y.

cd Code/Network_Config - This command changes the directory to Code/Network_Config.

mkdir PRODUCTION - This command creates a new directory named PRODUCTION.

cd PRODUCTION - This command changes the directory to the newly created PRODUCTION directory.

touch state.yml - This command creates an empty file named state.yml.

vi state.yml - This command opens the state.yml file in the vi editor.

Therefore, based on the above script analysis:

A directory called PRODUCTION is created (Answ


Get Premium 200-901 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
28 comments · newest first
AR
Aron 10 months ago
Changing to the parent directory is a classic move!
YU
Yuki 10 months ago
Wait, is it really creating a directory called state.yml? That seems odd.
AR
Arlie 10 months ago
Nah, I don't think a YAML file is removed.
FL
Florinda 11 months ago
A directory called PRODUCTION is definitely created.
AL
Aleisha 11 months ago
I think the YAML file is created too.
DU
Dustin 11 months ago
I vaguely remember something about YAML files in the context of scripts, but I can't tell if one is created or removed in this case.
TU
Tuyet 11 months ago
I’m pretty confident that the script changes to the parent directory, but I’m not entirely sure about the directory creation part.
TA
Tasia 11 months ago
I remember practicing a similar question where we had to identify file operations in a script. I feel like a YAML file is created here, but I can't recall the exact details.
VI
Vicki 12 months ago
I think the script definitely creates a directory called PRODUCTION, but I'm not sure about the other option.
MA
Marta 12 months ago
Alright, I'm feeling pretty confident about this. The script is creating a directory and a YAML file, so those must be the two things the question is asking about. Time to mark my answers and move on.
CA
Carylon 1 year ago
I'm not sure about this one. The script seems to be doing a few different things, and the question is asking about two specific things. I'll need to really analyze the script to figure out the right answers.
DO
Dominga 1 year ago
I think I've got this. The script is creating a directory called PRODUCTION, and it's also creating a YAML file. The question is asking about two things, so those must be the answers.
DO
Dorethea 1 year ago
Okay, let's see. The script is creating a directory, so that's one thing. But what about the YAML file? I'm a bit confused on that part.
ST
Stefanie 1 year ago
Hmm, this looks like a tricky one. I'll need to carefully read through the script and the question to figure out what's really happening.
QU
Quinn 1 year ago
I think the script does not remove any YAML file, so option D is not correct.
FI
Fidelia 1 year ago
Hmm, maybe option E is correct then.
NO
Noemi 1 year ago
I believe the script also creates a directory called state.yml.
AB
Abel 1 year ago
This script looks like it's setting up a production environment. I wonder if it also installs the latest dad jokes for the network engineers to enjoy during downtime.
SH
Shoshana 1 year ago
↳ replying to Abel
User2: E) A directory called state.yml is created.
JA
Jamal 1 year ago
↳ replying to Abel
User1: A) A directory called PRODUCTION is created.
QU
Quinn 1 year ago
I agree with Fidelia, it looks like option A is correct.
CA
Carmen 1 year ago
Hmm, I'm not sure about D. Why would the script remove a YAML file? Seems a bit counterintuitive.
MI
Micah 1 year ago
↳ replying to Carmen
User2: Yeah, I agree. It's more likely that a YAML file is created, not removed.
DA
Dan 1 year ago
↳ replying to Carmen
User1: I think D is incorrect. It doesn't make sense to remove a YAML file.
FI
Fidelia 1 year ago
I think the script creates a directory called PRODUCTION.
RA
Raylene 1 year ago
I think the correct answers are A and C. The script creates a directory called PRODUCTION and a YAML file.
MA
Mary 1 year ago
↳ replying to Raylene
User2: Yes, and it also creates a YAML file.
JU
Justine 1 year ago
↳ replying to Raylene
User1: I agree, the script creates a directory called PRODUCTION.
0/2000 characters

Save Cancel