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

Refer to the exhibit.A network engineer executes the bash script shown. Which two things are achieved by running the script? (Choose two.)
A) A directory called PRODUCTION is created. and C) A YAML file is created.
B) The engineer changes to the parent directory.
D) A YAML file is removed.
E) A directory called state.yml is created.

Cisco 200-901 Exam - Topic 1 Question 100 Discussion

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

Refer to the exhibit.

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

Show Suggested Answer Hide Answer
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


Contribute your Thoughts:

0/2000 characters
Aron
8 months ago
Changing to the parent directory is a classic move!
upvoted 0 times
...
Yuki
8 months ago
Wait, is it really creating a directory called state.yml? That seems odd.
upvoted 0 times
...
Arlie
9 months ago
Nah, I don't think a YAML file is removed.
upvoted 0 times
...
Florinda
9 months ago
A directory called PRODUCTION is definitely created.
upvoted 0 times
...
Aleisha
9 months ago
I think the YAML file is created too.
upvoted 0 times
...
Dustin
9 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.
upvoted 0 times
...
Tuyet
10 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.
upvoted 0 times
...
Tasia
10 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.
upvoted 0 times
...
Vicki
10 months ago
I think the script definitely creates a directory called PRODUCTION, but I'm not sure about the other option.
upvoted 0 times
...
Marta
10 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.
upvoted 0 times
...
Carylon
11 months 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.
upvoted 0 times
...
Dominga
11 months 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.
upvoted 0 times
...
Dorethea
11 months 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.
upvoted 0 times
...
Stefanie
11 months 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.
upvoted 0 times
...
Quinn
1 year ago
I think the script does not remove any YAML file, so option D is not correct.
upvoted 0 times
...
Fidelia
1 year ago
Hmm, maybe option E is correct then.
upvoted 0 times
...
Noemi
1 year ago
I believe the script also creates a directory called state.yml.
upvoted 0 times
...
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.
upvoted 0 times
Shoshana
1 year ago
User2: E) A directory called state.yml is created.
upvoted 0 times
...
Jamal
1 year ago
User1: A) A directory called PRODUCTION is created.
upvoted 0 times
...
...
Quinn
1 year ago
I agree with Fidelia, it looks like option A is correct.
upvoted 0 times
...
Carmen
1 year ago
Hmm, I'm not sure about D. Why would the script remove a YAML file? Seems a bit counterintuitive.
upvoted 0 times
Micah
1 year ago
User2: Yeah, I agree. It's more likely that a YAML file is created, not removed.
upvoted 0 times
...
Dan
1 year ago
User1: I think D is incorrect. It doesn't make sense to remove a YAML file.
upvoted 0 times
...
...
Fidelia
1 year ago
I think the script creates a directory called PRODUCTION.
upvoted 0 times
...
Raylene
1 year ago
I think the correct answers are A and C. The script creates a directory called PRODUCTION and a YAML file.
upvoted 0 times
Mary
1 year ago
User2: Yes, and it also creates a YAML file.
upvoted 0 times
...
Justine
1 year ago
User1: I agree, the script creates a directory called PRODUCTION.
upvoted 0 times
...
...

Save Cancel