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 Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 6 Question 72 Discussion

Posted by Mariann on Jan 13, 2025 at 11:49 PM

An administrator has just provided a developer with a new org and username. Which two sets of steps can the developer use to authorize the org and begin deploying Lightning web components?

What should a developer do to expose a public property in a Lightning web component?

Suggested Answer: C

To make an integration available for selection in Salesforce B2B Commerce, a developer must create a RegisteredExternalService record. This can be accomplished using tools like Workbench, which allow for direct interaction with Salesforce's backend database. By registering the external service, the integration becomes selectable within the B2B Commerce setup, allowing it to be associated with specific stores or contexts. Salesforce documentation on integrating external services with B2B Commerce provides step-by-step instructions on registering these services to enable seamless integration and functionality within the platform.


Get Premium Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
NA
Nan 11 months ago
Just to clarify, @api is the correct answer here, right?
KA
Karon 11 months ago
I thought @public was a thing too, but I guess not?
EL
Elvera 12 months ago
Wait, isn't @track still relevant for reactive properties?
BR
Breana 12 months ago
Totally agree, @api is the way to go!
OL
Oliva 1 year ago
You need to use @api to expose a public property!
HO
Holley 1 year ago
I definitely recall that @api is the correct decorator for exposing public properties, but I need to double-check the steps for authorizing the org.
RE
Ressie 1 year ago
I feel like there was a similar question on the last practice exam about decorators, and I think @track was mentioned, but it doesn't seem right for public properties.
LI
Lizette 1 year ago
I remember practicing a question about public properties in Lightning components, and I think it was related to using @api, but I could be mixing it up with something else.
PE
Pearly 1 year ago
I think to authorize the org, we might need to use the Salesforce CLI, but I'm not completely sure about the exact commands.
RO
Rochell 1 year ago
Alright, let's do this. The key here is to remember the different decorators used in Lightning web components. I'm pretty sure the answer for the public property part is @api, but I'll double-check the other options just to be sure.
BO
Bo 1 year ago
I'm a little confused by the first part of the question. I know there are different ways to authorize an org, but I'm not sure which two sets of steps they're looking for. I'll have to think about that one.
FR
Franchesca 1 year ago
Ah, this is a good one. I remember learning about the @api decorator for exposing public properties in Lightning web components. I'm pretty confident I can select the right answer for that part.
JO
Josue 1 year ago
Okay, let's see here. The first part of the question is asking about authorizing the org and deploying Lightning web components. I'm a bit unsure about the specific steps, but I'll try to think it through.
TE
Teddy 1 year ago
Hmm, this question seems straightforward. I think I'll start by reviewing the steps to authorize the new org and then look at the options for exposing a public property in a Lightning web component.
LE
Lewis 1 year ago
Decorating with @property? That's not even a real Aura/LWC decorator. This exam is testing our knowledge, not our ability to make up new syntax!
BA
Barrie 1 year ago
I'm gonna go with D. Seems like the obvious choice to make a property public. Maybe I should've tried that first before wasting time on the other options.
DE
Deeann 1 year ago
↳ replying to Barrie
Ilona: Good to know we're on the same page. Let's try it out and see if it works.
IL
Ilona 1 year ago
↳ replying to Barrie
User 2: Yeah, I agree. @api is the way to go for that.
NO
Noah 1 year ago
↳ replying to Barrie
User 1: I think D is the right choice. It makes sense to use @api to expose a public property.
BR
Britt 2 years ago
Hah, decorating the field with @track? That's for internal state, not public properties. Rookie mistake!
AD
Adelina 1 year ago
↳ replying to Britt
Dorthy: Oh, my bad. Thanks for the clarification!
DO
Dorthy 1 year ago
↳ replying to Britt
User 2: No, @api is the correct way to expose a public property in a Lightning web component.
JA
Jarod 1 year ago
↳ replying to Britt
User 1: I think the developer should decorate the field with @api.
VI
Viki 1 year ago
↳ replying to Britt
User 3: Definitely not @track, that's for internal state
LA
Lai 1 year ago
↳ replying to Britt
User 2: Lai is right, @property is used to expose public properties
MA
Margurite 1 year ago
↳ replying to Britt
User 1: A) Decorate the field with @property
AR
Arminda 2 years ago
I tried option C earlier and it didn't work. Guess I need to read the docs more carefully next time.
FL
Floyd 2 years ago
Option D is the correct answer. The @api decorator exposes the field as a public property in the Lightning web component.
BA
Barrett 1 year ago
↳ replying to Floyd
D) Decorate the field with @api
OD
Odette 1 year ago
↳ replying to Floyd
C) Decorate the field with @public
LE
Leila 1 year ago
↳ replying to Floyd
B) Decorate the field with @track
ME
Mertie 1 year ago
↳ replying to Floyd
A) Decorate the field with @property
JO
Jolanda 2 years ago
I'm not sure, but I think @track is also a valid option for exposing a public property.
SH
Sharen 2 years ago
I agree with Glory, @api is the correct way to expose a public property.
GL
Glory 2 years ago
I think the developer should decorate the field with @api.
0/2000 characters

Save Cancel