Question 1
An architect wants an application on a Compute instance to call OCI APIs using instance principal authentication. Which TWO items must be configured in IAM for those calls to be authorized?
A. An API signing key pair generated for the instance and placed in the OCI CLI/SDK configuration file on that instance.
Claims an instance principal still needs a stored key. The whole point of instance principals is that credentials are issued to the instance and rotated by the service, so no signing key is created or stored by the administrator.
B. A dynamic group whose matching rule matches the instance (for example by its OCID, its compartment, or a defined tag on it).Correct answer
The dynamic group is what turns the instance into a recognizable principal; matching rules can select an instance by instance.id, instance.compartment.id, or a tag value.
C. An IAM user account created for the application and added to the dynamic group as a member.
Mixes up the two constructs. Dynamic groups do not take user members, and creating a user reintroduces the credential the instance principal design removes.
D. An IAM policy that grants the dynamic group the required permissions on the target resources.Correct answer
Identity alone authorizes nothing in OCI; a policy statement naming the dynamic group is required before any API call by the instance succeeds.
E. A policy attached directly to the Compute instance resource that lists the permissions it may exercise.
Imagines a resource-attached permission document. OCI policies are attached to a compartment or the tenancy and name a group or dynamic group as the subject — never attached to an individual instance.
Explanation
Instance principal access is built from exactly two IAM pieces: a dynamic group that matches the instance, giving the workload an identity, and a policy that grants that dynamic group permissions on the resources it must touch. No administrator-managed signing key exists in this model, because credentials are provided to the instance and rotated automatically; no IAM user is involved, since dynamic groups accept resources rather than users; and OCI has no mechanism for attaching a permission document directly to an instance — policies live on a compartment or the tenancy.