Question: You need to set CORS for some objects in a bucket for a client-side application. What do you do?
- Segment the objects into two buckets. For the CORS objects, set the CORS policy at the bucket level.
- 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.
- Leave the objects in one bucket. Set the CORS policy at the object level.
- 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.