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

Okta Certified Administrator Exam - Topic 6 Question 70 Discussion

Actual exam question for Okta's Okta Certified Administrator exam
Question #: 70
Topic #: 6
[All Okta Certified Administrator Questions]

When using Okta Expression Language, which of the following will have the output: okta.com

Solution: String.substringBefore("abc@okta.com", "@okta.com")

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Myra
2 months ago
Wait, really? I didn't expect that!
upvoted 0 times
...
Yuette
3 months ago
Definitely outputs "okta.com".
upvoted 0 times
...
Stefania
3 months ago
I thought it would return "abc"!
upvoted 0 times
...
Victor
3 months ago
Nope, it doesn't work like that.
upvoted 0 times
...
Sherell
3 months ago
That's correct, it returns "okta.com"!
upvoted 0 times
...
Lashon
3 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.
upvoted 0 times
...
Tawny
4 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.
upvoted 0 times
...
Eleni
4 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.
upvoted 0 times
...
Irma
4 months ago
I think the substringBefore function should return everything before the specified substring, so it might actually return "abc" instead of "okta.com".
upvoted 0 times
...
Wava
4 months ago
I'm confident I can solve this, but I want to double-check my work before submitting.
upvoted 0 times
...
Louvenia
4 months ago
I'm a bit confused by the Okta Expression Language part. Can someone explain that to me?
upvoted 0 times
...
Rene
5 months ago
No problem, I've got this. The solution is straightforward.
upvoted 0 times
...
Stefan
5 months ago
Okay, I think I know how to approach this. Let me give it a try.
upvoted 0 times
...
Cristal
5 months ago
Hmm, this looks like a tricky one. I'll need to think it through carefully.
upvoted 0 times
...
Cordie
7 months 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'.
upvoted 0 times
...
Luther
7 months 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.
upvoted 0 times
Bernadine
6 months ago
B
upvoted 0 times
...
Detra
7 months ago
A
upvoted 0 times
...
...
Lajuana
7 months 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'.
upvoted 0 times
...
Gracia
7 months ago
String.substringBefore() is the way to go for this one. Easy peasy!
upvoted 0 times
Maryann
6 months ago
The output will be 'abc'.
upvoted 0 times
...
Josphine
6 months ago
String.substringBefore() is the correct method to use in this case.
upvoted 0 times
...
Timothy
6 months ago
A) Yes
upvoted 0 times
...
...
Callie
7 months ago
A) Yes
upvoted 0 times
...
Reynalda
8 months ago
Wow, that's a tricky one! Okta Expression Language can be a real brain-teaser.
upvoted 0 times
Jerrod
7 months ago
B) No
upvoted 0 times
...
Denny
7 months ago
A) Yes
upvoted 0 times
...
...
Lajuana
8 months ago
B) No
upvoted 0 times
...

Save Cancel