exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 87 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 87
Topic #: 1
[All Professional Cloud Architect Questions]

Your web application uses Google Kubernetes Engine to manage several workloads. One workload requires a consistent set of hostnames even after pod scaling and relaunches.
Which feature of Kubernetes should you use to accomplish this?

  • A. StatefulSets
  • B. Role-based access control
  • C. Container environment variables
  • D. Persistent Volumes
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Eroc
Highly Voted 4 years ago
StatefulSets is a feature of Kubernetes, which the question asks about. Yes, Persistent volumes are required by StatefulSets (https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/). See the Google documentations for mentioning of hostnames (https://cloud.google.com/kubernetes-engine/docs/concepts/statefulset)... Answer A
upvoted 58 times
tartar
3 years, 2 months ago
A is ok
upvoted 6 times
...
OrangeTiger
1 year, 9 months ago
thank you!
upvoted 1 times
...
kumarp6
2 years, 12 months ago
A is correct, statefulset
upvoted 2 times
...
nitinz
2 years, 7 months ago
It is A
upvoted 2 times
...
...
omermahgoub
Highly Voted 10 months, 1 week ago
A. StatefulSets To ensure that a workload in Kubernetes has a consistent set of hostnames even after pod scaling and relaunches, you should use StatefulSets. StatefulSets are a type of controller in Kubernetes that is used to manage stateful applications. They provide a number of features that are specifically designed to support stateful applications, including: Stable, unique network identifiers for each pod in the set Persistent storage that is automatically attached to pods Ordered, graceful deployment and scaling of pods Ordered, graceful deletion and termination of pods By using StatefulSets, you can ensure that your workload has a consistent set of hostnames even if pods are scaled or relaunched, which can be important for applications that rely on stable network identifiers.
upvoted 19 times
Tamirm
8 months, 3 weeks ago
You are the best.. thanks for all the hard work to explain
upvoted 2 times
Wangyu60
7 months ago
obviously from chatGPT, but still good to share.
upvoted 1 times
...
...
...
kaleemahmad75
Most Recent 9 months, 2 weeks ago
Selected Answer: A
A is the answer
upvoted 1 times
...
megumin
11 months, 3 weeks ago
Selected Answer: A
A is ok
upvoted 1 times
...
Deepak31
11 months, 3 weeks ago
A StatefulSet is the Kubernetes controller used to run the stateful application as containers (Pods) in the Kubernetes cluster. StatefulSets assign a sticky identity—an ordinal number starting from zero—to each Pod instead of assigning random IDs for each replica Pod. A new Pod is created by cloning the previous Pod’s data.
upvoted 2 times
...
AzureDP900
1 year ago
this is straight forward question if you know kubernetes concepts. A is right
upvoted 1 times
zr79
1 year ago
I do not know Kubernetes
upvoted 2 times
...
...
DrishaS4
1 year, 2 months ago
Selected Answer: A
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
upvoted 3 times
...
mv2000
1 year, 3 months ago
06/30/2022 Exam
upvoted 3 times
...
haroldbenites
1 year, 10 months ago
Go for A. https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
upvoted 2 times
...
vincy2202
1 year, 11 months ago
Selected Answer: A
A is the correct answer
upvoted 2 times
...
MaxNRG
2 years ago
A – StatefulSets StatefulSets are suitable for deploying Kafka, MySQL, Redis, ZooKeeper, and other applications needing unique, persistent identities and stable hostnames. Read more about StatefulSets. https://cloud.google.com/kubernetes-engine/docs/concepts/statefulset C – Container Env Variable, are good if you need to init containers with some static content. E.g. Pod passes to containers its HOSTNAME (where containers are running), namespace and user defined vars. So, env vars is a way for Pod to init containers at start up. But, stable hostnames must be preserved at Pod level via StatefulSets. Defining Env Vars for Container: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
upvoted 6 times
...
Arjun1983
2 years ago
StatefulSets are designed to deploy stateful applications and clustered applications that save data to persistent storage, such as Compute Engine persistent disks. StatefulSets are suitable for deploying Kafka, MySQL, Redis, ZooKeeper, and other applications needing unique, persistent identities and "stable hostnames". Answer is A
upvoted 2 times
...
victory108
2 years, 5 months ago
A. StatefulSets
upvoted 3 times
...
un
2 years, 5 months ago
A is correct
upvoted 1 times
...
Ausias18
2 years, 7 months ago
Answer is A
upvoted 1 times
...
BhupalS
2 years, 10 months ago
A is the Ans https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
upvoted 1 times
...
Chulbul_Pandey
2 years, 11 months ago
StatefulSets for sequencing.. A is correct
upvoted 1 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