When using Okta Expression Language, which of the following will have the output: okta.com
Solution: String.substringBefore("abc@okta.com", "@okta.com")
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
28 comments · newest first
MY
Myra
10 months ago
Wait, really? I didn't expect that!
YU
Yuette
10 months ago
Definitely outputs "okta.com".
ST
Stefania
10 months ago
I thought it would return "abc"!
VI
Victor
11 months ago
Nope, it doesn't work like that.
SH
Sherell
11 months ago
That's correct, it returns "okta.com"!
LA
Lashon
11 months ago
I’m a bit confused about this. I thought substringBefore would just return the part before the "@" but now I’m second-guessing myself.
TA
Tawny
11 months ago
I’m pretty confident that the output will be "okta.com" because it seems like it’s looking for what comes before the "@" symbol.
EL
Eleni
11 months ago
I remember practicing similar questions, and I feel like this one is tricky. I’m not entirely sure if it will give the expected output.
IR
Irma
12 months ago
I think the substringBefore function should return everything before the specified substring, so it might actually return "abc" instead of "okta.com".
WA
Wava
12 months ago
I'm confident I can solve this, but I want to double-check my work before submitting.
LO
Louvenia
1 year ago
I'm a bit confused by the Okta Expression Language part. Can someone explain that to me?
RE
Rene
1 year ago
No problem, I've got this. The solution is straightforward.
ST
Stefan
1 year ago
Okay, I think I know how to approach this. Let me give it a try.
CR
Cristal
1 year ago
Hmm, this looks like a tricky one. I'll need to think it through carefully.
CO
Cordie
1 year ago
I agree with Callie. The correct answer is A) Yes because the substringBefore function will return the part of the string before the specified delimiter, which in this case is '@okta.com'. So, the output will be 'abc'.
LU
Luther
1 year ago
A? B? I'm just going to roll the dice and hope for the best. This exam is making me feel like a Vegas high-roller.
BE
Bernadine
1 year ago
B
DE
Detra
1 year ago
A
LA
Lajuana
1 year ago
I think the correct answer is B) No because the substringBefore function will return the part of the string before the specified delimiter, which in this case is '@okta.com'. So, the output will be 'abc'.
GR
Gracia
1 year ago
String.substringBefore() is the way to go for this one. Easy peasy!
MA
Maryann
1 year ago
The output will be 'abc'.
JO
Josphine
1 year ago
String.substringBefore() is the correct method to use in this case.
TI
Timothy
1 year ago
A) Yes
CA
Callie
1 year ago
A) Yes
RE
Reynalda
1 year ago
Wow, that's a tricky one! Okta Expression Language can be a real brain-teaser.
JE
Jerrod
1 year ago
B) No
DE
Denny
1 year ago
A) Yes
LA
Lajuana
1 year ago
B) No