BlackFriday 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 Development Lifecycle and Deployment Architect Topic 3 Question 49 Discussion

Actual exam question for Salesforce's Development Lifecycle and Deployment Architect exam
Question #: 49
Topic #: 3
[All Development Lifecycle and Deployment Architect Questions]

A team of developers at Universal Containers has developed Apex Triggers and Apex

Classes in a sandbox. The team has also written test classes to unit test these triggers and classes. When executed in the sandbox, all the test methods pass and all the classes meet the minimum code coverage requirement. But when they tried deploying these components to production, a

few of these test methods failed

What should an architect recommend?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Dorothy
1 months ago
I think setting SeeAllData to True and generating data in test methods could also be a good option.
upvoted 0 times
...
Yvette
1 months ago
I agree with Caitlin. It's important to have accurate data in production for testing.
upvoted 0 times
...
Caitlin
1 months ago
I think we should create test data in production before deploying.
upvoted 0 times
...
Keneth
2 months ago
I'm feeling lucky, so I'm gonna go with A. Create the test data in production before deploying the test classes. What could go wrong, right? *laughs nervously*
upvoted 0 times
...
Antonio
2 months ago
Haha, these questions always try to trick you. I'm going with C. Explicitly set SeeAllData to True and generate the data in the test methods. Best of both worlds, right?
upvoted 0 times
Joanne
15 days ago
That's a good point. Maybe creating test data in production before deploying would be a safer option.
upvoted 0 times
...
Chara
16 days ago
But wouldn't setting SeeAllData to True affect other test classes as well?
upvoted 0 times
...
Huey
20 days ago
Yeah, that sounds like a good approach. It ensures the test methods have access to production data.
upvoted 0 times
...
Chanel
20 days ago
I think C is the way to go. Set SeeAllData to True and generate data in the test methods.
upvoted 0 times
...
...
Annmarie
2 months ago
Hmm, I think B is the way to go. If you set SeeAllData to True, you can use the real data in production, right? That's gotta be easier than generating a whole bunch of test data.
upvoted 0 times
...
Cristal
2 months ago
Oh man, I totally had this one! The correct answer is D. Using SeeAllData in production is a big no-no, it can lead to some serious issues. Better to generate data in the test methods, that's the way to go.
upvoted 0 times
Lyla
1 months ago
Generating data in the test methods is definitely the safer option.
upvoted 0 times
...
Trevor
1 months ago
I agree, using SeeAllData in production is risky.
upvoted 0 times
...
...

Save Cancel