
Explanation:
Box 1: SET QUERY_STORE = ON (OPERATION MODE = READ_WRITE);
As a pre-requisite, Query Store must be turned on.
Box 2: SET AUTOMATIC_TUNING (FORCE_LAST_GOOD_PLAN = ON)
To configure individual automatic tuning options via T-SQL, connect to the database and execute the query such as this one:
ALTER DATABASE current SET AUTOMATIC_TUNING (FORCE_LAST_GOOD_PLAN = ON) Setting the individual tuning option to ON will override any setting that database inherited and enable the tuning option.
Setting it to OFF will also override any setting that database inherited and disable the tuning option.
Reference:
https://docs.microsoft.com/en-us/sql/relational-databases/automatic-tuning/automatic-tuning
https://docs.microsoft.com/en-us/azure/azure-sql/database/automatic-tuning-enable