Question: You need to set CORS for some objects in a bucket for a client-side application. What do you do?

  1. Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level.
  2. Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level. Add client-side code to handle the requests.
  3. Leave the objects in one bucket. Set the CORS policy at the object level.
  4. Leave the objects in one bucket. Set the CORS policy at the object level. Add client-side code to handle the requests.

Answer: The correct answer of the above question is Option B:Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level. Add client-side code to handle the requests.