Topic 1 Question 12
You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?
Use kubectl app deploy <dockerfilename>.
Use gcloud app deploy <dockerfilename>.
Create a docker image from the Dockerfile and upload it to Container Registry. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.
Create a docker image from the Dockerfile and upload it to Cloud Storage. Create a Deployment YAML file to point to that image. Use kubectl to create the deployment with that file.
ユーザの投票
コメント(17)
C is correct
👍 37Agents892020/04/20- 正解だと思う選択肢: C
The correct answer is Option C. To deploy a Docker container on Kubernetes Engine, you should first create a Docker image from the Dockerfile and push it to Container Registry, which is a fully-managed Docker container registry that makes it easy for you to store, manage, and deploy Docker container images. Then, you can create a Deployment YAML file that specifies the image to use and other desired deployment options, and use the kubectl command-line tool to create the deployment based on the YAML file.
Option A is incorrect because kubectl app deploy is not a valid command.
Option B is incorrect because gcloud app deploy is used to deploy applications to App Engine, not Kubernetes Engine.
Option D is incorrect because it involves storing the image in Cloud Storage rather than Container Registry.
https://cloud.google.com/kubernetes-engine/docs/how-to/deploying-a-container
👍 8Buruguduystunstugudunstuy2022/12/29 - 正解だと思う選択肢: C
C is correct (21/12/2021 in my exam)
👍 6NC4F2021/12/20
シャッフルモード