{"id":492,"date":"2022-02-05T18:31:14","date_gmt":"2022-02-05T18:31:14","guid":{"rendered":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/aws-devops-engineer-professional-dop-c01-question480\/"},"modified":"2022-02-05T18:31:14","modified_gmt":"2022-02-05T18:31:14","slug":"aws-devops-engineer-professional-dop-c01-question480","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/aws-devops-engineer-professional-dop-c01-question480\/","title":{"rendered":"AWS DevOps Engineer Professional DOP-C01 &#8211; Question480"},"content":{"rendered":"<div class=\"question\">What are the default memory limit policies for a Docker container?<br \/><strong><br \/>A.<\/strong> Limited memory, limited kernel memory<br \/><strong>B.<\/strong> Unlimited memory, limited kernel memory<br \/><strong>C.<\/strong> Limited memory, unlimited kernel memory<br \/><strong>D.<\/strong> Unlimited memory, unlimited kernel memory<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>D<\/strong><\/div>\n<p><strong>Explanation:<\/strong> <\/p>\n<div class=\"explanation\">\nExplanation:<br \/>\nKernel memory limits are expressed in terms of the overall memory allocated to a container.<br \/>\nConsider the following scenarios:<br \/>\nUnlimited memory, unlimited kernel memory: This is the default behavior.<br \/>\nUnlimited memory, limited kernel memory: This is appropriate when the amount of memory needed by all cgroups is greater than the amount of memory that actually exists on the host machine.<br \/>\nYou can configure the kernel memory to never go over what is available on the host machine, and containers which need more memory need to wait for it.<br \/>\nLimited memory, umlimited kernel memory: The overall memory is limited, but the kernel memory is not.<br \/>\nLimited memory, limited kernel memory: Limiting both user and kernel memory can be useful for debugging memory-related problems.<br \/>\nIf a container is using an unexpected amount of either type of memory, it will run out of memory without affecting other containers or the host machine. Within this setting, if the kernel memory limit is lower than the user memory limit, running out of kernel memory will cause the container to experience an OOM error.<br \/>\nIf the kernel memory limit is higher than the user memory limit, the kernel limit will not cause the container to experience an OOM.<br \/>\nReference:<br \/>\n<a href=\"https:\/\/docs.docker.com\/engine\/admin\/resource_constraints\/#--kernel-memory-details\" title=\"External link\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/docs.docker.com\/engine\/admin\/resource_constraints\/#&#8211;kernel&#8230;<\/a><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>What are the default memory limit policies for a Docker container?A. Limited memory, limited kernel memoryB. Unlimited memory, limited kernel memoryC. Limited memory, unlimited kernel memoryD. Unlimited memory, unlimited kernel memory Show Answer Hide Answer Correct Answer: D Explanation: Explanation: Kernel memory limits are expressed in terms of the overall memory allocated to a container. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,483],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-aws-devops-engineer-professional-dop-c01","tag-aws-devops-engineer-professional-dop-c01","tag-question-480"],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/DevOps_Engineer_Professional_DOP-C01\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}