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 Exam B2C Commerce Developer Topic 7 Question 61 Discussion

Actual exam question for Salesforce's B2C Commerce Developer exam
Question #: 61
Topic #: 7
[All B2C Commerce Developer Questions]

A developer has the following files in template/resources:

account.proierties

weight.unit=kilos

account_en.propierties

weight.unit=stones

account_en_US.propierties

weight.unit= pounds

Using the default locale configuration, what is the current outcome of the page that renders the

account.isml template snippet below when visiting the Sofrefront with the English for Canada(en_CA) locale=

Your parcel weighs 10 ${Resource.msg('weight.unit','account')}

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Elmer
1 months ago
Who needs properties files when you can just hard-code the weight units? 10 stone, 10 pounds, 10 kilos - it's all the same to me!
upvoted 0 times
Rosamond
6 days ago
User2: I agree, it helps maintain consistency across different locales.
upvoted 0 times
...
Selma
7 days ago
User1: It's important to use properties files for localization.
upvoted 0 times
...
Jennifer
25 days ago
User1: True, it's important for localization and internationalization.
upvoted 0 times
...
Verlene
1 months ago
User2: I agree, using properties files ensures consistency in the application.
upvoted 0 times
...
Janna
1 months ago
User1: Hard-coding weight units can lead to inconsistencies.
upvoted 0 times
...
...
Thad
2 months ago
Hold on, we have multiple properties files, but no en_CA file? That's like trying to find a needle in a haystack. I'll just guess and hope for the best.
upvoted 0 times
...
Nickie
2 months ago
I'm not sure, but I think D) Your parcel weighs 10 kilos could also be a possibility if the default locale configuration is different.
upvoted 0 times
...
Felix
2 months ago
I'm stumped. C seems like the right answer, since the resource key 'weight.unit' is not defined in the account_en_CA.properties file.
upvoted 0 times
Francisca
1 months ago
User2: I agree, C seems to be the most logical choice in this scenario.
upvoted 0 times
...
Rhea
2 months ago
User1: I think the answer is C, since 'weight.unit' is not defined in the account_en_CA.properties file.
upvoted 0 times
...
...
Lili
2 months ago
I'm going with B. The account_en_US.properties file sets the weight.unit to pounds, and since we're using the default locale, that should take precedence.
upvoted 0 times
Camellia
14 days ago
Oh, I see your point. B does make sense considering the specific locale configuration. Thanks for clarifying!
upvoted 0 times
...
Deeanna
20 days ago
Actually, I believe it's B. The account_en_US.properties file specifically sets the weight.unit to pounds, overriding the default kilos.
upvoted 0 times
...
Elroy
26 days ago
I agree with you, D seems like the correct option based on the file configurations.
upvoted 0 times
...
Kendra
1 months ago
I think it's D. The account.properties file sets the weight.unit to kilos, which should be the default.
upvoted 0 times
...
...
Edgar
2 months ago
Hmm, I think the answer is D. The default locale is en_CA, and the weight.unit property is set to kilos in the account.properties file, so it should display the weight in kilos.
upvoted 0 times
...
Ludivina
2 months ago
I agree with Raina, the locale is set to en_CA so it should use the account_en.propierties file which has weight.unit=pounds.
upvoted 0 times
...
Raina
2 months ago
I think the answer is B) Your parcel weighs 10 pounds.
upvoted 0 times
...

Save Cancel