Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam CRT-450 Topic 1 Question 59 Discussion

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

A developer created this Apex trigger that calls Myclass.myStaticMethod:

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage.

What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Aileen
3 months ago
I'm going with C. As long as the overall coverage is good, the deployment should go through. Maybe the developer was just lazy with the test method, but as long as the numbers look good, they're good to go!
upvoted 0 times
Carlota
2 months ago
Agreed, as long as the overall coverage is at 81%, the deployment should be successful.
upvoted 0 times
...
Clarence
2 months ago
Yeah, the test method calling the static method directly might not be ideal, but as long as the numbers are good, it should be fine.
upvoted 0 times
...
Jody
2 months ago
I think the deployment will go through as long as the overall coverage is good.
upvoted 0 times
...
...
Latrice
3 months ago
I agree with Gayla, the deployment should pass based on the code coverage provided.
upvoted 0 times
...
Gayla
3 months ago
But the question says the overall code coverage is 81%, so it should pass.
upvoted 0 times
...
Brock
3 months ago
Haha, the developer must have been in a hurry to write that test method! No assertions? What a rookie mistake. B has to be the correct answer, the deployment will fail for sure.
upvoted 0 times
...
Evan
3 months ago
I'm not sure about this one. The question mentions the trigger has no code coverage, so D might be the right answer. The deployment could fail because of that, even with the other class having good coverage.
upvoted 0 times
...
Francoise
3 months ago
The deployment should pass because the code coverage is over 75%, right? The question says the test method covers 81% of the code, so C seems like the correct answer.
upvoted 0 times
Ruth
1 months ago
That's right. Option C is the correct answer.
upvoted 0 times
...
Rachael
2 months ago
So, the deployment should pass because the Apex code has the required >75% code coverage.
upvoted 0 times
...
Alfreda
2 months ago
Yes, that's correct. The test method covers 81% of the code.
upvoted 0 times
...
Aleisha
2 months ago
The deployment should pass because the code coverage is over 75%, right?
upvoted 0 times
...
...
Torie
3 months ago
I believe the deployment will fail because the trigger has no code coverage.
upvoted 0 times
...
Gayla
3 months ago
I think the deployment will pass because the code has 81% coverage.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77