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 300-215 Exam - Topic 1 Question 20 Discussion

Posted by Glenna on May 09, 2022 at 11:07 PM

A website administrator has an output of an FTP session that runs nightly to download and unzip files to a local staging server. The download includes thousands of files, and the manual process used to find how many files failed to download is time-consuming. The administrator is working on a PowerShell script that will parse a log file and summarize how many files were successfully downloaded versus ones that failed. Which script will read the contents of the file one line at a time and return a collection of objects?

Suggested Answer: D

Get Premium 300-215 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
MA
Marci 11 months ago
Option A looks interesting too, but I’m leaning towards D.
VO
Vonda 11 months ago
I’ve used similar scripts before, and D worked perfectly for me.
LU
Luis 11 months ago
Wait, are we sure about that? What if the log format is different?
HA
Haydee 12 months ago
Yeah, D makes the most sense here!
EA
Earleen 12 months ago
I think option D is the right choice. It uses Select-String correctly.
FA
Fausto 12 months ago
I'm leaning towards option D too, but I wonder if there's a better way to summarize the results after filtering.
TR
Tracey 1 year ago
I feel like I've seen something similar in our last practice exam, but I can't recall if we used --Path or something else.
NA
Nathan 1 year ago
I think option D sounds familiar; it uses Select-String, which is often used for searching through log files.
LA
Lachelle 1 year ago
I remember practicing with Get-Content, but I'm not sure about the exact syntax for filtering errors and successes.
LY
Lynelle 1 year ago
This seems like a straightforward question about managing requirements changes. I think the key is to develop a formal change control process, so I'll go with option A.
ON
Ona 1 year ago
For some reason, I keep mixing up invalid characters in the certificate name with other types of errors. I guess that might relate to answer B?
XE
Xenia 1 year ago
Hmm, I'm a bit confused on the difference here. I'll need to think through the key characteristics of each approach.
0/2000 characters

Save Cancel