PDI 試験問題を無料オンラインアクセス
| 試験コード: | PDI |
| 試験名称: | Platform Developer I (PDI) |
| 認定資格: | Salesforce |
| 無料問題数: | 205 |
| 更新日: | 2026-07-19 |
A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length of the Apex transaction; while being able to share the variable's state between trigger executions.
How should the developer declare maxAttempts to meet these requirements?
Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?
Managers at Universal Containers want to ensure that only decommissioned containers are able to be deleted in the system. To meet the business requirement a Salesforce developer adds "Decommissioned" as a picklist value for the Status _c custom field within the Container _c object.
Which two approaches could a developer use to enforce only Container records with a status of
"Decommissioned" can be deleted?
Choose 2 answers
