100% Latest & Updated Microsoft AI-200 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 60
A container build must apply distinct build-time values without exposing a production API secret in the build output. After rollout the observed failure is: A production credential appears in the image history after a build completes. What best explains it?
- The permission was scoped to the whole registry rather than the required repository.
- The secret was embedded in a Dockerfile layer or build argument that persisted in build history.
- The task source trigger is broader than the intended branch or event filter.
- The Deployment lacks the intended topology spreading constraints.
Explanation
Correct Answer
B:The secret was embedded in a Dockerfile layer or build argument that persisted in build history. The described symptom and this root cause fit together. Secrets must not be stored in immutable image layers or exposed by the build history.
Incorrect Answers
A:The permission was scoped to the whole registry rather than the required repository. Here, the secret was embedded in a Dockerfile layer or build argument that persisted in build history.
C:The task source trigger is broader than the intended branch or event filter. Here, the secret was embedded in a Dockerfile layer or build argument that persisted in build history.
D:The Deployment lacks the intended topology spreading constraints. Here, the secret was embedded in a Dockerfile layer or build argument that persisted in build history.
Question 61
A machine-learning service changes its container base runtime weekly and wants a provenance record of each build. Which architecture most directly addresses the required outcome?
- Use a managed identity for authorized image retrieval rather than embedding admin credentials.
- Prefer repository-scoped access where supported rather than granting registry-wide push privileges.
- Use a Kubernetes Secret or an approved external secret integration for the pod.
- Use ACR task execution records alongside immutable output digests as build provenance evidence.
Explanation
Correct Answer
D:Use ACR task execution records alongside immutable output digests as build provenance evidence. It directly addresses the architecture in this case. Task runs and digests jointly identify build provenance and exact content.
Incorrect Answers
A:Use a managed identity for authorized image retrieval rather than embedding admin credentials. Private registry pulls require working credentials or managed identity authorization to the image. Instead, use ACR task execution records alongside immutable output digests as build provenance evidence.
B:Prefer repository-scoped access where supported rather than granting registry-wide push privileges. Fine-grained registry authorization reduces exposure of other repositories. Instead, use ACR task execution records alongside immutable output digests as build provenance evidence.
C:Use a Kubernetes Secret or an approved external secret integration for the pod. Pods can consume Kubernetes Secrets only when the referenced resource and key are present. Instead, use ACR task execution records alongside immutable output digests as build provenance evidence.
Question 62
A machine-learning service changes its container base runtime weekly and wants a provenance record of each build. The team has selected this architecture: Use ACR task execution records alongside immutable output digests as build provenance evidence. Which action correctly implements it?
- Tag each build with an auditable release identifier and retain the ACR run ID and resulting digest.
- Configure the ACR Task timer trigger with the intended schedule and repository output.
- Assign the appropriate repository-scoped pull permission or AcrPull role to the runtime identity.
- Inspect kubectl logs --previous and the Deployment's changed environment and command fields.
Explanation
Correct Answer
A:Tag each build with an auditable release identifier and retain the ACR run ID and resulting digest. This is the actionable setup step for the selected design. Task runs and digests jointly identify build provenance and exact content.
Incorrect Answers
B:Configure the ACR Task timer trigger with the intended schedule and repository output. Here, tag each build with an auditable release identifier and retain the ACR run ID and resulting digest.
C:Assign the appropriate repository-scoped pull permission or AcrPull role to the runtime identity. Here, tag each build with an auditable release identifier and retain the ACR run ID and resulting digest.
D:Inspect kubectl logs --previous and the Deployment's changed environment and command fields. Here, tag each build with an auditable release identifier and retain the ACR run ID and resulting digest.
Question 63
A machine-learning service changes its container base runtime weekly and wants a provenance record of each build. After configuring the solution, which measurable result would demonstrate success?
- The deployment resolves the intended registry hostname and exact image digest.
- The release record links the exact ACR task execution to the deployed image digest.
- The runtime identity can pull the image but a push attempt using that identity is denied.
- The debug request resolves the service name and reaches a ready model endpoint.
Explanation
Correct Answer
B:The release record links the exact ACR task execution to the deployed image digest. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Task runs and digests jointly identify build provenance and exact content.
Incorrect Answers
A:The deployment resolves the intended registry hostname and exact image digest. Here, the release record links the exact ACR task execution to the deployed image digest.
C:The runtime identity can pull the image but a push attempt using that identity is denied. Here, the release record links the exact ACR task execution to the deployed image digest.
D:The debug request resolves the service name and reaches a ready model endpoint. Here, the release record links the exact ACR task execution to the deployed image digest.
Question 64
A machine-learning service changes its container base runtime weekly and wants a provenance record of each build. During a trial, the team sees this problem: A release ticket has a tag but cannot establish which build bytes were deployed. Which cause is most consistent?
- The container's listening port does not match the port expected by the App Service configuration.
- The permission was scoped to the whole registry rather than the required repository.
- The pipeline retained only a mutable tag and not the build run and image digest.
- Ingress traffic weights were not changed away from the unhealthy revision.
Explanation
Correct Answer
C:The pipeline retained only a mutable tag and not the build run and image digest. The described symptom and this root cause fit together. Task runs and digests jointly identify build provenance and exact content.
Incorrect Answers
A:The container's listening port does not match the port expected by the App Service configuration. Here, the pipeline retained only a mutable tag and not the build run and image digest.
B:The permission was scoped to the whole registry rather than the required repository. Here, the pipeline retained only a mutable tag and not the build run and image digest.
D:Ingress traffic weights were not changed away from the unhealthy revision. Here, the pipeline retained only a mutable tag and not the build run and image digest.
Question 65
An App Service container must switch from public registry pulls to a private Azure Container Registry. What primary technical approach is best justified by these constraints?
- Use a managed identity for authorized image retrieval rather than embedding admin credentials.
- Prefer repository-scoped access where supported rather than granting registry-wide push privileges.
- Reference a fully qualified registry and repository name plus approved digest in deployment manifests.
- Use a Kubernetes Secret or an approved external secret integration for the pod.
Explanation
Correct Answer
A:Use a managed identity for authorized image retrieval rather than embedding admin credentials. It directly addresses the architecture in this case. Private registry pulls require working credentials or managed identity authorization to the image.
Incorrect Answers
B:Prefer repository-scoped access where supported rather than granting registry-wide push privileges. Fine-grained registry authorization reduces exposure of other repositories. Instead, use a managed identity for authorized image retrieval rather than embedding admin credentials.
C:Reference a fully qualified registry and repository name plus approved digest in deployment manifests. Fully qualified image references prevent accidental use of an identically named artifact elsewhere. Instead, use a managed identity for authorized image retrieval rather than embedding admin credentials.
D:Use a Kubernetes Secret or an approved external secret integration for the pod. Pods can consume Kubernetes Secrets only when the referenced resource and key are present. Instead, use a managed identity for authorized image retrieval rather than embedding admin credentials.
Question 66
An App Service container must switch from public registry pulls to a private Azure Container Registry. After deciding to use a managed identity for authorized image retrieval rather than embedding admin credentials, what configuration is most relevant?
- Create and run an ACR Task against the Dockerfile with the base-image trigger enabled.
- Enable the App Service managed identity and configure its supported ACR image-pull authentication and role assignment.
- Install the required library in the runtime stage of the Dockerfile and rebuild the release image.
- Create a frontend app with ingress and a worker app with queue scaling rather than exposing the worker publicly.
Explanation
Correct Answer
B:Enable the App Service managed identity and configure its supported ACR image-pull authentication and role assignment. This is the actionable setup step for the selected design. Private registry pulls require working credentials or managed identity authorization to the image.
Incorrect Answers
A:Create and run an ACR Task against the Dockerfile with the base-image trigger enabled. Instead, enable the App Service managed identity and configure its supported ACR image-pull authentication and role assignment.
C:Install the required library in the runtime stage of the Dockerfile and rebuild the release image. Instead, enable the App Service managed identity and configure its supported ACR image-pull authentication and role assignment.
D:Create a frontend app with ingress and a worker app with queue scaling rather than exposing the worker publicly. Instead, enable the App Service managed identity and configure its supported ACR image-pull authentication and role assignment.
Question 67
An App Service container must switch from public registry pulls to a private Azure Container Registry. Which validation result is the strongest evidence that the intended behavior works?
- Production traffic moves to the validated slot while the stable slot configuration is preserved as intended.
- A controlled prediction request appears in the App Service container log stream.
- App Service pulls the private image while no registry admin password is stored in app settings.
- The debug request resolves the service name and reaches a ready model endpoint.
Explanation
Correct Answer
C:App Service pulls the private image while no registry admin password is stored in app settings. This is direct acceptance evidence for the specified behavior rather than merely proof of deployment. Private registry pulls require working credentials or managed identity authorization to the image.
Incorrect Answers
A:Production traffic moves to the validated slot while the stable slot configuration is preserved as intended. Here, app Service pulls the private image while no registry admin password is stored in app settings.
B:A controlled prediction request appears in the App Service container log stream. Here, app Service pulls the private image while no registry admin password is stored in app settings.
D:The debug request resolves the service name and reaches a ready model endpoint. Here, app Service pulls the private image while no registry admin password is stored in app settings.
Question 68
An App Service container must switch from public registry pulls to a private Azure Container Registry. Production telemetry shows: The image reference is correct but the startup trace reports unauthorized pull from ACR. Which underlying issue should be investigated first?
- The pipeline retained only a mutable tag and not the build run and image digest.
- The image contains a missing Python runtime library that fails after it has already been pulled.
- The liveness probe begins too early or uses thresholds unsuitable for model startup.
- The managed identity pull setting or required ACR authorization is missing.
Explanation
Correct Answer
D:The managed identity pull setting or required ACR authorization is missing. The described symptom and this root cause fit together. Private registry pulls require working credentials or managed identity authorization to the image.
Incorrect Answers
A:The pipeline retained only a mutable tag and not the build run and image digest. Here, the managed identity pull setting or required ACR authorization is missing.
B:The image contains a missing Python runtime library that fails after it has already been pulled. A missing library causes startup/import errors after image retrieval; it cannot explain a registry authorization error at pull time.
C:The liveness probe begins too early or uses thresholds unsuitable for model startup. Here, the managed identity pull setting or required ACR authorization is missing.
Question 69
A deployment team wants to check whether an image was pushed successfully before enabling an inference API endpoint. Which design decision should the team make first?
- Use a quick or task-based ACR build that runs in Azure.
- Inspect the ACR repository manifest and digest before changing the service deployment.
- Pin the production deployment to the approved image manifest digest instead of a moving tag.
- Keep a stable Container Apps revision available and switch ingress traffic back to it.
Explanation
Correct Answer
B:Inspect the ACR repository manifest and digest before changing the service deployment. It directly addresses the architecture in this case. Validating an ACR manifest prevents deploying references that do not exist.
Incorrect Answers
A:Use a quick or task-based ACR build that runs in Azure. An ACR remote build still requires a valid Dockerfile and build context. Instead, inspect the ACR repository manifest and digest before changing the service deployment.
C:Pin the production deployment to the approved image manifest digest instead of a moving tag. Digest references identify exact image content while tags can be reassigned. Instead, inspect the ACR repository manifest and digest before changing the service deployment.
D:Keep a stable Container Apps revision available and switch ingress traffic back to it. Revision labels and traffic routing are distinct pieces of deployment behavior. Instead, inspect the ACR repository manifest and digest before changing the service deployment.
Question 70
A deployment team wants to check whether an image was pushed successfully before enabling an inference API endpoint. Which concrete setup step puts this selected approach into operation: Inspect the ACR repository manifest and digest before changing the service deployment.
- Write serving logs to stdout or stderr and enable the supported App Service log collection.
- Configure the Key Vault secret reference in App Service settings and grant the web app identity permission to retrieve it.
- Query ACR repository manifests for the exact release tag and record its digest.
- Create a frontend app with ingress and a worker app with queue scaling rather than exposing the worker publicly.
Explanation
Correct Answer
C:Query ACR repository manifests for the exact release tag and record its digest. This is the actionable setup step for the selected design. Validating an ACR manifest prevents deploying references that do not exist.
Incorrect Answers
A:Write serving logs to stdout or stderr and enable the supported App Service log collection. Instead, query ACR repository manifests for the exact release tag and record its digest.
B:Configure the Key Vault secret reference in App Service settings and grant the web app identity permission to retrieve it. Instead, query ACR repository manifests for the exact release tag and record its digest.
D:Create a frontend app with ingress and a worker app with queue scaling rather than exposing the worker publicly. Instead, query ACR repository manifests for the exact release tag and record its digest.
Developing AI Cloud Solutions on Azure (AI-200) Practice Tests