332
Views
7
Comments
Solved
When can we change a site property value?

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.

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello
Let 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.

  • Option 1: Site property values can only be changed in the service center
    Explanation: This is absolutely wrong because We can change the Site property manually from logic, however we can change it from service center as well, so we have another option as well.

  • Option 2: Site properties can only be changed in the service studio. 
    Explanation: As explained on the previous option we are not limited to only Service center.

  • Option3Site properties can have list type data type.
    Explanationthis is wrong because we can use basic data type in site property.

  • Option4: Site property values can be changed through an assign. 
    Explanation: this is the correct answer because we can change the value of site property from assign, and here when we read carefully it is written as can be changed, instead of can only, so this makes the difference between the sentences

    I hope this helps

    Thanks
    Tousif Khan
2022-12-09 04-50-17
Shubham Doshi

Good explanation!!

That is really tricky question I would say.

2020-09-18 09-37-36
Devendra Baghel

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


2023-09-15 13-23-27
Rodrigo Miranda Pereira

Thank u so much! I found this question very tricky as well. 

2022-05-02 13-50-49
Paulo Ritto

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

2023-09-15 13-23-27
Rodrigo Miranda Pereira

Paulo, thank u man! I was very confuse about this topic. Now I  believe I'll pass the exam :)

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello
Let 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.

  • Option 1: Site property values can only be changed in the service center
    Explanation: This is absolutely wrong because We can change the Site property manually from logic, however we can change it from service center as well, so we have another option as well.

  • Option 2: Site properties can only be changed in the service studio. 
    Explanation: As explained on the previous option we are not limited to only Service center.

  • Option3Site properties can have list type data type.
    Explanationthis is wrong because we can use basic data type in site property.

  • Option4: Site property values can be changed through an assign. 
    Explanation: this is the correct answer because we can change the value of site property from assign, and here when we read carefully it is written as can be changed, instead of can only, so this makes the difference between the sentences

    I hope this helps

    Thanks
    Tousif Khan
2022-12-09 04-50-17
Shubham Doshi

Good explanation!!

That is really tricky question I would say.

2023-09-15 13-23-27
Rodrigo Miranda Pereira

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)

SP.PNG
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.