New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA DY0-001 Exam - Topic 4 Question 13 Discussion

Actual exam question for CompTIA's DY0-001 exam
Question #: 13
Topic #: 4
[All DY0-001 Questions]

A data scientist is standardizing a large data set that contains website addresses. A specific string inside some of the web addresses needs to be extracted. Which of the following is the best method for extracting the desired string from the text data?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Janna
22 hours ago
Regular expressions are perfect for this!
upvoted 0 times
...
Lajuana
6 days ago
Option A all the way. Regular expressions are the text-wrangling superpower you need to tame those website addresses.
upvoted 0 times
...
Gerri
11 days ago
Haha, "large language model" - that's like using a sledgehammer to crack a nut! Regular expressions are the surgical tool you need for this job.
upvoted 0 times
...
Maryann
16 days ago
Regular expressions are the clear choice. They're powerful, flexible, and perfect for this kind of targeted string extraction.
upvoted 0 times
...
Yuonne
22 days ago
I'd go with option A. Regular expressions are the Swiss Army knife of text processing - they can handle just about any extraction task.
upvoted 0 times
...
Raymon
27 days ago
Large language models seem powerful, but I doubt they are the best fit for just extracting a specific string from a URL. Regular expressions seem more straightforward.
upvoted 0 times
...
Blossom
1 month ago
I feel like I’ve seen a similar question before, and I think find and replace could work, but it might not be as flexible as regex for this task.
upvoted 0 times
...
Ernie
1 month ago
I'm not entirely sure, but I remember practicing with named-entity recognition for extracting information. It seems more suited for structured data though.
upvoted 0 times
...
Tiera
1 month ago
I think regular expressions might be the best choice here since they are specifically designed for pattern matching in strings.
upvoted 0 times
...
Fredric
2 months ago
I'm a bit confused by this question. I know regular expressions can be powerful, but I'm not sure if they're the best approach compared to the other options. Maybe I should research named-entity recognition or large language models a bit more before deciding.
upvoted 0 times
...
Scarlet
2 months ago
Regular expressions are definitely the way to go here. I've used them before for text extraction tasks, and I'm confident I can write a regex that will reliably pull out the desired string from the web addresses.
upvoted 0 times
...
Jade
2 months ago
Hmm, this is a tricky one. I think I'd start by trying a simple find and replace, but that might not be robust enough for a large data set. Regular expressions could be the way to go, but I'd need to make sure I understand the syntax well.
upvoted 0 times
...
Alexia
2 months ago
I think A) Regular expressions is the best choice. It's precise for text extraction.
upvoted 0 times
...
Belen
2 months ago
Regular expressions are definitely the way to go here. They're like a secret language for text manipulation!
upvoted 0 times
...
Lili
3 months ago
C) Large language model is overkill for just extracting strings.
upvoted 0 times
...
Leota
3 months ago
I'm a bit unsure about this one. I know regular expressions can be powerful, but I'm not sure if they're the best method compared to the other options. Maybe I should consider named-entity recognition or a language model as well.
upvoted 0 times
...
Trinidad
3 months ago
Regular expressions seem like the best approach here. I'm pretty confident I can use a well-crafted regex to extract the specific string from the web addresses.
upvoted 0 times
Helene
2 months ago
Definitely! It can handle complex patterns.
upvoted 0 times
...
Abel
3 months ago
I agree, regex is powerful for this.
upvoted 0 times
...
...

Save Cancel