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 8 Question 66 Discussion

Which three operations should be done in a controller?Choose 3 answers
A) Generate the response as JSON or HTML and C) Use middleware functions when applicable and E) Use the model needed for the view.
B) Use the Script API to generate data for the view.
D) Create a plain JavaScript object representing a system object

Salesforce CCM-101 Exam - Topic 8 Question 66 Discussion

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

Which three operations should be done in a controller?

Choose 3 answers

Show Suggested Answer Hide Answer
Suggested Answer: A, C, E

Contribute your Thoughts:

0/2000 characters
Misty
5 months ago
Wait, why would you create a plain JS object in a controller?
upvoted 0 times
...
Willow
6 months ago
I think E is super important too!
upvoted 0 times
...
Venita
6 months ago
A is definitely one of the key operations!
upvoted 0 times
...
Elvera
6 months ago
C is a good choice, but not always necessary.
upvoted 0 times
...
Toshia
6 months ago
Totally agree with A and E, but B seems off to me.
upvoted 0 times
...
Glendora
6 months ago
I’m a bit confused about the Script API part; I thought that was more related to the view layer than the controller.
upvoted 0 times
...
Rochell
7 months ago
I feel like using the model needed for the view is a key operation, but I can't recall if creating a plain JavaScript object is really part of the controller's responsibilities.
upvoted 0 times
...
Bette
7 months ago
I remember practicing a question similar to this, and I think using middleware functions is important for handling requests.
upvoted 0 times
...
Mattie
7 months ago
I think generating the response as JSON or HTML is definitely something a controller should do, but I'm not sure about the other two.
upvoted 0 times
...
Francoise
7 months ago
Yep, I agree with Erin. Those three options cover the key duties of a controller in my experience.
upvoted 0 times
...
Erin
7 months ago
I think I'll go with A, C, and E. The controller should generate the response, use middleware when needed, and leverage the appropriate model.
upvoted 0 times
...
Aide
8 months ago
I'm a bit unsure about B and C. Using the Script API and middleware functions - are those really controller responsibilities?
upvoted 0 times
...
Rodney
8 months ago
Okay, let's see. I know the controller is responsible for handling the request and generating the response, so A and E seem like good options.
upvoted 0 times
...
Terrilyn
8 months ago
Hmm, this looks like a tricky one. I'll need to think carefully about the responsibilities of a controller.
upvoted 0 times
...
Isadora
10 months ago
I'd go with A, C, and E. Generating the response, using middleware, and accessing the model - that's the holy trinity of controller operations!
upvoted 0 times
...
Daniel
10 months ago
Haha, I bet the person who wrote this question is a backend developer who's never had to deal with the view layer! The controller is for business logic, not generating data for the view.
upvoted 0 times
...
Annmarie
10 months ago
I agree with Brandon. Those three options cover the main functions of a controller. B and D seem more like view or model responsibilities.
upvoted 0 times
Viva
8 months ago
E) Use the model needed for the view.
upvoted 0 times
...
Earlean
9 months ago
C) Use middleware functions when applicable
upvoted 0 times
...
Huey
9 months ago
A) Generate the response as JSON or HTML
upvoted 0 times
...
...
Brandon
10 months ago
A, C, and E seem like the correct operations for a controller. Generating the response, using middleware, and accessing the model are all typical controller responsibilities.
upvoted 0 times
Mitzie
9 months ago
Generating the response, using middleware, and accessing the model are all typical controller responsibilities.
upvoted 0 times
...
Daryl
10 months ago
A, C, and E are indeed the correct operations for a controller.
upvoted 0 times
...
...
Marylyn
10 months ago
I believe C should also be done in a controller. Middleware functions can help with request processing.
upvoted 0 times
...
Mollie
11 months ago
I agree with Aliza. Those operations are essential for controller functionality.
upvoted 0 times
...
Aliza
11 months ago
I think A, B, and E should be done in a controller.
upvoted 0 times
...

Save Cancel