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 4 Question 65 Discussion

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

When using Okta Expression Language, which of the following will have the output: This is a test

Solution: String.replace("That is a test", "is", "at")

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Alyce
3 months ago
Agreed, it's a classic mistake with string replacement.
upvoted 0 times
...
Regenia
3 months ago
Pretty sure it should output "That at a test."
upvoted 0 times
...
Stephaine
3 months ago
Wait, really? I thought it would work!
upvoted 0 times
...
Viva
3 months ago
I thought it was yes at first!
upvoted 0 times
...
Karl
3 months ago
That's definitely a no.
upvoted 0 times
...
Raymon
4 months ago
I feel like this is tricky; I thought the replace method would just change the words directly, but I'm not confident about the final output.
upvoted 0 times
...
Ammie
4 months ago
I'm leaning towards "No" because "That is a test" doesn't match the output "This is a test" after the replacement.
upvoted 0 times
...
Theodora
4 months ago
I remember a similar question where we had to replace parts of a string, but I can't recall the exact syntax for Okta Expression Language.
upvoted 0 times
...
Helaine
4 months ago
I think the replace function changes "is" to "at", but I'm not sure if it will give the exact output we need.
upvoted 0 times
...
Alecia
5 months ago
Easy peasy! The solution provided is the correct answer. String.replace() is a standard Java method, and it will output "This is a test" just as the question states. I'm feeling confident about this one.
upvoted 0 times
...
German
5 months ago
Okay, I think I've got this. The key is that the question is specifically about Okta Expression Language, not just general Java string manipulation. I'll need to review my notes on Okta's syntax and functions to make sure I choose the right answer.
upvoted 0 times
...
Torie
5 months ago
Hmm, I'm a little confused by this one. The solution shows the replace() method being used, but the question is asking about Okta Expression Language. I'll need to think this through more carefully.
upvoted 0 times
...
Olive
5 months ago
I'm pretty sure the answer is A. The question is asking about the output of the String.replace() method, and the solution provided shows that the string "That is a test" will be replaced with "This is a test".
upvoted 0 times
...
Barrett
10 months ago
If this question was a pizza, it would be a 'That is a test' special. Jokes aside, B) No is the correct answer here.
upvoted 0 times
...
Arlene
10 months ago
String.replace()? More like String.disappointment() in this case. Looks like I need to brush up on my Okta Expression Language skills.
upvoted 0 times
...
Reena
10 months ago
Ha, I almost fell for that one. Tricky question, but B) No is the way to go. Gotta love those Okta Expression Language gotchas.
upvoted 0 times
Quentin
9 months ago
Ha, I almost fell for that one. Tricky question, but B) No is the way to go. Gotta love those Okta Expression Language gotchas.
upvoted 0 times
...
Eve
9 months ago
B) No
upvoted 0 times
...
Bea
9 months ago
A) Yes
upvoted 0 times
...
...
Paola
10 months ago
Ah, I see what you mean. The output of String.replace() is not 'This is a test', it's 'That at a test'. Good catch!
upvoted 0 times
Wayne
9 months ago
A) No
upvoted 0 times
...
Suzan
9 months ago
B) Yes
upvoted 0 times
...
Estrella
9 months ago
A) No
upvoted 0 times
...
...
Francis
10 months ago
I think the correct answer is B) No. The replace() function in Okta Expression Language doesn't return the modified string, it modifies the original string in place.
upvoted 0 times
Dean
9 months ago
I think the correct answer is B) No. The replace() function in Okta Expression Language doesn't return the modified string, it modifies the original string in place.
upvoted 0 times
...
Jerry
9 months ago
B) No
upvoted 0 times
...
Leoma
9 months ago
A) Yes
upvoted 0 times
...
...
Jarvis
11 months ago
I think the correct answer is A) Yes because the String.replace function will replace 'is' with 'at' in the given string.
upvoted 0 times
...
Corrina
11 months ago
B) No
upvoted 0 times
...
Jarvis
11 months ago
A) Yes
upvoted 0 times
...

Save Cancel