Microsoft certification · Exam AI-200

AI-200 Mock Exam

Developing AI Cloud Solutions on Azure

Free AI-200 questions on Topic 2, Fabrikam Inc, each with the answer and an explanation.

20 questions · 40 minutes · free, no sign-up

Topic 2, Fabrikam Inc questions

1–2 of 2 free
Question 1 Choose 1
You need to deploy a batch embedding workload according to the planned application architecture. What should you use?
Show answerHide answer

Correct answer: A YAML-formatted files

Explanation

Explanation

When deploying a batch embedding workload to a containerized environment (specifically Azure Kubernetes Service, as implied by the other options), you use YAML-formatted files.

YAML (YAML Ain't Markup Language) is the industry-standard declarative language for Kubernetes. To deploy a batch workload, you create a YAML manifest file (such as a Kubernetes Job or CronJob) that defines the desired state of the application—including the container image to use, the number of completions/parallelism, resource requests/limits (e.g., GPU or high-memory nodes required for embeddings), and environment variables (like API keys or endpoint URLs). You then apply this file to the cluster, allowing Kubernetes to manage the batch execution lifecycle.

Why the Other Options Are Incorrect

- B. kubectl run and create commands: While kubectl create -f file.yaml is the command used to deploy the YAML, the kubectl run command is primarily imperative and designed for creating simple, single-container Pods or Deployments. It lacks the robust configuration capabilities needed for complex batch jobs with specific restart policies, parallelism, and multi-container setups.

- C. XML-formatted files: XML is not supported by Kubernetes for manifest configuration. Kubernetes exclusively uses YAML or JSON.

- D. az aks commands: The az aks commands are used to manage the Azure Kubernetes Service cluster infrastructure itself (e.g., creating the cluster, scaling node pools, or getting credentials). They are not used to deploy individual application workloads or batch jobs onto the cluster.

References
- Microsoft Learn: Run a batch job using a Kubernetes Job (Explains how to use YAML manifests for batch workloads).
Question 2 Choose 1
You need to improve throughput for concurrent application requests to PostgreSQL. What should you implement?
Show answerHide answer

Correct answer: A Implement connection pooling.

Explanation

Explanation

When an application experiences high volumes of concurrent requests, it can overwhelm a relational database like Azure Database for PostgreSQL. Each new connection consumes significant memory and CPU overhead on the database server to establish and maintain.

Implementing connection pooling (using tools like PgBouncer, which is built into Azure Database for PostgreSQL Flexible Server) solves this by maintaining a pool of active, reusable database connections. Instead of opening and closing a connection for every application request, the application checks out an existing connection from the pool, uses it, and returns it immediately. This drastically reduces the overhead on the database, allowing it to process a much higher throughput of concurrent application requests.

Why the Other Options Are Incorrect

B. Increase shared_buffers: shared_buffers controls the amount of memory dedicated to caching data. While increasing it can improve read performance (reducing disk I/O), it does not directly address the bottleneck of establishing and managing hundreds or thousands of concurrent connections.

C. Enable read replicas: Read replicas are excellent for scaling out read-heavy workloads by offloading queries to secondary servers. However, they do not solve the connection overhead problem on the primary server for general application requests (especially write operations, which must go to the primary).

D. Increase max_connections: While this allows more concurrent connections, it is generally an anti-pattern. Setting max_connections too high requires massive amounts of RAM (as each connection consumes memory) and can lead to severe CPU context-switching overhead, which ultimately decreases throughput and can crash the database.

References
Microsoft Learn: Connection pooling in Azure Database for PostgreSQL - Flexible Server (Explains how built-in PgBouncer helps manage concurrency).

That's the last free question in Topic 2, Fabrikam Inc

You've seen the free 30% (2 of 8 questions). Full access unlocks every question and full-length AI-200 mock exams (60 questions, 120 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the AI-200 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real AI-200 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full AI-200 mock exam
  • 60questions per mock
  • 120 mintime limit
  • 142questions in the bank
  • Newmock on every attempt