Speaking of Okta Template App and Okta Pluin Template App, which of the following RegEx can you create for an allow list of URLS so that both endpoints for /login or /change_password are accepted under example.com domain?
Suggested Answer: B
Get Premium Okta Certified Administrator Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
31 comments · newest first
CH
Chauncey
10 months ago
Not sure if that's the best approach, might need more testing.
AN
Annalee
10 months ago
Wait, does it really work for all subdomains too?
JO
Jolanda
11 months ago
Totally agree, it covers both endpoints perfectly.
VA
Vallie
11 months ago
Yup, it’s valid for example.com and its subdomains!
EL
Elouise
11 months ago
That's a solid regex for the allow list!
TR
Trina
11 months ago
I believe the regex is valid, but I wonder if there are edge cases we should consider for other URL patterns.
JO
Johnson
12 months ago
I'm a bit confused about the asterisk in the domain part. Does it really allow for subdomains too?
FE
Felix
12 months ago
I remember practicing a similar question, and I think the parentheses for the endpoints are definitely needed.
IZ
Izetta
12 months ago
I think the regex looks correct, but I'm not entirely sure if the wildcard is properly used for the domain.
JU
Julio
1 year ago
The solution provided looks good to me. I'll double-check the syntax, but I'm confident this RegEx will do the trick.
LE
Leonora
1 year ago
Okay, I think I've got this. The key is to use the alternation operator '|' to match both the /login and /change_password endpoints, and the wildcard '*' to match any subdomains under the example.com domain.
PA
Pamella
1 year ago
Hmm, I'm a bit unsure about this one. I'll need to review my RegEx knowledge and make sure I understand the requirements properly before attempting an answer.
OT
Otis
1 year ago
This looks like a tricky RegEx question. I'll need to think through the different URL patterns carefully to make sure I cover all the bases.
ME
Merissa
1 year ago
Regex, the dark magic of the coding world. But this one's a beaut! *chef's kiss*
DE
Deane
1 year ago
I'm more of a 'just use the default settings' kind of guy, but this regex looks like it gets the job done. Time to put on my RegEx wizard hat!
PA
Paulina
1 year ago
A) Yes
AL
Alline
1 year ago
Regex, the language of the gods. Or the demons, depending on your mood. Either way, this solution looks good to me!
SH
Shonda
1 year ago
I agree with Kati, the RegEx provided is too broad and could potentially allow unintended URLs.
KI
Kimi
1 year ago
Regex, the programmer's kryptonite. But this one seems pretty solid. I'll give it a shot on my next Okta project.
VA
Vashti
1 year ago
B) No
CO
Cordelia
1 year ago
A) Yes
IV
Ivette
1 year ago
A) Yes
DA
Dana
1 year ago
Hmm, I think I would have gone with something a little more specific, like '^https://example\\.com/(login|change_password)$'. Just to be extra sure, you know?
HE
Helga
1 year ago
B) No
LA
Lai
1 year ago
A) Yes
KA
Kati
1 year ago
I think the correct RegEx should be more specific to only allow /login or /change_password under example.com domain.
PE
Pete
1 year ago
B) No
RO
Rodrigo
1 year ago
Ah, the age-old dilemma of RegEx for allow lists. This one's a tricky one, but the solution looks spot on!
LA
Lavelle
1 year ago
B) No
TO
Tonette
1 year ago
A) Yes
KA
Kati
1 year ago
A) Yes