Oracle Cloud Infrastructure 2019 Developer Associate — Question 6

You have an application server that needs to copy data on Oracle Cloud Infrastructure (OCI) object storage in the same region. You have created a service gateway for OCI object storage in your virtual cloud network (VCN) and modified security lists associated with the subnet to allow traffic to the service gateway.
You are able to connect to the OCI object storage, however, you notice that the connectivity is over the internet instead of the service gateway.
What is the reason for this behavior?

Answer options

Correct answer: B

Explanation

The correct answer is B because if the service gateway is in a different availability domain, it cannot be used for traffic routing to the object storage, causing the connection to default to the internet. Option A is incorrect as the route table could still be configured properly for the object storage. Option C does not affect the connectivity directly unless specific egress rules override the service gateway. Option D is irrelevant to the connectivity issue since IAM policies pertain to access control rather than routing.