exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 12 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 12
Topic #: 1
[All Associate Cloud Engineer Questions]

You have a Dockerfile that you need to deploy on Kubernetes Engine. What should you do?

  • A. Use kubectl app deploy <dockerfilename>.
  • B. Use gcloud app deploy <dockerfilename>.
  • C. 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.
  • D. 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Agents89
Highly Voted 5 years ago
C is correct
upvoted 42 times
...
Buruguduystunstugudunstuy
Highly Voted 2 years, 4 months ago
Selected Answer: 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
upvoted 26 times
ast3citos
2 years, 2 months ago
The link you provided has stopped working :_(
upvoted 3 times
...
...
Cloudmoh
Most Recent 2 months, 2 weeks ago
Selected Answer: C
The file image should be created from the Dockerfile and pushed to the Registry and from there it should be deployed once it's YAML structure is in place.
upvoted 1 times
...
madzzzz
6 months, 4 weeks ago
Selected Answer: C
C is correct
upvoted 2 times
...
subha.elumalai
11 months, 1 week ago
Correct Answer: C Reference - https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app
upvoted 1 times
...
BAofBK
1 year, 5 months ago
The answer is C.
upvoted 1 times
...
Evan7557
1 year, 6 months ago
C is Correct Answer
upvoted 1 times
...
dookiecloud
1 year, 7 months ago
C is correct. We need to build docker image then push to Container Registry and setup yaml deployment in GKE to pull our registry image.
upvoted 1 times
...
Captain1212
1 year, 7 months ago
c is correct ,, you have to first upload it in the continer registry
upvoted 1 times
...
sajitv
2 years, 1 month ago
Selected Answer: C
C is correct
upvoted 1 times
...
ChristN
2 years, 4 months ago
Selected Answer: C
C is correct.
upvoted 1 times
...
leogor
2 years, 6 months ago
c, u need to upload to Container Registry before deploying
upvoted 1 times
...
hiromi
2 years, 6 months ago
Selected Answer: C
C is correct, cuz you need to upload to Container Registry at first
upvoted 1 times
...
RanjithK
2 years, 10 months ago
Answer is C
upvoted 1 times
...
AzureDP900
2 years, 10 months ago
C is right
upvoted 1 times
...
Biksthrow
2 years, 10 months ago
C is correct answer
upvoted 1 times
...
wjtb
2 years, 11 months ago
Selected Answer: C
C is correct. A can be eliminated because kubectl app * is not a valid command B can be eliminated because gcloud app deploy deploys on app engine, not on kubernetes (also it still requires a config file pointing to the image). D is not correct, since you cannot deploy a container image directly from GCS
upvoted 6 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago