Salesforce Certified Agentforce Specialist — Question 13
Universal Containers' Agent Action includes several Apex classes for the new Agentforce Agent.
What is an important consideration when deploying Apex that is invoked by an Agent Action?
Answer options
- A. The Apex classes may bypass the 75% code coverage requirement as long as they are only used by the agent.
- B. Apex classes invoked by an Agent Action may be deployed with less than 75% test coverage as long as the agent is not activated in production.
- C. The Apex classes must have at least 75% code coverage from unit tests, and all dependencies must be in the deployment package.
Correct answer: C
Explanation
The correct answer is C because Salesforce mandates that all Apex classes must have at least 75% code coverage to ensure code quality and reliability. Options A and B are incorrect as they suggest that the code coverage requirement can be bypassed under certain circumstances, which is not allowed in Salesforce deployments.