Google Cloud Professional Cloud Developer — Question 276

You work for an ecommerce company. You are designing a new Orders API that will be exposed through Apigee. In your Apigee organization, you created two new environments named orders-test and orders-prod. You plan to use unique URLs named test.lnk-42.com/api/v1/orders and Ink-42.com/api/v1/orders for each environment. You need to ensure that each environment only uses the assigned URL. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because it ensures that each environment is properly categorized by associating orders-test with the test environment group and orders-prod with the production environment group. This way, each hostname can be added to the respective environment group, ensuring that they use the correct URLs. The other options fail to correctly assign the environments to their respective groups or mix the groups, which would not enforce the URL restrictions.