AZ - 204 : AZURE DEVELOPER
ASSOCIATE LATEST 2026 ACTUAL
EXAM| 2 VERSIONS (VERSION A AND
B) WITH COMPLETE QUESTIONS AND
CORRECT DETAILED ANSWERS
(VERIFIED ANSWERS) ALREADY
GRADED A+ (BRAND NEW!!)
YoumaremdevelopingmamwebmservicemthatmshouldmpreventmanonymousmusagemandmusemOpenIDmco
nnectmformauthentication.
YoumneedmtomimplementmanmAPImManagementmpolicymformthemwebmservice.mWhichmpolicymshould
myoumuse?m-mCORRECTmANSWERmExplanation
CORRECTmANSWERs:
Validate-jwtm-
mThemrequirementmfrommthemquestionmtomvalidatemrequestsmusingmAPImmanagementmpolicy.mYoumc
anmusemthemValidatemJWTmpolicymtompre-
authorizemrequestsminmAPImManagement,mbymvalidatingmthemaccessmtokensmofmeachmincomingmreq
uest.mIfmamrequestmdoesmnotmhavemamvalidmtoken,mAPImManagementmblocksmit.
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-
backend-with-aad#configure-a-jwt-validation-policy-to-pre-authorize-requests
YoumaremdevelopermformamcompanymnamedmCompany1.
Company1mhasmanmapplicationmthatmusesmAzuremCosmosmDBmconfiguredmwithmAzuremCosmosmDBm
SQLmAPI.
Themdatabasemcontainsmmillionsmofmdocumentsmwithoutmdistinctmvaluesmformpartitioning.
Youmneedmtomimplementmamscalingmstrategymformthemdatabasemtomscalemindividualmcontainers.
Themdatabasemmustmmeetmthemperformancemrequirementsmofmthemapplicationmbymspreadingmthem
workloadmevenlymacrossmallmpartitionsmovermtime.
,Youmneedmtomselectmampartitionmkey.
Whichmtwompartitionmkeysmcanmyoumuse?m-mCORRECTmANSWERmExplanation
Themgoalmismtomdistributemyourmdatamandmworkloadmevenlymacrossmthemitemsmassociatedmwithmthe
sempartitionmkeymvalues.mIfmsuchmampropertymdoesn'tmexistminmyourmdata,myoumcanmconstructmamsyn
theticmpartitionmkey.
Youmcanmformmampartitionmkeymbymconcatenatingmmultiplempropertymvaluesmintomamsinglemartificial
mpartitionmKeymproperty.mThesemkeysmaremreferredmtomasmsyntheticmkeys.
Anothermpossiblemstrategymtomdistributemthemworkloadmmoremevenlymismtomappendmamrandommnu
mbermatmthemendmofmthempartitionmkeymvalue.mWhenmyoumdistributemitemsminmthismway,myoumcanmp
erformmparallelmwritemoperationsmacrossmpartitions.
https://docs.microsoft.com/en-us/azure/cosmos-db/synthetic-partition-keys
YoumdevelopingmanmapplicationmnamedmApplication1mthatmusesmAzuremBlobmstoragemnamedmStora
ge1.
Formauditmpurposes,mApplication1mmustmreadmthemtransactionmlogsmofmallmchangesmthatmoccurmtom
themblobsmandmblobmmetadataminmStorage1.
Themchangesmmustmbeminmthemorderminmwhichmtheymoccurred.
Youmneedmtomprocessmthemlogsmasynchronouslymandmshouldmincludemonlymcreate,mupdate,mdeletem
andmcopymoperations.
Whatmshouldmyoumdomtomimplementmauditmrequirement?m-mCORRECTmANSWERmExplanation
EnablemChangemfeedmonmthemstoragemaccountmandmprocessmallmchangesmformavailablemevents.m
Changemfeedmprovidesmtransactionmlogsmofmallmthemchangesmthatmoccurmtomthemblobsmandmthemblo
bmmetadataminmyourmstoragemaccount.
Themchangemfeedmprovidesmordered,mguaranteed,mdurable,mimmutable,mread-
onlymlogmofmthesemchanges.mClientmapplicationsmcanmreadmthesemlogsmatmanymtime,meitherminmstrea
mingmorminmbatchmmode.
, https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-
portal
YoumaremamdevelopermformamcompanymthatmpublishesmAPIsmusingmAzuremAPImManagement.mYoumne
edmtomstripmAspNet-VersionmfrommthemresponsemofmthemAPIs.
Whatmshouldmyoumimplement?m-mCORRECTmANSWERmExplanation
Amnewmpolicy.m
YoumneedmtomtransformmyourmAPImsomitmdoesmnotmrevealminfomaboutmthemprivatembackend.mTomdele
temthemfollowingmheadersminmthemHTTPmresponse,myoumneedmtomsetmamtransformationmpolicy.
X-Powered-By
X-AspNet-Version
https://docs.microsoft.com/en-us/azure/api-management/transform-api#transform-an-api-to-
strip-response-headers
YoumneedmtomconsumemmessagesmfrommammessagingmcomponentmthatmismdevelopedmusingmAzurem
ServicemBusmpublish-subscribemmodel.
Youmhaveminitializedmamsubscriptionmclientmobjectmusingmcorrectmdetailsmtomprocessmmessages.mHo
wever,mthemsubscriptionmapplicationmismstillmnotmconsumingmthemmessages.
Whichmofmthembelowmcodemsegmentmshouldmyoumuse?m-
mCORRECTmANSWERmsubscriptionClient.RegisterMessageHandler(ProcessMessageAsync,mmessa
geHandlerOptions)
Explanation
RegisterMessageHandlermhandlesmmessagesmonembymonemandmcompletesmthemminmthemend.
https://docs.azure.cn/en-
us/dotnet/api/microsoft.azure.servicebus.queueclient.registermessagehandler?view=azure-
dotnet
ASSOCIATE LATEST 2026 ACTUAL
EXAM| 2 VERSIONS (VERSION A AND
B) WITH COMPLETE QUESTIONS AND
CORRECT DETAILED ANSWERS
(VERIFIED ANSWERS) ALREADY
GRADED A+ (BRAND NEW!!)
YoumaremdevelopingmamwebmservicemthatmshouldmpreventmanonymousmusagemandmusemOpenIDmco
nnectmformauthentication.
YoumneedmtomimplementmanmAPImManagementmpolicymformthemwebmservice.mWhichmpolicymshould
myoumuse?m-mCORRECTmANSWERmExplanation
CORRECTmANSWERs:
Validate-jwtm-
mThemrequirementmfrommthemquestionmtomvalidatemrequestsmusingmAPImmanagementmpolicy.mYoumc
anmusemthemValidatemJWTmpolicymtompre-
authorizemrequestsminmAPImManagement,mbymvalidatingmthemaccessmtokensmofmeachmincomingmreq
uest.mIfmamrequestmdoesmnotmhavemamvalidmtoken,mAPImManagementmblocksmit.
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-
backend-with-aad#configure-a-jwt-validation-policy-to-pre-authorize-requests
YoumaremdevelopermformamcompanymnamedmCompany1.
Company1mhasmanmapplicationmthatmusesmAzuremCosmosmDBmconfiguredmwithmAzuremCosmosmDBm
SQLmAPI.
Themdatabasemcontainsmmillionsmofmdocumentsmwithoutmdistinctmvaluesmformpartitioning.
Youmneedmtomimplementmamscalingmstrategymformthemdatabasemtomscalemindividualmcontainers.
Themdatabasemmustmmeetmthemperformancemrequirementsmofmthemapplicationmbymspreadingmthem
workloadmevenlymacrossmallmpartitionsmovermtime.
,Youmneedmtomselectmampartitionmkey.
Whichmtwompartitionmkeysmcanmyoumuse?m-mCORRECTmANSWERmExplanation
Themgoalmismtomdistributemyourmdatamandmworkloadmevenlymacrossmthemitemsmassociatedmwithmthe
sempartitionmkeymvalues.mIfmsuchmampropertymdoesn'tmexistminmyourmdata,myoumcanmconstructmamsyn
theticmpartitionmkey.
Youmcanmformmampartitionmkeymbymconcatenatingmmultiplempropertymvaluesmintomamsinglemartificial
mpartitionmKeymproperty.mThesemkeysmaremreferredmtomasmsyntheticmkeys.
Anothermpossiblemstrategymtomdistributemthemworkloadmmoremevenlymismtomappendmamrandommnu
mbermatmthemendmofmthempartitionmkeymvalue.mWhenmyoumdistributemitemsminmthismway,myoumcanmp
erformmparallelmwritemoperationsmacrossmpartitions.
https://docs.microsoft.com/en-us/azure/cosmos-db/synthetic-partition-keys
YoumdevelopingmanmapplicationmnamedmApplication1mthatmusesmAzuremBlobmstoragemnamedmStora
ge1.
Formauditmpurposes,mApplication1mmustmreadmthemtransactionmlogsmofmallmchangesmthatmoccurmtom
themblobsmandmblobmmetadataminmStorage1.
Themchangesmmustmbeminmthemorderminmwhichmtheymoccurred.
Youmneedmtomprocessmthemlogsmasynchronouslymandmshouldmincludemonlymcreate,mupdate,mdeletem
andmcopymoperations.
Whatmshouldmyoumdomtomimplementmauditmrequirement?m-mCORRECTmANSWERmExplanation
EnablemChangemfeedmonmthemstoragemaccountmandmprocessmallmchangesmformavailablemevents.m
Changemfeedmprovidesmtransactionmlogsmofmallmthemchangesmthatmoccurmtomthemblobsmandmthemblo
bmmetadataminmyourmstoragemaccount.
Themchangemfeedmprovidesmordered,mguaranteed,mdurable,mimmutable,mread-
onlymlogmofmthesemchanges.mClientmapplicationsmcanmreadmthesemlogsmatmanymtime,meitherminmstrea
mingmorminmbatchmmode.
, https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-
portal
YoumaremamdevelopermformamcompanymthatmpublishesmAPIsmusingmAzuremAPImManagement.mYoumne
edmtomstripmAspNet-VersionmfrommthemresponsemofmthemAPIs.
Whatmshouldmyoumimplement?m-mCORRECTmANSWERmExplanation
Amnewmpolicy.m
YoumneedmtomtransformmyourmAPImsomitmdoesmnotmrevealminfomaboutmthemprivatembackend.mTomdele
temthemfollowingmheadersminmthemHTTPmresponse,myoumneedmtomsetmamtransformationmpolicy.
X-Powered-By
X-AspNet-Version
https://docs.microsoft.com/en-us/azure/api-management/transform-api#transform-an-api-to-
strip-response-headers
YoumneedmtomconsumemmessagesmfrommammessagingmcomponentmthatmismdevelopedmusingmAzurem
ServicemBusmpublish-subscribemmodel.
Youmhaveminitializedmamsubscriptionmclientmobjectmusingmcorrectmdetailsmtomprocessmmessages.mHo
wever,mthemsubscriptionmapplicationmismstillmnotmconsumingmthemmessages.
Whichmofmthembelowmcodemsegmentmshouldmyoumuse?m-
mCORRECTmANSWERmsubscriptionClient.RegisterMessageHandler(ProcessMessageAsync,mmessa
geHandlerOptions)
Explanation
RegisterMessageHandlermhandlesmmessagesmonembymonemandmcompletesmthemminmthemend.
https://docs.azure.cn/en-
us/dotnet/api/microsoft.azure.servicebus.queueclient.registermessagehandler?view=azure-
dotnet