Skip to main content
  1. Public practice questions
  2. AB-620 Practice Exams | AI Agent Builder Associate
  3. AB-620 Practice Exam 4

Question 10 — AB-620 Practice Exam 4

Fill in the blanks by selecting the correct options from the dropdown menus.

A Copilot Studio HTTP request must authenticate to an external API without exposing the API key on the topic canvas. Store the credential in an [Gap 1] and reference it from the required request header. If a POST request sends a JSON payload and the API requires the payload format to be identified, configure [Gap 2].

  1. Content-Type: application/xml
  2. Accept: text/plain
  3. environment variable
  4. Content-Type: application/json
  5. Topic message variable
  6. Literal header string

Correct answers

  1. Gap 1: environment variable
  2. Gap 2: Content-Type: application/json

Explanations

Correct:

Environment variable: Credentials such as API keys and bearer tokens should be stored outside the topic canvas in environment variables. The header can reference the stored value without exposing the secret as a literal string to makers who can view the canvas.

Content-Type: application/json: This header identifies the request body as JSON. An API receiving a POST or PATCH request can reject or fail to parse a JSON body when the expected content type is absent.

Wrong:

Literal header string: Hardcoding a credential directly in a header exposes the secret to makers who have access to the topic canvas.

Topic message variable: A normal conversation variable is not the appropriate storage mechanism for protecting an API credential from exposure on the authoring canvas.

Accept: text/plain: This header value does not identify a submitted request body as JSON.

Content-Type: application/xml: This value declares an XML payload and therefore does not describe a JSON request body correctly.