Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 336 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 336
Topic #: 1
[All Certified Platform Developer II Questions]

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?

  • A. Static resources
  • B. Custom metadata
  • C. Custom settings
  • D. System.Cookie class
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
beardAnt
3 weeks, 2 days ago
Selected Answer: C
Use protected custom settings when: You want to specify which profiles and users can access which secrets. Metadata types don’t offer the granularity of the custom settings hierarchy types, which allow you to specify to which profiles or users the secrets should be available. That’s why it is better to use a custom setting here. https://trailhead.salesforce.com/content/learn/modules/secure-secrets-storage/protect-secrets-using-platform-features
upvoted 1 times
...
FriedConsole2000
8 months, 1 week ago
Selected Answer: C
This says custom settings: https://developer.salesforce.com/docs/atlas.en-us.secure_coding_guide.meta/secure_coding_guide/secure_coding_storing_sensitive_data.htm
upvoted 1 times
...
Yas010101
9 months, 4 weeks ago
Selected Answer: B
You want to specify which profiles and users can access which secrets. Metadata types don’t offer the granularity of the custom settings hierarchy types, which allow you to specify to which profiles or users the secrets should be available. That’s why it is better to use a custom setting here. https://trailhead.salesforce.com/content/learn/modules/secure-secrets-storage/protect-secrets-using-platform-features
upvoted 1 times
...
moitam
1 year, 1 month ago
Selected Answer: B
B. This is because custom metadata fields can be used for secret storage in a similar way to custom settings, but with more advantages(1)(2). For proper secrecy, you can set their visibility to ”Protected” and contain them within a managed package(1)(2). Protected custom metadata API fields are a great choice for storing API keys or other secret keys, for example12. 1: https://trailhead.salesforce.com/content/learn/modules/secure-secrets-storage/protect-secrets-using-platform-features 2: https://developer.salesforce.com/docs/atlas.en-us.secure_coding_guide.meta/secure_coding_guide/secure_coding_storing_sensitive_data.htm
upvoted 1 times
Sri0507
10 months, 2 weeks ago
It should be Custom setting. Option C. Its at the end of the article. https://trailhead.salesforce.com/content/learn/modules/secure-secrets-storage/protect-secrets-using-platform-features You want to specify which profiles and users can access which secrets. Metadata types don’t offer the granularity of the custom settings hierarchy types, which allow you to specify to which profiles or users the secrets should be available. That’s why it is better to use a custom setting here.
upvoted 4 times
...
...
[Removed]
1 year, 2 months ago
I will retract my previous comment as it was incorrect.
upvoted 1 times
...
[Removed]
1 year, 2 months ago
The question is somewhat ambiguous, and it is difficult to decide between option B and C... Both hierarchical custom settings and custom metadata can have different values for each profile or user, but only custom metadata can be updated, so wouldn't 'B' be the correct answer?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...