exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 32 discussion

Actual exam question from Salesforce's CRT-450
Question #: 32
Topic #: 1
[All CRT-450 Questions]

Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?

  • A. The API name is not changed and there are no other impacts.
  • B. The API name of the field and the reference in the test class is changed.
  • C. The API name of the field is changed, and a warning is issued to update the class.
  • D. The API name of the field and the reference in the test class is updated.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PiyushShah
Highly Voted 4 years ago
answer is A. The API name is not changed and there are no other impacts.
upvoted 17 times
...
Vppproj
Highly Voted 3 years, 10 months ago
https://help.salesforce.com/articleView?id=000314907&type=1&mode=1 Answer seems to be A
upvoted 12 times
...
TDB97
Most Recent 2 weeks, 3 days ago
Selected Answer: A
You can not change the api name of something that is being referenced in apex
upvoted 1 times
...
nikeshmhj
4 weeks ago
C is correct.We can change the API name of the field and is saved as well, tried in developer edition.some fields with reference to trigger cannot be changed.
upvoted 1 times
...
Brayyyy
5 months, 2 weeks ago
Selected Answer: A
A correct answer
upvoted 1 times
...
helper_raw
7 months, 1 week ago
Selected Answer: A
A is correct
upvoted 1 times
...
BeatrizBernardo
1 year ago
Selected Answer: A
it is A
upvoted 3 times
...
1vanTT
1 year, 3 months ago
Answer is A. Just replicated this in a dev org and got the below error when trying to update the API name through schema builder: Cannot rename custom field referenced in Apex class or trigger: <a href="/01p0900000TfMJj">changeMeTest</a> Interestingly you also get a warning ahead of the error about changing anything that could mess with integrations.
upvoted 2 times
...
apuchowdhury80
1 year, 6 months ago
Selected Answer: A
Not possible to change the API name as it is referenced in Apex.
upvoted 3 times
...
ronak_h33t
1 year, 7 months ago
Selected Answer: A
A...........
upvoted 2 times
...
ApexMike
1 year, 9 months ago
You cannot change api name of a field if it's referenced in Apex code. A is correct.
upvoted 2 times
...
Shubh01
2 years, 2 months ago
Selected Answer: A
I am always right.
upvoted 4 times
...
TestEm
2 years, 10 months ago
Answer is A. The API name is not changed and there are no other impacts. Just tried to update both on Setup and Schema Builder and error message shows and nothing has changed
upvoted 4 times
...
Amirishettydivyashree
3 years, 4 months ago
If a variable is used in any apex class, its API name cannot be changed. Answer is A
upvoted 4 times
...
PP09
4 years ago
Ans is 'C' , I tried changing the API name from schema and its shows warning when save changes.
upvoted 2 times
MarcoDaCD
3 years, 7 months ago
Yes, Show warning but the API Name not change. The answer is A.
upvoted 2 times
...
...
am1
4 years, 1 month ago
I think, the ans. should be B. Since the user cannot change the API name without first removing the reference from the Test class.
upvoted 1 times
PiyushShah
4 years ago
As it is asking for the end result this is not the answer. It is not mentioned that the API name is removed before the action
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago