Question Quiz Chapter 3

Hi, i have doubt on this question:

Given the following shard key, which of the following queries results in a targeted query?
{ "sku" : 1, "name" : 1 }

What i understand on the command is that it’s telling that we are declaring 2 shard keys (sku and name) or is just one? the first one?. I’m confused on the 2 attributes on the command

It’s a compound shard key. Meaning, it’s one shard key made up of two fields.

Hi @Pedro_56253,

This is a single shard key made up of two fields namely sku and name. I would recommend you to refer our documentation on shard key for more information.

Hope it helps!

If you still have any query then please feel free to get back to us.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Support Engineer