Developing AI Cloud Solutions on Azure AI-200 Practice Test 46
Question 450
An Azure Function consumes a large Service Bus backlog but reaches connection limits on an external PostgreSQL service. A reviewer recommends: Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger. Which observation explains why the proposed design works?
- Reproducible artifacts and recorded deployments support rollback and change audit
- Short-lived deployment tokens reduce the risk of persistent secrets in pipelines
- Function scale and invocation concurrency must respect downstream resource capacity
- Data-plane broker roles are needed independently of application deployment success
Explanation
Correct Answer
C:Function scale and invocation concurrency must respect downstream resource capacity. This is the behavior that makes Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger appropriate for the given scenario.
Incorrect Answers
A:Reproducible artifacts and recorded deployments support rollback and change audit. This does not establish the required control: function scale and invocation concurrency must respect downstream resource capacity.
B:Short-lived deployment tokens reduce the risk of persistent secrets in pipelines. The decisive condition here is different: function scale and invocation concurrency must respect downstream resource capacity.
D:Data-plane broker roles are needed independently of application deployment success. This does not establish the required control: function scale and invocation concurrency must respect downstream resource capacity.
Question 451
An Azure Function consumes a large Service Bus backlog but reaches connection limits on an external PostgreSQL service. A team instead suggests: "Increase maximum concurrent invocations without examining database limits." Why would that proposed shortcut fail?
- Higher parallelism can exhaust backend connections and increase failure rates
- Uncontrolled copying makes provenance and rollback unreliable
- Function scale and invocation concurrency must respect downstream resource capacity
- Environment-sensitive code raises risk of targeting the wrong service
Explanation
Correct Answer
A:Higher parallelism can exhaust backend connections and increase failure rates. The proposal Increase maximum concurrent invocations without examining database limits cannot meet the requirement; Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger is the targeted remediation.
Incorrect Answers
B:Uncontrolled copying makes provenance and rollback unreliable. In this question, higher parallelism can exhaust backend connections and increase failure rates.
C:Function scale and invocation concurrency must respect downstream resource capacity. This does not establish the required control: higher parallelism can exhaust backend connections and increase failure rates.
D:Environment-sensitive code raises risk of targeting the wrong service. The decisive condition here is different: higher parallelism can exhaust backend connections and increase failure rates.
Question 452
An Azure Function consumes a large Service Bus backlog but reaches connection limits on an external PostgreSQL service. After the planned remediation, what observable outcome would validate the solution?
- A staging-to-production swap retains the correct endpoint and secret per slot
- Backlog drains while database connections and error rates stay within safe thresholds
- A published queue item starts the function and creates one durable processing result
- Pipeline deploys with a short-lived identity and cannot modify unrelated resources
Explanation
Correct Answer
B:Backlog drains while database connections and error rates stay within safe thresholds. This directly verifies that the required change, Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger, produced the specified outcome.
Incorrect Answers
A:A staging-to-production swap retains the correct endpoint and secret per slot. In this question, backlog drains while database connections and error rates stay within safe thresholds.
C:A published queue item starts the function and creates one durable processing result. The decisive condition here is different: backlog drains while database connections and error rates stay within safe thresholds.
D:Pipeline deploys with a short-lived identity and cannot modify unrelated resources. In this question, backlog drains while database connections and error rates stay within safe thresholds.
Question 453
An app team must configure deployment credentials for Azure Functions without embedding an administrator password in a workflow file. A reviewer recommends: Use workload identity federation or another supported short-lived deployment identity with scoped RBAC. Which underlying behavior justifies the implementation?
- Short-lived deployment tokens reduce the risk of persistent secrets in pipelines
- Output bindings declaratively connect function results to supported services
- Function deployment must restore dependencies in the target runtime environment
- Runtime configuration can vary without rebuilding the application package
Explanation
Correct Answer
A:Short-lived deployment tokens reduce the risk of persistent secrets in pipelines. This is the behavior that makes Use workload identity federation or another supported short-lived deployment identity with scoped RBAC appropriate for the given scenario.
Incorrect Answers
B:Output bindings declaratively connect function results to supported services. The decisive condition here is different: short-lived deployment tokens reduce the risk of persistent secrets in pipelines.
C:Function deployment must restore dependencies in the target runtime environment. In this question, short-lived deployment tokens reduce the risk of persistent secrets in pipelines.
D:Runtime configuration can vary without rebuilding the application package. This does not establish the required control: short-lived deployment tokens reduce the risk of persistent secrets in pipelines.
Question 454
An app team must configure deployment credentials for Azure Functions without embedding an administrator password in a workflow file. A team instead suggests: "Commit a permanent subscription Owner secret into the build repository." Which technical limitation makes the alternative unsuitable?
- A rebuild cannot provide a configuration value never supplied
- Periodic polling is unnecessary and delays event-driven processing
- Short-lived deployment tokens reduce the risk of persistent secrets in pipelines
- Standing Owner secrets create high-impact credential exposure
Explanation
Correct Answer
D:Standing Owner secrets create high-impact credential exposure. The proposal Commit a permanent subscription Owner secret into the build repository cannot meet the requirement; Use workload identity federation or another supported short-lived deployment identity with scoped RBAC is the targeted remediation.
Incorrect Answers
A:A rebuild cannot provide a configuration value never supplied. The decisive condition here is different: standing Owner secrets create high-impact credential exposure.
B:Periodic polling is unnecessary and delays event-driven processing. In this question, standing Owner secrets create high-impact credential exposure.
C:Short-lived deployment tokens reduce the risk of persistent secrets in pipelines. This does not establish the required control: standing Owner secrets create high-impact credential exposure.
Question 455
An app team must configure deployment credentials for Azure Functions without embedding an administrator password in a workflow file. After the planned remediation, what would constitute useful acceptance evidence?
- Pipeline deploys with a short-lived identity and cannot modify unrelated resources
- An identical build artifact uses the correct endpoint per environment
- The target environment reports the supported language stack and a function passes tests
- The setting is present and the unchanged package passes the invocation test
Explanation
Correct Answer
A:Pipeline deploys with a short-lived identity and cannot modify unrelated resources. This directly verifies that the required change, Use workload identity federation or another supported short-lived deployment identity with scoped RBAC, produced the specified outcome.
Incorrect Answers
B:An identical build artifact uses the correct endpoint per environment. This does not establish the required control: pipeline deploys with a short-lived identity and cannot modify unrelated resources.
C:The target environment reports the supported language stack and a function passes tests. The decisive condition here is different: pipeline deploys with a short-lived identity and cannot modify unrelated resources.
D:The setting is present and the unchanged package passes the invocation test. In this question, pipeline deploys with a short-lived identity and cannot modify unrelated resources.
Question 456
An app team must configure deployment credentials for Azure Functions without embedding an administrator password in a workflow file. Which implementation most directly satisfies the requirement?
- Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger
- Use workload identity federation or another supported short-lived deployment identity with scoped RBAC
- Use Function App application settings or approved configuration references per environment
- Commit a permanent subscription Owner secret into the build repository
Explanation
Correct Answer
B:Use workload identity federation or another supported short-lived deployment identity with scoped RBAC. Short-lived deployment tokens reduce the risk of persistent secrets in pipelines. Evidence: pipeline deploys with a short-lived identity and cannot modify unrelated resources.
Incorrect Answers
A:Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger. This does not establish the required control: use workload identity federation or another supported short-lived deployment identity with scoped RBAC.
C:Use Function App application settings or approved configuration references per environment. In this question, use workload identity federation or another supported short-lived deployment identity with scoped RBAC.
D:Standing Owner secrets create high-impact credential exposure. This does not establish the required control: use workload identity federation or another supported short-lived deployment identity with scoped RBAC.
Question 457
A containerized AI API needs a third-party token that security rotates monthly without restarting the container build. After the planned remediation, what observable outcome would validate the solution?
- A worker resolves the vault name to the private address and reads an authorized secret
- The backend exposes only its allowed prefixed settings under test
- The service adopts the rotated secret and the image contains no hardcoded token
- The production identity reads only allowed configuration values without a connection string
Explanation
Correct Answer
C:The service adopts the rotated secret and the image contains no hardcoded token. This directly verifies that the required change, Store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh, produced the specified outcome.
Incorrect Answers
A:A worker resolves the vault name to the private address and reads an authorized secret. The decisive condition here is different: the service adopts the rotated secret and the image contains no hardcoded token.
B:The backend exposes only its allowed prefixed settings under test. In this question, the service adopts the rotated secret and the image contains no hardcoded token.
D:The production identity reads only allowed configuration values without a connection string. The decisive condition here is different: the service adopts the rotated secret and the image contains no hardcoded token.
Question 458
A containerized AI API needs a third-party token that security rotates monthly without restarting the container build. A reviewer recommends: Store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh. Which underlying behavior justifies the implementation?
- Azure App Configuration data-plane permissions are separate from the app resource role
- Labels allow multiple keyed configuration variants in one store
- Central secret storage does not prevent accidental exposure in logs
- Externalized secrets can be replaced without embedding new credentials into an image
Explanation
Correct Answer
D:Externalized secrets can be replaced without embedding new credentials into an image. This is the behavior that makes Store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh appropriate for the given scenario.
Incorrect Answers
A:Azure App Configuration data-plane permissions are separate from the app resource role. In this question, externalized secrets can be replaced without embedding new credentials into an image.
B:Labels allow multiple keyed configuration variants in one store. This does not establish the required control: externalized secrets can be replaced without embedding new credentials into an image.
C:Central secret storage does not prevent accidental exposure in logs. The decisive condition here is different: externalized secrets can be replaced without embedding new credentials into an image.
Question 459
A containerized AI API needs a third-party token that security rotates monthly without restarting the container build. A team instead suggests: "Embed the token in a Dockerfile ENV layer and rebuild only when it expires." Why would that proposed shortcut fail?
- Recording secret values in telemetry leaks credentials to log readers
- Externalized secrets can be replaced without embedding new credentials into an image
- A resource identifier does not establish actor or time
- Image layers can expose historical credentials to image readers
Explanation
Correct Answer
D:Image layers can expose historical credentials to image readers. The proposal Embed the token in a Dockerfile ENV layer and rebuild only when it expires cannot meet the requirement; Store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh is the targeted remediation.
Incorrect Answers
A:Recording secret values in telemetry leaks credentials to log readers. This does not establish the required control: image layers can expose historical credentials to image readers.
B:Externalized secrets can be replaced without embedding new credentials into an image. The decisive condition here is different: image layers can expose historical credentials to image readers.
C:A resource identifier does not establish actor or time. In this question, image layers can expose historical credentials to image readers.
Question 460
A containerized AI API needs a third-party token that security rotates monthly without restarting the container build. Which proposed solution would address the actual failure?
- Store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh
- Embed the token in a Dockerfile ENV layer and rebuild only when it expires
- Store application settings and feature flags in Azure App Configuration with a supported refresh mechanism
- Validate managed identity selection, Key Vault permissions and private network reachability
Explanation
Correct Answer
A:Store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh. Externalized secrets can be replaced without embedding new credentials into an image. Evidence: the service adopts the rotated secret and the image contains no hardcoded token.
Incorrect Answers
B:Image layers can expose historical credentials to image readers. In this question, store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh.
C:Store application settings and feature flags in Azure App Configuration with a supported refresh mechanism. This does not establish the required control: store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh.
D:Validate managed identity selection, Key Vault permissions and private network reachability. The decisive condition here is different: store the token in Azure Key Vault and retrieve it through an approved managed identity with a rotation-aware refresh.