Docsity

MICROSOFT AZURE DEVELOPER AZ, Exams of Nursing

Toggle sidebar
bg1
MICROSOFT AZURE DEVELOPER AZ-204 SANFRANCISCO
CERTIFICATION EXAMINATION QUESTIONS AND
CORRECT ANSWERS {VERIFIED ANSWERS} PLUS
RATIONALE 2026&2027Q&A|INSTANT DOWNLOAD PDF
1. Azure Compute Solutions
1. Which Azure service is designed to run event-driven code without managing servers?
A. Azure Virtual Machines
B. Azure Functions
C. Azure Virtual Network
D. Azure Disk Storage
Answer: B. Functions provides serverless code execution.
2. Which Azure Functions hosting option can scale based on incoming events?
A. Consumption plan
B. Dedicated virtual machine
C. Azure Disk
D. ExpressRoute
Answer: A. Consumption plans scale according to workload and triggers.
3. Which Azure Functions trigger is appropriate for processing messages from an Azure
Storage queue?
A. HTTP trigger
B. Timer trigger
C. Queue trigger
D. Blob trigger
Answer: C. A queue trigger invokes a function when messages arrive in a Storage queue.
4. Which trigger is commonly used to run a function on a schedule?
A. Timer trigger
B. HTTP trigger
C. Event Grid trigger
D. Blob trigger
Answer: A. Timer triggers execute functions according to a schedule.
5. What is the purpose of a function binding?
A. Connect a function to input and output data sources
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

Partial preview of the text

Download MICROSOFT AZURE DEVELOPER AZ and more Exams Nursing in PDF only on Docsity!

MICROSOFT AZURE DEVELOPER AZ- 204 SANFRANCISCO

CERTIFICATION EXAMINATION QUESTIONS AND

CORRECT ANSWERS {VERIFIED ANSWERS} PLUS

RATIONALE 2026&202 7 Q&A|INSTANT DOWNLOAD PDF

  1. Azure Compute Solutions 1. Which Azure service is designed to run event-driven code without managing servers? A. Azure Virtual Machines B. Azure Functions C. Azure Virtual Network D. Azure Disk Storage Answer: B. Functions provides serverless code execution. 2. Which Azure Functions hosting option can scale based on incoming events? A. Consumption plan B. Dedicated virtual machine C. Azure Disk D. ExpressRoute Answer: A. Consumption plans scale according to workload and triggers. 3. Which Azure Functions trigger is appropriate for processing messages from an Azure Storage queue? A. HTTP trigger B. Timer trigger C. Queue trigger D. Blob trigger Answer: C. A queue trigger invokes a function when messages arrive in a Storage queue. 4. Which trigger is commonly used to run a function on a schedule? A. Timer trigger B. HTTP trigger C. Event Grid trigger D. Blob trigger Answer: A. Timer triggers execute functions according to a schedule. 5. What is the purpose of a function binding? A. Connect a function to input and output data sources

B. Create a virtual network C. Encrypt a storage account D. Configure a DNS zone Answer: A. Bindings simplify connecting function code to services.

6. Which Azure service is best suited for hosting a web API with managed platform features? A. Azure App Service B. Azure Files C. Azure DNS D. Azure Bastion Answer: A. App Service hosts web applications and APIs without managing the underlying OS. 7. What is an App Service deployment slot used for? A. Test and stage an application before swapping it into production B. Create a storage account C. Configure a database backup D. Assign a managed identity Answer: A. Slots support staged deployments and swaps. 8. What is a benefit of deployment slots? A. They allow pre-production validation with reduced downtime B. They automatically rewrite application code C. They replace source control D. They disable scaling Answer: A. A tested slot can be swapped into production. 9. What is App Service autoscaling intended to do? A. Adjust available instances based on rules or workload B. Change application source code C. Rotate database schemas D. Create user passwords Answer: A. Autoscaling changes capacity to meet demand. 10. Which setting stores application configuration for an App Service app? A. App settings B. Route tables C. NSG rules D. Storage lifecycle policies Answer: A. App settings provide environment-specific configuration.

D. A build pipeline Answer: A. An instance is an active execution of a container image.

17. Which Azure service can run a single container without managing a Kubernetes cluster? A. Azure Container Instances B. Azure ExpressRoute C. Azure SQL Database D. Azure Front Door Answer: A. ACI is suitable for simple, on-demand container execution. 18. What is the purpose of a Dockerfile? A. Define instructions for building a container image B. Configure an Azure subscription C. Create a SQL database D. Set a managed identity Answer: A. A Dockerfile describes image build steps. 19. Which command commonly builds a container image from a Dockerfile? A. docker build B. docker route C. docker deployslot D. docker storage Answer: A. docker build creates an image. 20. Why use a multi-stage container build? A. Reduce the final image size by separating build tools from runtime files B. Run two containers on one port C. Disable image layers D. Encrypt all source code automatically Answer: A. Multi-stage builds can exclude unnecessary build dependencies. 21. What does Azure App Service authentication provide? A. Built-in authentication and authorization integration B. Automatic database schema updates C. Container image scanning only D. Network packet capture Answer: A. App Service can integrate with identity providers. 22. What is a managed identity used for? A. Authenticate an Azure resource to other services without managing credentials B. Create a human user account

C. Store source code D. Configure autoscaling rules Answer: A. Managed identities obtain tokens for supported Azure services.

23. Which identity type is tied to the lifecycle of one Azure resource? A. System-assigned managed identity B. User-assigned managed identity C. Guest identity D. Local account Answer: A. A system-assigned identity is created and removed with its resource. 24. What is a benefit of a user-assigned managed identity? A. It can be assigned to multiple Azure resources B. It must be recreated whenever an app restarts C. It replaces role assignments D. It stores application source code Answer: A. Its lifecycle is independent of individual resources. 25. Which service is used to store secrets, keys, and certificates? A. Azure Key Vault B. Azure App Configuration C. Azure Monitor D. Azure Load Balancer Answer: A. Key Vault securely manages sensitive values and cryptographic material. 26. What should an application use to access Key Vault in Azure when possible? A. Managed identity B. Hard-coded password C. Shared administrator account D. Public anonymous access Answer: A. Managed identity avoids storing credentials in application code. 27. What is a benefit of a Linux App Service custom container? A. Run an application packaged in a container image B. Eliminate all platform updates C. Use Windows-only APIs D. Store files without a filesystem Answer: A. Custom containers allow app teams to control the runtime environment. 28. Which Azure service can route incoming web traffic to multiple backend services based on URL paths?

D. Premium only Answer: A. Cool tier is intended for data accessed less often.

34. Which Blob tier is intended for rarely accessed data with retrieval delays? A. Archive B. Hot C. Cool D. Transaction Answer: A. Archive is low-cost storage that requires rehydration before normal access. 35. What is a blob container? A. A logical grouping of blobs in a storage account B. A Kubernetes pod C. A database schema D. A virtual network subnet Answer: A. Containers organize blobs. 36. What is the purpose of a Shared Access Signature (SAS)? A. Delegate limited access to a storage resource B. Create a storage account C. Encrypt a virtual machine disk D. Grant permanent owner rights Answer: A. SAS tokens specify permissions, resources, and validity periods. 37. Which SAS type can delegate access to storage resources using the storage account key? A. Service SAS B. User delegation SAS C. Managed identity SAS D. Anonymous SAS Answer: A. A service SAS is signed with an account key. 38. What is a user delegation SAS for Blob Storage signed with? A. A Microsoft Entra credential B. A VM password C. A DNS key D. A storage lifecycle rule Answer: A. A user delegation SAS uses a user delegation key obtained through Microsoft Entra ID. 39. What is a key security practice for SAS tokens? A. Use least privilege and short expiration periods

B. Share them publicly C. Use unlimited permissions D. Store them directly in source code Answer: A. Scoped, short-lived tokens reduce exposure.

40. Which feature can automatically move blobs between access tiers based on rules? A. Lifecycle management B. Azure Functions Proxies C. Application Insights D. Azure DNS Answer: A. Lifecycle rules automate tiering or deletion. 41. What does Blob versioning provide? A. Preserve prior versions of modified or deleted blobs B. Encrypt blobs automatically C. Create duplicate storage accounts D. Improve DNS resolution Answer: A. Versioning supports recovery of earlier blob contents. 42. What does soft delete for blobs help recover? A. Deleted or overwritten blobs within a retention period B. Expired SAS tokens C. Deleted Azure subscriptions D. Failed deployments Answer: A. Soft delete retains recoverable data for a configured period. 43. What is an Azure Storage account key? A. A credential that grants broad access to storage services B. A blob name C. A lifecycle-management rule D. A managed identity Answer: A. Account keys are powerful secrets and should be protected. 44. What is a recommended alternative to embedding storage keys in application code? A. Microsoft Entra authorization with managed identity B. A public container C. A shared password D. A permanent SAS token Answer: A. Identity-based access avoids hard-coded account keys.

D. Archive redundancy Answer: A. ZRS distributes copies across availability zones.

51. What does locally redundant storage generally provide? A. Multiple copies in a single datacenter or location B. Copies across several continents C. One unreplicated copy D. An independent backup subscription Answer: A. LRS protects against local hardware failures within its storage location. 52. What does geo-redundant storage provide? A. Replication to a secondary region B. A local copy only C. A public replica D. A backup of application code Answer: A. GRS replicates data to a paired secondary region. 53. What is the purpose of a storage lifecycle policy? A. Automate data tiering or deletion based on conditions B. Rotate application passwords C. Deploy virtual machines D. Create event subscriptions Answer: A. Lifecycle policies automate data management. 54. Which storage feature can send an event when a blob is created? A. Event Grid integration B. Azure DNS C. Virtual Network peering D. Azure Policy Answer: A. Storage events can be delivered through Event Grid. 55. What is a block blob commonly used for? A. Storing files and large objects B. Managing relational tables C. Hosting DNS zones D. Running virtual machines Answer: A. Block blobs are optimized for general object and file-like content. 56. What is a page blob commonly used for? A. Random-access workloads such as virtual machine disks B. Event subscriptions

C. Queue messages D. Table entities Answer: A. Page blobs support random read/write operations and have been used for disks.

57. How can an application upload a large blob efficiently? A. Upload it in blocks and commit the block list B. Store it in a DNS record C. Append it to a queue message without limits D. Convert every byte to a table entity Answer: A. Block blobs support parallel block uploads and later commit. 58. What does blob leasing provide? A. A mechanism to acquire a lock on a blob for controlled updates B. Permanent public access C. Automatic encryption key rotation D. Geographic replication Answer: A. A lease can provide exclusive write access for a period or indefinitely. 59. What is the purpose of a storage access policy? A. Centrally manage constraints for certain SAS tokens B. Create a virtual network C. Set an App Service plan D. Configure an API operation Answer: A. Stored access policies can control permissions and expiry for associated SAS tokens. 60. Which Azure feature encrypts storage data at rest by default? A. Storage Service Encryption B. Azure DNSSEC C. Application Gateway D. Event Hubs Answer: A. Azure Storage encrypts data at rest by default.

  1. Azure Security 61. What is Microsoft Entra ID primarily used for? A. Identity and access management B. Object storage C. Container image hosting D. Traffic load balancing Answer: A. Entra ID manages identities and access to applications and resources.

D. Monitoring Reader Answer: A. Owner includes broad resource management and access delegation permissions.

68. Which role provides read-only access to Azure resources? A. Reader B. Owner C. Contributor D. User Access Administrator Answer: A. Reader can view resources but cannot change them. 69. What is the purpose of a role assignment scope? A. Define where the permissions apply B. Specify a token’s encryption algorithm C. Set the application’s runtime D. Select a storage tier Answer: A. Scopes can be management group, subscription, resource group, or individual resource. 70. What is a service principal? A. An application identity in a tenant B. A human administrator C. A storage container D. A virtual machine extension Answer: A. Service principals represent applications or automation identities. 71. What is a recommended way to authenticate an Azure-hosted application to another Azure service? A. Managed identity B. Hard-coded client secret C. Shared employee password D. Public anonymous access Answer: A. Managed identities simplify secure Azure-to-Azure authentication. 72. What is Azure Key Vault access policy or RBAC used to control? A. Access to secrets, keys, and certificates B. App Service scaling C. Container networking D. DNS record TTLs Answer: A. Key Vault authorization determines who can access or manage vault objects.

73. What is a Key Vault secret? A. A sensitive value such as a password or connection string B. A public DNS record C. A storage container D. A virtual network route Answer: A. Secrets store sensitive text values. 74. What is a Key Vault key used for? A. Cryptographic operations such as encryption or signing B. Hosting a web API C. Running a container D. Storing application logs Answer: A. Keys support cryptographic functions. 75. What is a Key Vault certificate? A. A managed certificate object with associated key material and metadata B. A database schema C. A signed SAS token D. A virtual machine image Answer: A. Key Vault can manage certificates and related operations. 76. Why enable soft delete on Key Vault? A. Recover deleted vaults or objects during a retention period B. Allow anonymous access C. Disable auditing D. Automatically renew every secret Answer: A. Soft delete protects against accidental or malicious deletion. 77. What is a Key Vault firewall used for? A. Restrict network access to the vault B. Manage OAuth scopes C. Create access tokens D. Scan source code Answer: A. Network rules limit where Key Vault can be reached from. 78. What is a private endpoint? A. A private IP address in a virtual network for accessing a service B. A public DNS alias only C. A client secret

C. The application’s programming language D. DNS packet size Answer: A. RBAC defines access permissions and scope.

85. What is a custom role useful for? A. Granting a tailored set of permissions when built-in roles are unsuitable B. Creating a new subscription automatically C. Replacing all identity providers D. Disabling auditing Answer: A. Custom roles can follow least privilege more closely. 86. How should secrets be handled in a deployment pipeline? A. Store and retrieve them through a secure secret-management mechanism B. Commit them to source control C. Print them in build logs D. Include them in container labels Answer: A. Secure secret handling reduces accidental exposure. 87. What is a common Azure DevOps integration for retrieving secrets securely? A. Azure Key Vault task or service connection B. Public Git repository C. Build artifact filename D. DNS TXT record Answer: A. Pipelines can retrieve authorized secrets from Key Vault. 88. What does Microsoft Entra Conditional Access evaluate? A. Signals such as user, location, device, and risk to enforce access policy B. Container image layers C. Blob access tiers D. Database indexes Answer: A. Conditional Access applies policy based on context. 89. What is multi-factor authentication? A. Authentication using two or more different factor categories B. Using multiple usernames C. Repeating the same password twice D. Signing in from multiple browsers Answer: A. MFA combines different factor types. 90. What is a common security risk of public blob access? A. Data may be exposed to unauthorized users

B. Blobs cannot be downloaded C. Storage encryption is disabled automatically D. Lifecycle policies stop working Answer: A. Public access should be enabled only when explicitly required.

  1. Monitoring, Diagnostics, and Optimization 91. What is Azure Monitor used for? A. Collect and analyze metrics and logs across Azure resources B. Store container images C. Manage identity federation only D. Build virtual networks Answer: A. Azure Monitor provides monitoring and observability capabilities. 92. What is Application Insights designed to monitor? A. Application performance, requests, dependencies, and exceptions B. Storage account keys only C. User laptop inventory only D. Azure subscription invoices only Answer: A. Application Insights collects application telemetry. 93. What is distributed tracing useful for? A. Track a request across multiple services B. Assign IP addresses C. Encrypt a database D. Store secrets Answer: A. Tracing correlates activity across service boundaries. 94. What is an Application Insights dependency? A. An external call made by the application, such as to a database or API B. A DNS record C. A deployment slot D. A role assignment Answer: A. Dependency telemetry records calls to external components. 95. What does an Application Insights exception telemetry record? A. An exception observed by the application B. A storage access tier C. A subscription lock D. A container registry image Answer: A. Exception telemetry aids troubleshooting.

D. Create a VNet Answer: A. Availability tests periodically probe endpoints.

102. What is a live metrics view useful for? A. Observe recent application telemetry in near real time B. Manage role assignments C. Build container images D. Configure storage redundancy Answer: A. Live metrics offers near-real-time operational visibility. 103. What is telemetry sampling? A. Reduce the volume of collected telemetry while retaining representative data B. Encrypt all traces C. Disable monitoring D. Delete application code Answer: A. Sampling can reduce ingestion and storage costs. 104. What is a risk of overly aggressive telemetry sampling? A. Important events or details may be missed B. Application code stops compiling C. Storage accounts become public D. Managed identities expire Answer: A. Sampling reduces data and may omit useful diagnostic evidence. 105. What is a correlation ID useful for? A. Associate related operations across application components B. Store a user password C. Select a region D. Assign a blob tier Answer: A. Correlation IDs help trace a request through distributed services. 106. What is the purpose of health checks in an application? A. Report whether the app or its dependencies can serve requests B. Change the app’s source code C. Create an access token D. Back up the database automatically Answer: A. Health checks support monitoring and routing decisions. 107. What does autoscale based on CPU utilization do? A. Add or remove capacity according to CPU thresholds B. Change application permissions

C. Rotate Key Vault secrets D. Delete unused resource groups Answer: A. CPU-based rules scale instances as demand changes.

108. What is a common use of Azure Cache for Redis? A. Cache frequently accessed data to reduce latency and backend load B. Store source code C. Manage DNS zones D. Create service principals Answer: A. Redis provides an in-memory data store often used for caching. 109. What is a cache hit? A. Requested data is found in the cache B. A cache server is offline C. A database query fails D. A token expires Answer: A. A cache hit avoids retrieving the data from the origin. 110. What is cache invalidation? A. Remove or update stale cached data B. Encrypt the cache C. Create a new app service D. Change an API version Answer: A. Invalidation keeps cached data consistent with the source. 111. What is a common cache strategy for frequently changing data? A. Use an appropriate expiration or invalidation policy B. Cache forever without validation C. Disable the data source D. Store every request under a unique key Answer: A. Expiry and invalidation help manage freshness. 112. What is a CDN used for? A. Deliver content from geographically distributed edge locations B. Store private keys C. Execute database stored procedures D. Manage Azure role assignments Answer: A. A CDN can improve delivery performance for static or cacheable content. 113. What is a benefit of caching static assets at a CDN edge? A. Reduce latency and origin workload