I had a question at the exam for react associate about when to change a site property value:
Which of the options below is correct:
1. Site property values can only be changed in the service center (I choose this one :( )
2. Site properties can only be changed in the service studio.
3. Site properties can have list type data type
4. Site property values can be changed through an assign.
HelloLet me Explain you each and every point in detail and which one is correct and why, FYI options are there which looks similar so that the question become tricky and you need to think twice before marking any.
Good explanation!!
That is really tricky question I would say.
I think 4th answer is correct . We can change the Site property via assign through code. But its not a best practice as changing the site property at run time will invalidate all the caching of the module and its consumer modules
Thank u so much! I found this question very tricky as well.
Hi Rodrigo,
4) Is indeed the correct answer as exclusion of all others, although I agree that the question is quite awkward in the sense that they want you to answer something that is considered a bad practice, as Devendra explained.
However 1) is indeed wrong, as you can change the site property manually in service center BUT ALSO change it programmatically in service studio.
Cheers,
Paulo
Paulo, thank u man! I was very confuse about this topic. Now I believe I'll pass the exam :)
Thank you again to everyone who answered. I'll leave here my conclusions about the topic. There's a print with an example of SP values changing via development.
When can site property values be changed?
- Not only through the service center.
- Default can be changed at the service studio or through complementary logic (development)
- The effective value can only be changed in the serv center
- SS key can be changed through complementary logic (development)