Salesforce Certified Platform Developer II — Question 219

A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets.

What should be used to store this data?

Answer options

Correct answer: C

Explanation

Custom settings are designed specifically for storing application configuration data that can be accessed by different profiles and users, making them ideal for this purpose. Static resources and custom metadata do not provide the necessary access control features, while the System.Cookie class is not suitable for storing sensitive information securely.