I have provided solution as
1st attempt, db.restaurants.createIndex( { stars: 1,stars: 1 } ) - > accidental copy paste
2nd attempt db.restaurants.createIndex( { stars: 1 } )
3rd attempt db.restaurants.createIndex( { stars: 1,cuisine: 1 } )
All answers failed. But if I see answer explanation it is same as mine.