Q: 7
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?
Options
Discussion
Option A is correct here. Salesforce enforces that 75% code coverage for all Apex (including invoked via Agent Actions) when moving to production, no exceptions. Dependencies also need to be bundled in the deployment package. Pretty sure that's always the rule, but let me know if anyone's seen otherwise.
Option A saw a similar scenario in a mock and it was always about the 75% coverage rule.
A for sure. Salesforce always needs that 75% test coverage when deploying Apex to production, even if it's triggered by Agent Actions. Dependencies gotta come with the package too. Haven't seen any exceptions but happy to hear otherwise.
I see why B could look tempting but that’s the trap here. It’s A, prod always needs at least 75% coverage.
A tbh, Salesforce always enforces the 75% code coverage in prod deployments. No exceptions for Agent Actions.
B is wrong, it's A. Production deployments always need at least 75% test coverage for Apex classes, regardless of how they're invoked, even with Agent Actions. Also, you have to include all dependencies in your package. I'm sure about this unless Salesforce changed something recently.
A imo, B is a tricky one but production always needs 75% coverage for Apex.
Probably A, that's in all the official guide and practice exams too.
A
A
Be respectful. No spam.