Developing AI Cloud Solutions on Azure AI-200 Practice Test 45
Question 440
A production Azure Function loses settings after a deployment slot swap because values were not scoped to the intended slot. What is the most defensible next technical step?
- Implement an HTTP-triggered Azure Function with request parsing and an explicit HTTP response
- Configure an Azure Functions queue output binding with a validated destination
- Put production secrets in a non-slot-specific setting on both deployments
- Mark environment-specific app settings as deployment-slot settings where supported
Explanation
Correct Answer
D:Mark environment-specific app settings as deployment-slot settings where supported. Slot-specific settings remain with the environment through swaps. Evidence: a staging-to-production swap retains the correct endpoint and secret per slot.
Incorrect Answers
A:Implement an HTTP-triggered Azure Function with request parsing and an explicit HTTP response. In this question, mark environment-specific app settings as deployment-slot settings where supported.
B:Configure an Azure Functions queue output binding with a validated destination. This does not establish the required control: mark environment-specific app settings as deployment-slot settings where supported.
C:Non-sticky settings can follow swapped code into the wrong environment. The decisive condition here is different: mark environment-specific app settings as deployment-slot settings where supported.
Question 441
An AI batch function must be deployed through an auditable build pipeline, not manually copied from a laptop. A team instead suggests: "Copy local development directories directly to the live app without a release record." Which technical limitation makes the alternative unsuitable?
- Local packages are not automatically included in a remote deployment
- ARM resource Reader does not grant Service Bus data receive permission
- Reproducible artifacts and recorded deployments support rollback and change audit
- Uncontrolled copying makes provenance and rollback unreliable
Explanation
Correct Answer
D:Uncontrolled copying makes provenance and rollback unreliable. The proposal Copy local development directories directly to the live app without a release record cannot meet the requirement; Use a versioned CI/CD artifact and a controlled Azure Function App deployment step is the targeted remediation.
Incorrect Answers
A:Local packages are not automatically included in a remote deployment. This does not establish the required control: uncontrolled copying makes provenance and rollback unreliable.
B:ARM resource Reader does not grant Service Bus data receive permission. The decisive condition here is different: uncontrolled copying makes provenance and rollback unreliable.
C:Reproducible artifacts and recorded deployments support rollback and change audit. In this question, uncontrolled copying makes provenance and rollback unreliable.
Question 442
An AI batch function must be deployed through an auditable build pipeline, not manually copied from a laptop. After the planned remediation, what observable outcome would validate the solution?
- One invocation writes a message visible on the configured storage queue
- Backlog drains while database connections and error rates stay within safe thresholds
- Production reports the approved commit and package version with a successful smoke test
- Pipeline deploys with a short-lived identity and cannot modify unrelated resources
Explanation
Correct Answer
C:Production reports the approved commit and package version with a successful smoke test. This directly verifies that the required change, Use a versioned CI/CD artifact and a controlled Azure Function App deployment step, produced the specified outcome.
Incorrect Answers
A:One invocation writes a message visible on the configured storage queue. The decisive condition here is different: production reports the approved commit and package version with a successful smoke test.
B:Backlog drains while database connections and error rates stay within safe thresholds. In this question, production reports the approved commit and package version with a successful smoke test.
D:Pipeline deploys with a short-lived identity and cannot modify unrelated resources. The decisive condition here is different: production reports the approved commit and package version with a successful smoke test.
Question 443
An AI batch function must be deployed through an auditable build pipeline, not manually copied from a laptop. What should the development team implement?
- Copy local development directories directly to the live app without a release record
- Use a versioned CI/CD artifact and a controlled Azure Function App deployment step
- Use a Service Bus-triggered Azure Function and configure an authorized binding connection
- Deploy a package with a correct requirements.txt and inspect remote build and runtime logs
Explanation
Correct Answer
B:Use a versioned CI/CD artifact and a controlled Azure Function App deployment step. Reproducible artifacts and recorded deployments support rollback and change audit. Evidence: production reports the approved commit and package version with a successful smoke test.
Incorrect Answers
A:Uncontrolled copying makes provenance and rollback unreliable. In this question, use a versioned CI/CD artifact and a controlled Azure Function App deployment step.
C:Use a Service Bus-triggered Azure Function and configure an authorized binding connection. The decisive condition here is different: use a versioned CI/CD artifact and a controlled Azure Function App deployment step.
D:Deploy a package with a correct requirements.txt and inspect remote build and runtime logs. In this question, use a versioned CI/CD artifact and a controlled Azure Function App deployment step.
Question 444
An AI batch function must be deployed through an auditable build pipeline, not manually copied from a laptop. A reviewer recommends: Use a versioned CI/CD artifact and a controlled Azure Function App deployment step. Which observation explains why the proposed design works?
- Short-lived deployment tokens reduce the risk of persistent secrets in pipelines
- Reproducible artifacts and recorded deployments support rollback and change audit
- An HTTP trigger alone does not establish application user authorization
- The Service Bus trigger dispatches brokered messages to function execution
Explanation
Correct Answer
B:Reproducible artifacts and recorded deployments support rollback and change audit. This is the behavior that makes Use a versioned CI/CD artifact and a controlled Azure Function App deployment step appropriate for the given scenario.
Incorrect Answers
A:Short-lived deployment tokens reduce the risk of persistent secrets in pipelines. This does not establish the required control: reproducible artifacts and recorded deployments support rollback and change audit.
C:An HTTP trigger alone does not establish application user authorization. In this question, reproducible artifacts and recorded deployments support rollback and change audit.
D:The Service Bus trigger dispatches brokered messages to function execution. This does not establish the required control: reproducible artifacts and recorded deployments support rollback and change audit.
Question 445
A Function App begins failing after a new app setting was introduced but the code package checksum is unchanged. After the planned remediation, what would constitute useful acceptance evidence?
- One invocation writes a message visible on the configured storage queue
- The managed identity receives and settles a test message without a secret
- The schedule monitor records the expected UTC invocation
- The setting is present and the unchanged package passes the invocation test
Explanation
Correct Answer
D:The setting is present and the unchanged package passes the invocation test. This directly verifies that the required change, Check effective application settings and deployment logs for missing required keys, produced the specified outcome.
Incorrect Answers
A:One invocation writes a message visible on the configured storage queue. The decisive condition here is different: the setting is present and the unchanged package passes the invocation test.
B:The managed identity receives and settles a test message without a secret. In this question, the setting is present and the unchanged package passes the invocation test.
C:The schedule monitor records the expected UTC invocation. This does not establish the required control: the setting is present and the unchanged package passes the invocation test.
Question 446
A Function App begins failing after a new app setting was introduced but the code package checksum is unchanged. Which proposed solution would address the actual failure?
- Use an idempotency key derived from object identity and version before writing new embeddings
- Regenerate the entire container image without examining the absent setting
- Check effective application settings and deployment logs for missing required keys
- Use a versioned CI/CD artifact and a controlled Azure Function App deployment step
Explanation
Correct Answer
C:Check effective application settings and deployment logs for missing required keys. Runtime configuration may break a deployment even when source code is identical. Evidence: the setting is present and the unchanged package passes the invocation test.
Incorrect Answers
A:Use an idempotency key derived from object identity and version before writing new embeddings. In this question, check effective application settings and deployment logs for missing required keys.
B:A rebuild cannot provide a configuration value never supplied. This does not establish the required control: check effective application settings and deployment logs for missing required keys.
D:Use a versioned CI/CD artifact and a controlled Azure Function App deployment step. In this question, check effective application settings and deployment logs for missing required keys.
Question 447
A Function App begins failing after a new app setting was introduced but the code package checksum is unchanged. A reviewer recommends: Check effective application settings and deployment logs for missing required keys. Which technical property makes the recommended implementation suitable?
- Short-lived deployment tokens reduce the risk of persistent secrets in pipelines
- Runtime configuration may break a deployment even when source code is identical
- An HTTP trigger alone does not establish application user authorization
- Function scale and invocation concurrency must respect downstream resource capacity
Explanation
Correct Answer
B:Runtime configuration may break a deployment even when source code is identical. This is the behavior that makes Check effective application settings and deployment logs for missing required keys appropriate for the given scenario.
Incorrect Answers
A:Short-lived deployment tokens reduce the risk of persistent secrets in pipelines. This does not establish the required control: runtime configuration may break a deployment even when source code is identical.
C:An HTTP trigger alone does not establish application user authorization. In this question, runtime configuration may break a deployment even when source code is identical.
D:Function scale and invocation concurrency must respect downstream resource capacity. This does not establish the required control: runtime configuration may break a deployment even when source code is identical.
Question 448
A Function App begins failing after a new app setting was introduced but the code package checksum is unchanged. A team instead suggests: "Regenerate the entire container image without examining the absent setting." What is the decisive flaw in that proposal?
- A rebuild cannot provide a configuration value never supplied
- Higher parallelism can exhaust backend connections and increase failure rates
- Runtime configuration may break a deployment even when source code is identical
- Local packages are not automatically included in a remote deployment
Explanation
Correct Answer
A:A rebuild cannot provide a configuration value never supplied. The proposal Regenerate the entire container image without examining the absent setting cannot meet the requirement; Check effective application settings and deployment logs for missing required keys is the targeted remediation.
Incorrect Answers
B:Higher parallelism can exhaust backend connections and increase failure rates. In this question, a rebuild cannot provide a configuration value never supplied.
C:Runtime configuration may break a deployment even when source code is identical. This does not establish the required control: a rebuild cannot provide a configuration value never supplied.
D:Local packages are not automatically included in a remote deployment. The decisive condition here is different: a rebuild cannot provide a configuration value never supplied.
Question 449
An Azure Function consumes a large Service Bus backlog but reaches connection limits on an external PostgreSQL service. Which design best meets the requirement?
- Deploy a package with a correct requirements.txt and inspect remote build and runtime logs
- Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger
- Increase maximum concurrent invocations without examining database limits
- Use a versioned CI/CD artifact and a controlled Azure Function App deployment step
Explanation
Correct Answer
B:Limit function concurrency and use bounded database pooling with host settings appropriate to the trigger. Function scale and invocation concurrency must respect downstream resource capacity. Evidence: backlog drains while database connections and error rates stay within safe thresholds.
Incorrect Answers
A:Deploy a package with a correct requirements.txt and inspect remote build and runtime logs. In this question, limit function concurrency and use bounded database pooling with host settings appropriate to the trigger.
C:Higher parallelism can exhaust backend connections and increase failure rates. The decisive condition here is different: limit function concurrency and use bounded database pooling with host settings appropriate to the trigger.
D:Use a versioned CI/CD artifact and a controlled Azure Function App deployment step. In this question, limit function concurrency and use bounded database pooling with host settings appropriate to the trigger.
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.