mcAfee Secure Website
exam =5
exam =6

Exam Code: AI-103

Exam Name: Developing AI Apps and Agents on Azure

Certification Provider: Microsoft

Corresponding Certification: Microsoft Certified: Azure AI Apps and Agents Developer Associate

Microsoft AI-103 Questions & Answers

Reliable & Actual Study Materials for AI-103 Exam Success

187 Questions & Answers with Testing Engine

"AI-103: Developing AI Apps and Agents on Azure" Testing Engine covers all the knowledge points of the real Microsoft AI-103 exam.

The latest actual AI-103 Questions & Answers from Pass4sure. Everything you need to prepare and get best score at AI-103 exam easily and quickly.

exam =7
Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable Microsoft Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Was: $137.49
Now: $124.99

Microsoft AI-103 Practice Test 6

Question 50

Python code must authenticate without storing long-lived Foundry API keys. Which change should the Azure AI engineer make first?

  1. Place the model API key in a private repository configuration file and distribute the file to authorized developers.
  2. Prefer Entra ID credential flow with least-privileged permissions where supported.
  3. Supply an approved shared inference key through each interactive user’s chat session context.
  4. Assign subscription-level Owner to the service principal and authenticate its SDK calls with a generated client secret.

Explanation

Correct Answer

B:

Use Microsoft Entra ID credentials or managed identity where supported and assign least-privileged roles. This avoids long-lived API keys embedded in application code.

Incorrect Answers

A:

Private code storage reduces accidental exposure but still embeds a reusable long-lived key instead of using a scoped, refreshable identity credential flow.

C:

Prompts are not a safe credential transport; they may expose keys in model context, transcripts or output, rather than token-based application authentication.

D:

Broad management rights and another long-lived secret do not satisfy least-privilege keyless authentication for Foundry inference.

Question 51

A client connects to the wrong Azure resource endpoint and receives 404 errors. Which approach best satisfies the stated requirement?

  1. Use the project's actual Foundry endpoint rather than a Search or external tool endpoint.
  2. Point the model client at the linked Search index URL and assume its REST API can handle Foundry chat requests.
  3. Keep the incorrect endpoint but enlarge the deployment quota until the URL returns a result.
  4. Send the external OpenAPI tool host as the Foundry project endpoint so the two services share one URL.

Explanation

Correct Answer

A:

The SDK client must target the correct Foundry project endpoint. A Search service or third-party tool URL is not the address of the model or agent service.

Incorrect Answers

B:

Search and Foundry expose different APIs and resource endpoints.

C:

Quota cannot redirect requests from an unrelated resource or repair a 404 path mismatch.

D:

Tool servers and Foundry project services are independent HTTP targets.

Question 52

A CI service principal can access a model resource but has no project rights. What is the most appropriate next action?

  1. Grant the automation principal subscription Reader and keep using its existing inference role when running project operations.
  2. Configure the pipeline with an API key copied from the personal Foundry project of the developer who created it.
  3. Grant the pipeline service principal Contributor on the whole subscription and use its token for project tasks.
  4. Assign the minimally required Foundry project role to the automation identity.

Explanation

Correct Answer

D:

The automation identity needs the narrowest relevant Foundry project role. Rights on one model resource do not automatically grant access to the separate project scope.

Incorrect Answers

A:

Reader grants visibility, not the missing project-scoped data-plane permissions that the requested CI action requires.

B:

A personal credential is not the automation identity’s narrowly authorized project permission; it complicates accountability and rotation.

C:

Broad subscription management access is excessive and may not supply the required project data-plane role for the specific operation.

Question 53

A service needs model inference requests while honoring per-environment settings. Which decision directly addresses the observed issue?

  1. Use one fixed development endpoint in the image and select the environment by changing only its prompt template.
  2. Set the model catalog ID as the deployment identifier in every environment and rely on the active project context.
  3. Load the correct approved project endpoint and deployment name from environment configuration.
  4. Embed a shared production API key and runtime endpoint in a common client-side settings bundle for every environment.

Explanation

Correct Answer

C:

Load the intended project endpoint and deployment name from per-environment configuration, with each environment’s approved identity and access settings.

Incorrect Answers

A:

Prompt settings do not alter the service endpoint or deployment target; production would continue calling the development resource.

B:

Catalog names are not guaranteed to be the environment-specific deployed names. Resolve the actual approved endpoint and deployment configuration.

D:

A shared public bundle leaks credentials and conflates development with production resource configuration.

Question 54

A developer replaces a tenant key and existing service calls fail. How should the engineer implement this requirement?

  1. Change the model deployment name to a currently supported version and reuse the previous authentication header.
  2. Audit authentication-mode, key rotation and connection configuration before changing models.
  3. Modify the application gateway authentication policy to forward calls from existing clients under the previous key.
  4. Increase throughput quota and retry the requests against the same endpoint with the prior credential settings.

Explanation

Correct Answer

B:

First determine whether the client uses a key or Entra credential and which secret/connection was rotated. Correct the current authentication configuration before changing unrelated model settings.

Incorrect Answers

A:

Changing model version does not repair a rotated key or a client still submitting its retired credential.

C:

Relaxing authentication at a gateway does not update the service’s revoked credential or establish a valid caller identity.

D:

Capacity cannot resolve authentication errors caused by stale keys or misconfigured headers and connections.

Question 55

A Python Responses API client already uses a supported vision model and successfully analyzes publicly accessible images. A customer now supplies a private JPEG reachable only through the company intranet and a browser login; supplying its HTTPS URL as input_image fails because the model service cannot fetch the protected URL. The image must stay private. What input change fixes this?

  1. Read the authorized JPEG bytes in the application and submit a correctly typed Base64 data URI in an input_image content part, within model request limits.
  2. Pass the same intranet URL and mention the browser login cookie in the prompt so the model service inherits the user’s authenticated session.
  3. Replace the image_url value with the client machine’s local file path and expect the hosted model to read that file.
  4. Raise input_image detail to high while retaining the inaccessible private HTTPS URL; higher detail grants access to the image.

Explanation

Correct Answer

A:

The Responses API supports inline Base64 data URI image inputs with a supported MIME type. Supplying permitted image bytes avoids a private URL fetch, subject to input size and privacy controls.

Incorrect Answers

B:

A hosted model fetching an HTTPS URL does not inherit an end user’s browser cookies merely because they are mentioned in the text prompt.

C:

A local filesystem path is not a hosted image resource or Base64 data URI; the remote endpoint cannot open the client file directly.

D:

Image detail controls model processing resolution and token usage, not network authentication or access to protected intranet resources.

Question 56

A Python SDK codebase upgrades to a new Foundry API version. Which approach best satisfies the stated requirement?

  1. Deploy the new SDK as part of the normal production release and rely on HTTP success monitoring to detect any incompatible payloads.
  2. Pin the old API request fields in the application and upgrade the SDK package to its latest release.
  3. Rotate the application’s current credentials and preserve the previously deployed schema during the API upgrade.
  4. Validate endpoint, SDK compatibility and request schema in staging before rollout.

Explanation

Correct Answer

D:

A Foundry API/SDK upgrade can change endpoints and request schemas. Validate the library and API combination against a staging deployment before promoting production calls.

Incorrect Answers

A:

Reactive production monitoring does not validate changed request fields, endpoint contracts or SDK version compatibility before exposure.

B:

An upgraded SDK does not guarantee compatibility with deprecated request fields or the current deployed API version.

C:

Credentials are independent from the request contract; token rotation cannot fix incompatible payload properties or endpoints.

Question 57

An agent prompt was changed in Git but production behavior differs. What is the most appropriate next action?

  1. Keep the agent instructions in the main Git branch and force another redeploy of the existing model endpoint.
  2. Rebuild the retrieval index used by the agent and inspect whether grounded answers now follow the updated instructions.
  3. Increase the deployed agent’s response-token budget and compare a few example responses against the latest Git instructions.
  4. Version agent configuration and deploy it through the approved CI/CD pipeline.

Explanation

Correct Answer

D:

Agent instructions and tool configuration must be versioned as deployable artifacts. Promote the approved revision through CI/CD rather than assuming committed Git files changed production automatically.

Incorrect Answers

A:

Git branch content is not automatically synchronized with deployed agent configuration, and model redeployment alone may omit the instruction version.

B:

Index content changes do not promote the agent instruction/configuration version from Git into production.

C:

A token budget adjustment does not establish that the correct versioned instructions were built and deployed by CI/CD.

Question 58

A production release must pass safety regression checks automatically. Which decision directly addresses the observed issue?

  1. Store completed safety evaluation scores as pipeline artifacts and allow deployment whenever the build job succeeds.
  2. Use groundedness and relevance evaluators as the promotion gate, with separate safety tests scheduled for postdeployment monitoring.
  3. Insert evaluation gates before promotion rather than deploy from an untested playground.
  4. Require dependency vulnerability scans and image-signature verification as the sole production release controls.

Explanation

Correct Answer

C:

Use a deployment pipeline evaluation gate that measures the stipulated safety regression checks and blocks promotion when thresholds fail.

Incorrect Answers

A:

Evidence without an enforced pass/fail gate cannot block promotion of a model that fails the safety regression threshold.

B:

Groundedness and relevance are not substitutes for the required pre-promotion content-safety regression checks.

D:

Supply-chain checks are useful but do not evaluate harmful or unsafe content in the generated answers.

Question 59

A model deployment should be reproducible across dev and prod. How should the engineer implement this requirement?

  1. Export the development resource configuration as a portal screenshot and recreate the equivalent settings manually in production.
  2. Use infrastructure-as-code and parameterized deployment settings with environment-specific values.
  3. Reuse the development Bicep deployment parameters and resource IDs in production, including development service connections.
  4. Version the model prompt and deployment name in Git while provisioning networking, roles and capacity through the portal.

Explanation

Correct Answer

B:

Version infrastructure and model deployment declarations, then parameterize region, resource and identity values for dev/prod so the approved configuration can be reproduced.

Incorrect Answers

A:

Manual screenshots cannot reliably reproduce resource IDs, access roles, versioned deployments and policy settings in an auditable process.

C:

IaC reuse needs environment-specific parameters; development resource IDs and connections are not valid production isolation settings.

D:

Reproducibility requires infrastructure and access settings as code, not only the prompt and one model identifier.

Question 60

A CI/CD repository accidentally committed a working Microsoft Foundry API key, and the key was used in published pipeline history. The team now intends to switch to managed identity or a secure secret reference. What remediation must occur before that migration can be considered safe?

  1. Immediately revoke or rotate the exposed key, investigate its usage and log exposure, then update the pipeline to use scoped managed identity or a secret store and remove the plaintext reference.
  2. Remove the key from the current branch but keep the same live credential because older commits are difficult to discover.
  3. Mark the existing pipeline variable as secret while leaving the publicly exposed credential active in Git history.
  4. Encrypt the latest source file with an application password and retain the same compromised key for downstream builds.

Explanation

Correct Answer

A:

Once a key appears in repository and build history, removing the string in a new commit does not invalidate it. Revocation or rotation, exposure review, and a governed credential replacement address the actual compromise.

Incorrect Answers

B:

Earlier commits and logs can retain the credential. A new commit that hides the string does not stop an attacker using the still-active key.

C:

Pipeline log masking protects some output but cannot invalidate a leaked secret or erase its previous exposure; the key must be rotated or revoked.

D:

Encrypting a file in the latest branch does not make the previously disclosed credential safe, nor does it replace access governance and rotation.

Developing AI Apps and Agents on Azure (AI-103) Practice Tests