New Year Sale 2026! 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

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
2 months ago
Wait, why would you create a plain JS object in a controller?
upvoted 0 times
...
Willow
2 months ago
I think E is super important too!
upvoted 0 times
...
Venita
3 months ago
A is definitely one of the key operations!
upvoted 0 times
...
Elvera
3 months ago
C is a good choice, but not always necessary.
upvoted 0 times
...
Toshia
3 months ago
Totally agree with A and E, but B seems off to me.
upvoted 0 times
...
Glendora
3 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
3 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
4 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
4 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
4 months ago
Yep, I agree with Erin. Those three options cover the key duties of a controller in my experience.
upvoted 0 times
...
Erin
4 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
4 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
5 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
5 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
6 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
7 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
7 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
5 months ago
E) Use the model needed for the view.
upvoted 0 times
...
Earlean
5 months ago
C) Use middleware functions when applicable
upvoted 0 times
...
Huey
5 months ago
A) Generate the response as JSON or HTML
upvoted 0 times
...
...
Brandon
7 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
5 months ago
Generating the response, using middleware, and accessing the model are all typical controller responsibilities.
upvoted 0 times
...
Daryl
7 months ago
A, C, and E are indeed the correct operations for a controller.
upvoted 0 times
...
...
Marylyn
7 months ago
I believe C should also be done in a controller. Middleware functions can help with request processing.
upvoted 0 times
...
Mollie
7 months ago
I agree with Aliza. Those operations are essential for controller functionality.
upvoted 0 times
...
Aliza
8 months ago
I think A, B, and E should be done in a controller.
upvoted 0 times
...

Save Cancel