HRS - Ask. Learn. Share Knowledge. Logo

In Computers and Technology / High School | 2025-07-08

Which is a necessary step to complete the setup? A. You need to set up instance principal so that an application running on an instance can call Oracle Cloud Infrastructure (OCI) public services, without the need to configure user credentials or a configuration file. B. A developer in your team has already configured the application built using an OCI SDK to authenticate using the instance principal provider. C. Generate Auth tokens to enable instances in the dynamic group to authenticate with API. D. Create a policy granting permissions to the dynamic group to access services in your compartment or tenancy. E. Verify the application and the OCI is all the instances that belong to the dynamic group. F. Create a dynamic group with matching rules to specify which instances can make API calls against services.

Asked by Clintonrock6567

Answer (1)

To complete the setup in Oracle Cloud Infrastructure (OCI) for an application to run securely and communicate with OCI services, various steps need to be considered. The question presents multiple possible actions. Here's a step-by-step explanation of these actions:

Set up Instance Principal : An instance principal allows an application running on an instance to access OCI public services without needing the use of long-term user credentials or configuration files. This is essential for maintaining security and simplifying credential management.

Configure the Application with OCI SDK : If a developer has configured the application to authenticate using the instance principal provider, it ensures that the application can use the OCI SDK effectively to communicate with OCI services securely.

Generate Auth Tokens : Auth tokens are necessary if instances in the dynamic group need to authenticate with specific APIs. This ensures that only authorized instances can make API calls.

Create a Policy for Dynamic Group : Policies are important to grant permissions to dynamic groups. By creating a policy, the permissions required for the instances in the dynamic group to access services in a specific compartment or tenancy are defined.

Verify Application and OCI Instances : Once the setup is done, it’s crucial to verify that the application and OCI are functioning as expected across all instances in the dynamic group.

Create a Dynamic Group : Dynamic groups allow you to specify which instances can make API calls against OCI services. You do this by setting matching rules that define the members of the dynamic group based on attributes.


In the context of the question, the most necessary step to complete the setup is option D: "Create a policy granting permissions to the dynamic group to access services in your compartment or tenancy." Without the necessary permissions, the instances within the dynamic group won’t be able to access the required services, regardless of the other setups.

Answered by MasonWilliamTurner | 2025-07-22