A security automation team is using the PAN-OS XML API to programmatically create and commit a new security policy rule. The script authenticates with an API key and sends an XML document to the /api/ endpoint. The rule is created but does not appear in the running configuration. Which TWO actions must the script perform to make the rule active? (Choose two.)
The XML API requires the 'type' and 'action' parameters to specify the operation. For configuration changes, 'type=config' and 'action=set' are mandatory. Without them, the API may accept the request but not apply the change to the candidate configuration. Including these ensures the rule is added to the candidate configuration, which is a prerequisite for it to become active after commit.
Why this answer
To activate a new security rule created via the XML API, the script must first ensure the rule is added to the candidate configuration by including 'type=config' and 'action=set' in the request. Then, a separate commit request with 'action=commit' is required to push the candidate configuration to the running configuration. Without both steps, the rule will not take effect.
Exam trap
The trap here is assuming that creating a rule via the API automatically activates it, when in fact a separate commit operation is always required to apply candidate configuration changes.