Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Okta Certified Administrator Exam - Topic 4 Question 65 Discussion

Posted by Justine on Mar 21, 2025 at 11:28 PM

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")

Suggested Answer: A

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
30 comments · newest first
AL
Alyce 10 months ago
Agreed, it's a classic mistake with string replacement.
RE
Regenia 10 months ago
Pretty sure it should output "That at a test."
ST
Stephaine 11 months ago
Wait, really? I thought it would work!
VI
Viva 11 months ago
I thought it was yes at first!
KA
Karl 11 months ago
That's definitely a no.
RA
Raymon 11 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.
AM
Ammie 12 months ago
I'm leaning towards "No" because "That is a test" doesn't match the output "This is a test" after the replacement.
TH
Theodora 12 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.
HE
Helaine 12 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.
AL
Alecia 1 year 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.
GE
German 1 year 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.
TO
Torie 1 year 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.
OL
Olive 1 year 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".
BA
Barrett 1 year 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.
AR
Arlene 1 year ago
String.replace()? More like String.disappointment() in this case. Looks like I need to brush up on my Okta Expression Language skills.
RE
Reena 1 year 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.
QU
Quentin 1 year ago
↳ replying to Reena
Ha, I almost fell for that one. Tricky question, but B) No is the way to go. Gotta love those Okta Expression Language gotchas.
EV
Eve 1 year ago
↳ replying to Reena
B) No
BE
Bea 1 year ago
↳ replying to Reena
A) Yes
PA
Paola 1 year 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!
WA
Wayne 1 year ago
↳ replying to Paola
A) No
SU
Suzan 1 year ago
↳ replying to Paola
B) Yes
ES
Estrella 1 year ago
↳ replying to Paola
A) No
FR
Francis 1 year 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.
DE
Dean 1 year ago
↳ replying to Francis
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.
JE
Jerry 1 year ago
↳ replying to Francis
B) No
LE
Leoma 1 year ago
↳ replying to Francis
A) Yes
JA
Jarvis 2 years ago
I think the correct answer is A) Yes because the String.replace function will replace 'is' with 'at' in the given string.
CO
Corrina 2 years ago
B) No
JA
Jarvis 2 years ago
A) Yes
0/2000 characters

Save Cancel