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

Salesforce Certified Platform Development Lifecycle and Deployment Architect (Plat-Arch-202) Exam - Topic 8 Question 8 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Development Lifecycle and Deployment Architect (Plat-Arch-202) exam
Question #: 8
Topic #: 8
[All Salesforce Certified Platform Development Lifecycle and Deployment Architect (Plat-Arch-202) Questions]

A developer on the Universal Containers team has written a test class to test a method

that involves a web service callout. Within the test class, the developer is supposed to load test

data, create an instance of the Mock object, set the Test.setMock() to that Mock object, call

startTest(), execute the code that makes the callout, call stopTest(), and compare the result with

expectations. Unfortunately, the

Developer forgot to use the Test.setMock() method step.

What would happen when the developer runs this test class?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Miss
4 months ago
I agree, it has to be B. Skipping the callout just doesn’t make sense.
upvoted 0 times
...
Kate
4 months ago
I’ve seen it happen before, so C could be a possibility too.
upvoted 0 times
...
Jesusa
4 months ago
Wait, is it really impossible to miss Test.setMock()? Sounds odd.
upvoted 0 times
...
Bette
4 months ago
Definitely B! No way it skips the callout.
upvoted 0 times
...
Iesha
4 months ago
I think the test class fails with a message about web service callouts.
upvoted 0 times
...
Colette
5 months ago
I don't think it's true that the Developer Console won't let you save without the Test.setMock(). I feel like I've seen tests that compile but still have issues when run.
upvoted 0 times
...
Brynn
5 months ago
I have a vague recollection that if the mock isn't set, the test could still run but might fail based on the external service's response. So, option C could be correct?
upvoted 0 times
...
Eladia
5 months ago
I'm not entirely sure, but I think option B sounds familiar. I feel like I read somewhere that it would throw an error about not supporting callouts in test methods.
upvoted 0 times
...
Germaine
5 months ago
I remember practicing a similar question about web service callouts, and I think if the Test.setMock() is missing, the test might actually try to make the real callout.
upvoted 0 times
...
Clarinda
5 months ago
For this question, I'd focus on breaking down the key elements of voice (personality) versus tone (delivery/expression). That distinction seems crucial to answering it properly.
upvoted 0 times
...
Lorean
5 months ago
Hmm, I'm a bit unsure about this one. I know Kubernetes has a lot of different resource types, so I'll have to think through the options carefully.
upvoted 0 times
...
Rachael
5 months ago
This seems straightforward enough. I just need to find the change in the average collection period, then use the given information to calculate the cost of carrying the additional investment. I'm feeling pretty confident about this one.
upvoted 0 times
...
Bambi
5 months ago
I'm pretty confident I know the correct order for Problem Management activities. I think it's option C.
upvoted 0 times
...

Save Cancel