Answer to Question 1
Query optimization refers to examining multiple ways of executing the same query and choosing the fastest option.
Answer to Question 2
A fact table contains fact-measure attributes and foreign keys that connect the fact table to the dimension tables.