Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce CCM-101 Exam - Topic 9 Question 25 Discussion

Actual exam question for Salesforce's CCM-101 exam
Question #: 25
Topic #: 9
[All CCM-101 Questions]

A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.

Which snippet of code should be used?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Chantay
5 months ago
D is definitely not it, that context function is weird.
upvoted 0 times
...
Earnestine
5 months ago
Wait, why is "producto" spelled like that?
upvoted 0 times
...
Arlene
5 months ago
C seems off, isn't it using the wrong syntax?
upvoted 0 times
...
Cherri
6 months ago
I think B is the right choice!
upvoted 0 times
...
Wynell
6 months ago
Option A looks correct to me.
upvoted 0 times
...
Delmy
6 months ago
I’m leaning towards option D, but I’m a bit confused about the context function. Wasn't there something about it in the examples we went over?
upvoted 0 times
...
Mauricio
6 months ago
I have a feeling that option C might be incorrect because I don't think template literals work with Logger.warn.
upvoted 0 times
...
Meaghan
6 months ago
I remember practicing with similar logging questions, and I feel like using placeholders like {0} is common, but I can't recall if it's the right choice here.
upvoted 0 times
...
Brett
7 months ago
I think option A looks familiar, but I'm not sure if the syntax is correct for the logging method.
upvoted 0 times
...
Enola
7 months ago
Okay, I've got this. The build tool has to be able to build the software when changes are committed, and it needs to run unit tests on the committed code. Those are the two critical characteristics I'm looking for here.
upvoted 0 times
...
Deeanna
7 months ago
Hmm, the solution seems counterintuitive. I'll need to review my SAML 2.0 knowledge to answer this.
upvoted 0 times
...
Tess
11 months ago
Haha, looks like someone forgot to spell-check 'producto' in the question. I'd go with option C just to annoy the developers.
upvoted 0 times
...
Vicente
11 months ago
I'm going with option D. It's the classic printf-style formatting with %s for the ID and name.
upvoted 0 times
Jesse
10 months ago
I agree with option D. It's the classic way to format the log message.
upvoted 0 times
...
Annelle
10 months ago
No, A is the correct one because it uses the correct syntax for logging the ID and name of the product.
upvoted 0 times
...
Zona
10 months ago
I think option A is better. It uses {0} and {1} for the ID and name.
upvoted 0 times
...
Carma
11 months ago
Really? I thought D was the right choice.
upvoted 0 times
...
Javier
11 months ago
Option D is incorrect. The correct answer is A.
upvoted 0 times
...
Ivory
11 months ago
Option D is correct. It uses %s for the ID and name.
upvoted 0 times
...
...
Elinore
12 months ago
Option A looks good to me. It uses the {0} and {1} placeholders to represent the ID and name, respectively.
upvoted 0 times
Lorenza
10 months ago
User 3: I agree, option A is the way to go.
upvoted 0 times
...
Kenia
11 months ago
User 2: Yeah, option A uses the placeholders {0} and {1} for ID and name.
upvoted 0 times
...
Rebbecca
11 months ago
User 1: I think option A is the correct one.
upvoted 0 times
...
...
Kimbery
1 year ago
I'm not sure, but C also looks like a possible option.
upvoted 0 times
...
Eva
1 year ago
I think option C is the correct one. It uses string interpolation to insert the values of myProduct.getID() and myProduct.getName() directly into the log message.
upvoted 0 times
Melynda
11 months ago
I think option A is better. It uses placeholders to insert the values of myProduct.getID() and myProduct.getName() into the log message.
upvoted 0 times
...
Providencia
12 months ago
I agree, option C is the correct one. It's using string interpolation for the log message.
upvoted 0 times
...
...
Lucy
1 year ago
I agree with Elise, A seems like the right choice.
upvoted 0 times
...
Elise
1 year ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel