exam questions

Exam CS0-003 All Questions

View all questions & answers for the CS0-003 exam

Exam CS0-003 topic 1 question 6 discussion

Actual exam question from CompTIA's CS0-003
Question #: 6
Topic #: 1
[All CS0-003 Questions]

A security analyst recently joined the team and is trying to determine which scripting language is being used in a production script to determine if it is malicious. Given the following script:

Which of the following scripting languages was used in the script?

  • A. PowerShell
  • B. Ruby
  • C. Python
  • D. Shell script
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
kmordalv
Highly Voted 1 year, 10 months ago
Selected Answer: A
the syntax in the given script, such as cmdlet names starting with "Get-", "Add-", "Set-", and the use of the pipeline "|", is characteristic of PowerShell scripting. Moreover, the use of Active Directory cmdlets like "Get-ADUser," "Add-ADGroupMember," and "Set-ADUser" indicates that this script is designed to interact with Active Directory, which aligns with PowerShell's primary use case in managing Windows environments and Active Directory services.
upvoted 33 times
...
dave_delete_me
Highly Voted 1 year ago
I absolutely love kmordalv's explanation above!!! Spot On!!!!
upvoted 5 times
...
maggie22
Most Recent 6 months, 3 weeks ago
This was on my exam but different question.
upvoted 3 times
...
kylestobaugh
9 months, 3 weeks ago
Selected Answer: A
Powershell uses cmdlets as shown in the question.
upvoted 1 times
...
ae2d3eb
1 year, 1 month ago
This is powershell no question. Verb / noun
upvoted 2 times
...
RobV
1 year, 5 months ago
Selected Answer: A
A. PowerShell
upvoted 1 times
...
64fc66a
1 year, 5 months ago
I will go with D Shell Script since we are looking for a scripting language.
upvoted 1 times
Ree1234
1 year ago
PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate task that manage operating systems (Linux, macOS, and Windows) and processes. A shell script is a computer program designed to be run by a Unix shell, a command-line interpreter.[1] The various dialects of shell scripts are considered to be scripting languages though..
upvoted 2 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