nerdexam
Oracle

1Z0-1084-20 · Question #10

You are developing a serverless application with Oracle Functions. You have created a function in compartment named prod. When you try to invoke your function you get the following error. Error…

The correct answer is C. Create a policy. Invoking a function returns a FunctionInvokeSubnetNotAvailable message and a 502 error (due to a DHCP Options issue) When you invoke a function that you've deployed to Oracle Functions, you might see the following error message…

Order Management Cloud Overview

Question

You are developing a serverless application with Oracle Functions. You have created a function in compartment named prod. When you try to invoke your function you get the following error. Error invoking function. status: 502 message: dhcp options ocid1.dhcpoptions.oc1.phx.aaaaaaaac... does not exist or Oracle Functions is not authorized to use it How can you resolve this error?

Options

  • ACreate a policy:
  • BCreate a policy:
  • CCreate a policy:
  • DDeleting the function and redeploying it will fix the problem

How the community answered

(50 responses)
  • A
    10% (5)
  • B
    2% (1)
  • C
    82% (41)
  • D
    6% (3)

Explanation

Invoking a function returns a FunctionInvokeSubnetNotAvailable message and a 502 error (due to a DHCP Options issue) When you invoke a function that you've deployed to Oracle Functions, you might see the following error message: {"code":"FunctionInvokeSubnetNotAvailable","message":"dhcp options ocid1.dhcpoptions........ does not exist or Oracle Functions is not authorized to use it"} Fn: Error invoking function. status: 502 message: dhcp options ocid1.dhcpoptions........ does not exist or Oracle Functions is not authorized to use it If you see this error: Double-check that a policy has been created to give Oracle Functions access to network Service Access to Network Resources When Oracle Functions users create a function or application, they have to specify a VCN and a subnet in which to create them. To enable the Oracle Functions service to create the function or application in the specified VCN and subnet, you must create an identity policy to grant the Oracle Functions service access to the compartment to which the network resources belong. To create a policy to give the Oracle Functions service access to network resources: Log in to the Console as a tenancy administrator. Create a new policy in the root compartment: Open the navigation menu. Under Governance and Administration, go to Identity and click Policies. Follow the instructions in To create a policy, and give the policy a name (for service- network-access). Specify a policy statement to give the Oracle Functions service access to the network resources in the compartment: Allow service FaaS to use virtual-network-family in compartment <compartment-name> Allow service FaaS to use virtual-network-family in compartment acme-network Click Create. Double-check that the set of DHCP Options in the VCN specified for the application still exists.

Topics

#Oracle Functions#serverless#IAM policy#DHCP options error

Community Discussion

No community discussion yet for this question.

Full 1Z0-1084-20 Practice