Exam:CKAD
Title:
CertifiedKubernetes
ApplicationDeveloper
https://www.passcert.com/CKAD.html
1.CORRECTTEXT


Task:
UpdatethePodckad00018-newpodintheckad00018namespacetouseaNetworkPolicyallowingthe Podtosendandreceivetrafficonlytoandfromthepodswebanddb

Answer:
2CORRECTTEXT
Task:
ModifytheexistingDeploymentnamedbroker-deploymentrunninginnamespacequetzalsothatits containers.
Thebroker-deploymentismanifestfilecanbefoundat:
Answer:
Explanation:
Solution:


Context
Yousometimesneedtoobserveapod'slogs,andwritethoselogstoafileforfurtheranalysis
Task
Pleasecompletethefollowing;
•DeploythecounterpodtotheclusterusingtheprovidedYAMLspecfileat /opt/KDOB00201/counteryaml
•Retrieveallcurrentlyavailableapplicationlogsfromtherunningpodandstoretheminthefile /opt/KDOB0020l/logOutputtxt,whichhasalreadybeencreated
Answer:
4CORRECTTEXT


Context
Youhavebeentaskedwithscalinganexistingdeploymentforavailability,andcreatingaserviceto exposethedeploymentwithinyourinfrastructure
Task
Startwiththedeploymentnamedkdsn00101-deploymentwhichhasalreadybeendeployedtothe namespacekdsn00101Edititto:
•Addthefunc=webFrontEndkey/valuelabeltothepodtemplatemetadatatoidentifythepodforthe servicedefinition
•Have4replicas
Next,createanadeployinnamespacekdsn00l01aservicethataccomplishesthefollowing:
•ExposestheserviceonTCPport8080
•ismappedtomepodsdefinedbythespecificationofkdsn00l01-deployment
•IsoftypeNodePort
•Hasanameofcherry
Answer:
5CORRECTTEXT
Context
Developersoccasionallyneedtosubmitpodsthatrunperiodically Task


Followthestepsbelowtocreateapodthatwillstartatapredeterminedtimeand]whichrunsto completiononlyonceeachtimeitisstarted:
•CreateaYAMLformattedKubernetesmanifest/opt/KDPD00301/periodicyamlthatrunsthefollowing shellcommand:dateinasinglebusyboxcontainerThecommandshouldruneveryminuteandmust completewithin22secondsorbeterminatedoyKubernetesTheCronjobnampandcontainername shouldbothbehello
•Createtheresourceintheabovemanifestandverifythatthejobexecutessuccessfullyatleastonce
Answer:
6CORRECTTEXT
Context
Aprojectthatyouareworkingonhasarequirementforpersistentdatatobeavailable Task
Tofacilitatethis,performthefollowingtasks:
•Createafileonnodesk8s-node-0at/opt/KDSP00101/data/indexhtmlwiththecontentAcct=Finance


•CreateaPersistentVolumenamedtask-pv-volumeusinghostPathandallocate1Gitoit,specifyingthat thevolumeisat/opt/KDSP00101/dataonthecluster'snodeTheconfigurationshouldspecifytheaccess modeofReadWriteOnceItshoulddefinetheStorageClassnameexamforthePersistentVolume,which willbeusedtobindPersistentVolumeClaimrequeststothisPersistenetVolume
•CreateaPefsissentVolumeClaimnamedtask-pv-claimthatrequestsavolumeofatleast100Miand specifiesanaccessmodeofReadWriteOnce
•CreateapodthatusesthePersistentVolmeClaimasavolumewithalabelapp:my-storage-app mountingtheresultingvolumetoamountPath/usr/share/nginx/htmlinsidethepod
Answer: