Docsity

Deterministic Effects Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
Developing Solutions for Microsoft Azure
AZ204 Ultimate Exam
**Question 1.** Which App Service plan tier provides isolated network connectivity
and runs on dedicated VMs?
A) Free
B) Shared
C) Premium v3
D) Isolated
Answer: D
Explanation: The Isolated tier runs on dedicated Azure Virtual Network-integrated
VMs, providing network isolation and higher scale limits.
**Question 2.** In Azure Functions, which binding type would you use to
automatically write the function’s output to a Cosmos DB container?
A) Input binding
B) Output binding
C) Trigger binding
D) Durable binding
Answer: B
Explanation: An output binding connects the function’s return value directly to a
service—in this case, Cosmos DB—without extra code.
**Question 3.** Which feature of Azure Functions allows you to maintain state
across multiple function executions?
A) Consumption plan
B) Durable Functions
c) Premium plan
D) KEDA
Answer: B
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36

Partial preview of the text

Download Deterministic Effects Ultimate Exam and more Exams Technology in PDF only on Docsity!

AZ204 Ultimate Exam

Question 1. Which App Service plan tier provides isolated network connectivity and runs on dedicated VMs? A) Free B) Shared C) Premium v D) Isolated Answer: D Explanation: The Isolated tier runs on dedicated Azure Virtual Network-integrated VMs, providing network isolation and higher scale limits. Question 2. In Azure Functions, which binding type would you use to automatically write the function’s output to a Cosmos DB container? A) Input binding B) Output binding C) Trigger binding D) Durable binding Answer: B Explanation: An output binding connects the function’s return value directly to a service—in this case, Cosmos DB—without extra code. Question 3. Which feature of Azure Functions allows you to maintain state across multiple function executions? A) Consumption plan B) Durable Functions c) Premium plan D) KEDA Answer: B

AZ204 Ultimate Exam

Explanation: Durable Functions provide orchestrations, activities, and entities that preserve state across calls. Question 4. When configuring deployment slots in Azure App Service, which setting is sticky (does not swap)? A) App settings marked as “slot-settings” B) Connection strings C) HTTP/HTTPS bindings D) Custom domains Answer: A Explanation: Settings marked as slot-settings stay with the slot during a swap, preventing accidental leakage of environment-specific values. Question 5. Which Azure Compute service is best suited for running a single container without managing an orchestrator? A) Azure Kubernetes Service (AKS) B) Azure Container Instances (ACI) C) Azure Container Apps (ACA) D) Azure Service Fabric Answer: B Explanation: ACI runs containers directly on Azure infrastructure without requiring a cluster or orchestration layer. Question 6. In AKS, which component is responsible for automatically scaling the number of pod replicas based on CPU usage? A) Horizontal Pod Autoscaler (HPA) B) Virtual Machine Scale Set (VMSS) C) Azure Load Balancer D) Azure Monitor

AZ204 Ultimate Exam

C) Must be a numeric field D) Must be the same as the document id Answer: B Explanation: A partition key with many distinct values ensures data is evenly spread across partitions, avoiding hot partitions. Question 10. Which consistency level in Cosmos DB guarantees reads never see out-of-order writes but may have higher latency? A) Strong B) Bounded Staleness C) Session D) Eventual Answer: B Explanation: Bounded Staleness ensures reads lag behind writes by a configurable time or number of operations, providing order without full strong consistency latency. Question 11. Which Azure service provides a change feed that can be used to trigger Azure Functions when data is added or updated? A) Azure Table Storage B) Azure Blob Storage C) Azure Cosmos DB D) Azure Queue Storage Answer: C Explanation: Cosmos DB’s change feed streams inserts and updates, allowing reactive processing via Functions.

AZ204 Ultimate Exam

Question 12. Which authentication method allows an Azure Web App to access Azure Key Vault without storing credentials? A) Service principal with client secret B) Managed identity (system-assigned) C) Shared access signature (SAS) D) Basic authentication Answer: B Explanation: Managed identities provide the app with an automatically rotated token to request Key Vault secrets securely. Question 13. In Azure Key Vault, which object type would you retrieve to perform cryptographic operations such as signing? A) Secret B) Certificate C) Key D) Managed identity Answer: C Explanation: Keys stored in Key Vault can be used for encryption, decryption, signing, and verification. Question 14. Which Azure AD permission type allows an application to read all users in the directory without a signed-in user context? A) Delegated permission B) Application permission C) User-assigned permission D) Role-based permission Answer: B

AZ204 Ultimate Exam

Answer: B Explanation: Log Analytics uses Kusto Query Language (KQL) to analyze collected logs. Question 18. In Application Insights, which telemetry type would you use to track a custom business operation such as “order placed”? A) Request B) Dependency C) Custom Event D) Exception Answer: C Explanation: Custom events let you record arbitrary business actions and attach properties for analysis. Question 19. Which Azure Cache for Redis deployment mode provides data persistence across restarts? A) Basic B) Standard C) Premium with persistence enabled D) Cache-only Answer: C Explanation: Premium tier supports Redis persistence (RDB/AOF) so data survives node reboots. Question 20. Which Azure CDN feature reduces latency by serving content from edge locations closest to the user? A) Origin Pull B) Push caching

AZ204 Ultimate Exam

C) Rules Engine D) Custom Domain Answer: A Explanation: Origin Pull retrieves content from the origin on first request and caches it at edge nodes for subsequent requests, lowering latency. Question 21. Which Azure API Management policy would you use to limit a client to 100 calls per minute? A) B) C) D) Answer: C Explanation: The policy enforces call limits based on a key (e.g., subscription id) and a time window. Question 22. When using Azure Functions Consumption plan, what triggers the automatic scaling of instances? A) Manual VM scaling B) Number of queued messages or event triggers C) Pre-defined schedule only D) Fixed at 1 instance Answer: B Explanation: Consumption plan scales out based on incoming events (HTTP, Queue, Event Grid, etc.) without user intervention. Question 23. Which Azure service provides a fully managed Kafka-compatible event streaming platform?

AZ204 Ultimate Exam

Question 26. Which Azure feature allows you to inject configuration values into an App Service without redeploying code? A) Azure Key Vault B) App Service Environment C) Azure App Configuration D) Azure DevOps Answer: C Explanation: App Configuration centralizes settings and feature flags that apps can retrieve at runtime. Question 27. Which of the following is a valid reason to select Azure Container Apps over AKS for a new microservice? A) Need full control over node pools B) Require built-in KEDA autoscaling without managing clusters C) Want to run Windows containers only D) Need on-premises hybrid connectivity Answer: B Explanation: Azure Container Apps provide serverless containers with KEDA autoscaling, eliminating the need to manage a Kubernetes cluster. Question 28. In Azure Functions, what is the default maximum execution time for a function running on the Consumption plan? A) 5 minutes B) 10 minutes C) 30 minutes D) Unlimited Answer: B

AZ204 Ultimate Exam

Explanation: Consumption plan functions have a 10-minute timeout unless increased via host.json (max 10 minutes). Question 29. Which Azure service is most appropriate for storing large, unstructured binary files such as videos? A) Azure Files B) Azure Table Storage C) Azure Blob Storage D) Azure Disk Storage Answer: C Explanation: Blob Storage is optimized for massive unstructured binary data (images, video, backups). Question 30. Which Azure SDK authentication class automatically selects the best credential based on the environment (local dev, Azure VM, etc.)? A) ClientSecretCredential B) InteractiveBrowserCredential C) DefaultAzureCredential D) ManagedIdentityCredential Answer: C Explanation: DefaultAzureCredential chains multiple credential types and picks the first that works. Question 31. Which Azure storage access tier provides the lowest storage cost but requires at least 180 days of retention before retrieval? A) Hot B) Cool C) Archive D) Premium

AZ204 Ultimate Exam

C) Activity log alert D) Service health alert Answer: B Explanation: Metric alerts monitor numeric metrics (CPU, memory, etc.) over a defined period. Question 35. Which Azure feature provides a globally distributed, read-optimized cache for static web assets? A) Azure Cache for Redis B) Azure Front Door C) Azure CDN D) Azure Blob Storage static website Answer: C Explanation: Azure CDN caches static assets at edge locations worldwide for fast delivery. Question 36. Which Azure Service Bus feature ensures that a message is processed exactly once even if the receiver fails after receiving it? A) Peek-Lock with explicit completion B) Receive-And-Delete mode C) Duplicate detection D) Auto-complete Answer: A Explanation: Peek-Lock holds the message until the receiver completes it; if the receiver crashes, the message becomes visible again, preventing loss and ensuring at-least-once; combined with idempotent processing, it achieves effective exactly-once.

AZ204 Ultimate Exam

Question 37. Which Azure storage SDK method is used to upload a stream to a blob in a single operation? A) UploadFromStreamAsync B) UploadAsync C) PutBlobAsync D) WriteAsync Answer: B Explanation: BlobClient.UploadAsync uploads a stream to the target blob. Question 38. Which Azure Function plan provides pre-warmed instances to avoid cold starts for HTTP triggers? A) Consumption B) Premium C) Dedicated (App Service) D) Elastic Premium Answer: B Explanation: Premium plan offers pre-warmed workers, eliminating cold start latency. Question 39. In Azure Cosmos DB, which API would you choose to store documents that need MongoDB-compatible queries? A) SQL (Core) API B) Cassandra API C) Gremlin API D) MongoDB API Answer: D Explanation: The MongoDB API allows using MongoDB drivers and query language while storing data in Cosmos DB.

AZ204 Ultimate Exam

Explanation: Durable Functions enable stateful orchestrations that can run for days, handling retries and checkpoints. Question 43. Which Azure monitoring tool can automatically detect performance anomalies using machine learning? A) Azure Advisor B) Azure Monitor Workbooks C) Azure Monitor Smart Detection (now part of Azure Monitor) D) Azure Service Health Answer: C Explanation: Smart Detection (now integrated into Azure Monitor) analyses metrics and surfaces anomalies. Question 44. Which of the following is NOT a valid Azure App Service scaling metric? A) CPU percentage B) Memory working set C) Queue length D) Disk I/O latency Answer: D Explanation: Disk I/O latency is not directly available as a built-in scaling metric for App Service; custom metrics would be needed. Question 45. Which Azure service allows you to run a containerized .NET worker process without managing servers and provides built-in HTTP ingress? A) Azure Container Instances B) Azure Container Apps C) Azure Kubernetes Service D) Azure Functions

AZ204 Ultimate Exam

Answer: B Explanation: Azure Container Apps runs containerized workloads with KEDA autoscaling and optional HTTP ingress. Question 46. Which Azure resource should you use to store a large number of small messages that need to be processed quickly and have no ordering guarantees? A) Azure Service Bus Queue B) Azure Queue Storage C) Azure Event Hubs D) Azure Event Grid Answer: B Explanation: Azure Queue Storage is optimized for high-throughput, unordered, small messages. Question 47. Which authentication flow is recommended for a single-page application (SPA) using MSAL.js to acquire an access token for a protected API? A) Client credentials flow B) Authorization code flow with PKCE C) Resource owner password credentials flow D) Implicit flow Answer: B Explanation: Authorization code flow with PKCE is the secure modern approach for SPAs, replacing the deprecated implicit flow. Question 48. Which Azure feature lets you define a set of firewall rules that restrict access to a storage account based on IP address ranges? A) Virtual network service endpoints

AZ204 Ultimate Exam

Question 51. Which Azure Policy effect would you use to automatically remediate a non-compliant resource by adding a tag? A) Deny B) Audit C) Append D) DeployIfNotExists Answer: D Explanation: DeployIfNotExists can add a missing tag (or other configuration) when a resource is non-compliant. Question 52. Which Azure service can be used to ingest telemetry from IoT devices at a rate of millions of events per second? A) Azure Event Grid B) Azure Event Hubs C) Azure Service Bus D) Azure Queue Storage Answer: B Explanation: Event Hubs is built for high-throughput event ingestion, supporting millions of events per second. Question 53. Which Azure App Service feature allows you to run a web app in a dedicated, isolated environment with its own network? A) Deployment slots B) App Service Environment (ASE) C) Premium v3 plan D) Azure Functions Premium plan Answer: B

AZ204 Ultimate Exam

Explanation: ASE provides a fully isolated environment for App Service apps, with dedicated VNet integration. Question 54. Which Azure SDK method retrieves a secret value from Azure Key Vault in an asynchronous manner? A) GetSecretAsync B) RetrieveSecretAsync C) FetchSecretAsync D) AccessSecretAsync Answer: A Explanation: SecretClient.GetSecretAsync fetches a secret from Key Vault asynchronously. Question 55. Which Azure feature allows you to enforce that only requests with a valid JWT token can reach your API Management backend? A) CORS policy B) Validate JWT policy C) IP filtering policy D) Backend rewrite policy Answer: B Explanation: The policy validates the token and can reject unauthorized calls. Question 56. Which Azure storage feature enables versioning of blobs so you can retrieve prior states? A) Soft delete B) Immutable storage C) Blob versioning D) Lifecycle management