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

SAP Exam C_CPE_2409 Topic 1 Question 11 Discussion

Actual exam question for SAP's C_CPE_2409 exam
Question #: 11
Topic #: 1
[All C_CPE_2409 Questions]

What can you use to register the JavaScript implementation of an event handler for external services to the framework?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Fernanda
3 months 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.
upvoted 0 times
Ilene
1 months ago
D) An @impl annotation in your CDS model file
upvoted 0 times
...
Francisca
1 months ago
C) A.js file with the same name as the .cds file
upvoted 0 times
...
Carri
2 months ago
B) An inline function passed to result of cds.serve()
upvoted 0 times
...
Lyndia
2 months ago
A) An inline function passed to result of cds.connect()
upvoted 0 times
...
...
Tamekia
3 months ago
Option B? More like option 'Bee-lieve it or not, that's the wrong answer'! Am I right, folks?
upvoted 0 times
...
Tesha
3 months 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?
upvoted 0 times
...
Mable
3 months 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.
upvoted 0 times
Audria
2 months ago
Let's go with option D then.
upvoted 0 times
...
Marylou
2 months ago
Yeah, I agree. An @impl annotation in the CDS model file is the way to go.
upvoted 0 times
...
Ezekiel
2 months ago
Definitely, that's the right way to register the JavaScript implementation of an event handler.
upvoted 0 times
...
Francesco
2 months ago
I think option D is the correct choice.
upvoted 0 times
...
Janna
3 months ago
Yeah, I agree. An @impl annotation in the CDS model file is the way to go.
upvoted 0 times
...
Brett
3 months ago
I think option D is the correct choice.
upvoted 0 times
...
...
Maryln
3 months 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.
upvoted 0 times
Avery
2 months ago
I'm not sure, but I think option A is the correct choice.
upvoted 0 times
...
Jesusita
2 months ago
But what about option D? Could that also be a possibility?
upvoted 0 times
...
Kaycee
3 months ago
I think you're right, option A makes sense.
upvoted 0 times
...
...
Kenneth
3 months ago
I'm not sure, but I think B) An inline function passed to result of cds.serve() could also be a valid option
upvoted 0 times
...
Doug
4 months ago
I think option B is the way to go. The documentation clearly states that `cds.serve()` is used to register event handlers.
upvoted 0 times
Hillary
2 months ago
Option B is the correct method for registering event handlers.
upvoted 0 times
...
Eleni
2 months ago
Yes, option B is the way to register event handlers.
upvoted 0 times
...
Casie
3 months ago
I think option B is the most appropriate.
upvoted 0 times
...
Allene
3 months ago
I agree, option B is the correct choice.
upvoted 0 times
...
...
Shala
4 months ago
I disagree, I believe the correct answer is D) An @impl annotation in your CDS model file
upvoted 0 times
...
Mitsue
4 months ago
I think the answer is A) An inline function passed to result of cds.connect()
upvoted 0 times
...

Save Cancel