What can you use to register the JavaScript implementation of an event handler for external services to the framework?
Suggested Answer: A
Get Premium C_CPE_2409 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
40 comments · newest first
AL
Alva
11 months ago
Wait, an @impl annotation? That's new to me!
MI
Mireya
11 months ago
C is interesting, but does it really work like that?
TU
Tuyet
11 months ago
I think it's definitely A! That's how I've done it.
DY
Dyan
11 months ago
B seems more appropriate for serving requests.
LI
Lizette
11 months ago
I disagree, D doesn't sound right for event handlers.
GE
Georgene
12 months ago
I vaguely remember something about using an @impl annotation in the CDS model, but I can't remember if that's for event handlers or something else.
YV
Yvonne
12 months ago
I feel like the answer could be related to the .cds file, but I can't recall if it specifically needs a .js file with the same name.
DA
Danica
1 year ago
I remember practicing a question about cds.serve() and how it relates to event handling. Could that be the answer here?
ME
Melodie
1 year ago
I think we might need to use cds.connect() for registering event handlers, but I'm not entirely sure if it's the right choice.
HU
Huey
1 year ago
I'm pretty confident that the answer is option B. The question specifically mentions registering event handlers for external services, and the documentation I've seen indicates that the cds.serve() method is the way to do that in this framework.
KA
Karan
1 year ago
Okay, let me think this through. The question is asking about registering event handlers for external services, so I don't think the .js file or the @impl annotation options are relevant. I'm going to go with either A or B, but I'm not 100% sure which one is the correct answer.
SK
Skye
1 year ago
Ah, I think I've seen this before. If I remember correctly, the way to register event handlers in this framework is to use an inline function passed to the result of cds.connect(). So I'm going to go with option A.
CR
Craig
1 year ago
I'm a bit confused by this question. I know we need to register event handlers, but I'm not sure if the options provided are the right way to do that in this framework. I might need to review the documentation again to make sure I understand the correct approach.
RA
Raelene
1 year ago
Hmm, this looks like it's asking about how to register event handlers in a JavaScript framework. I'm pretty sure the answer is an inline function passed to the result of cds.serve(), so I'll go with option B.
FE
Fernanda
1 year ago
I'm getting flashbacks to that time I tried to register a JavaScript event handler with a bag of Skittles. Needless to say, it didn't work.
IL
Ilene
1 year ago
D) An @impl annotation in your CDS model file
FR
Francisca
1 year ago
C) A.js file with the same name as the .cds file
CA
Carri
1 year ago
B) An inline function passed to result of cds.serve()
LY
Lyndia
1 year ago
A) An inline function passed to result of cds.connect()
TA
Tamekia
1 year ago
Option B? More like option 'Bee-lieve it or not, that's the wrong answer'! Am I right, folks?
TE
Tesha
1 year ago
This is a real brain-teaser! I'm going to have to go with option D. After all, what good is a CDS model without some sweet, sweet annotations?
MA
Mable
2 years ago
Hold up, why are we even considering a .js file when this is a CDS question? Option D sounds like the obvious choice to me.
AU
Audria
1 year ago
Let's go with option D then.
MA
Marylou
1 year ago
Yeah, I agree. An @impl annotation in the CDS model file is the way to go.
EZ
Ezekiel
1 year ago
Definitely, that's the right way to register the JavaScript implementation of an event handler.
FR
Francesco
1 year ago
I think option D is the correct choice.
JA
Janna
1 year ago
Yeah, I agree. An @impl annotation in the CDS model file is the way to go.
BR
Brett
1 year ago
I think option D is the correct choice.
MA
Maryln
2 years ago
Hmm, I'm not so sure. Didn't we learn that `cds.connect()` is used to connect to external services? I'm leaning towards option A.
AV
Avery
1 year ago
I'm not sure, but I think option A is the correct choice.
JE
Jesusita
1 year ago
But what about option D? Could that also be a possibility?
KA
Kaycee
1 year ago
I think you're right, option A makes sense.
KE
Kenneth
2 years ago
I'm not sure, but I think B) An inline function passed to result of cds.serve() could also be a valid option
DO
Doug
2 years ago
I think option B is the way to go. The documentation clearly states that `cds.serve()` is used to register event handlers.
HI
Hillary
1 year ago
Option B is the correct method for registering event handlers.
EL
Eleni
1 year ago
Yes, option B is the way to register event handlers.
CA
Casie
1 year ago
I think option B is the most appropriate.
AL
Allene
1 year ago
I agree, option B is the correct choice.
SH
Shala
2 years ago
I disagree, I believe the correct answer is D) An @impl annotation in your CDS model file
MI
Mitsue
2 years ago
I think the answer is A) An inline function passed to result of cds.connect()