How can you view the Query Store settings for a database?
This can be found (near the end) in the sys.database_query_store_options DMV. 

SELECT size_based_cleanup_mode, size_based_cleanup_mode_desc
FROM sys.database_query_store_options