H13-821_V3.0 · Question #71
The status of the workload in the HUAWEI CLOUD CCE cluster determines whether the application can be deployed properly. Which of the following descriptions is correct?
The correct answer is A. Stateless containers are not recommended for deploying relational database applications. Stateless workloads (like Kubernetes Deployments) do not preserve data or identity between pod restarts, making them unsuitable for relational databases that require persistent storage, stable network identity, and ordered startup/shutdown sequences - these are precisely the…
Question
The status of the workload in the HUAWEI CLOUD CCE cluster determines whether the application can be deployed properly. Which of the following descriptions is correct?
Options
- AStateless containers are not recommended for deploying relational database applications
- BDaemon Set+Volume can be used to provide stateful containers
- CStateful containers cannot be used in external Redis applications
- DCCE Cloud Container Engine provides stateful container instances by default
How the community answered
(30 responses)- A73% (22)
- B3% (1)
- C7% (2)
- D17% (5)
Explanation
Stateless workloads (like Kubernetes Deployments) do not preserve data or identity between pod restarts, making them unsuitable for relational databases that require persistent storage, stable network identity, and ordered startup/shutdown sequences - these are precisely the features StatefulSets (stateful containers) are designed to provide.
Option B is wrong because DaemonSets are designed to run one pod per node for cluster-wide tasks like log collection or monitoring; while they can mount volumes, they do not provide the ordered deployment guarantees and stable identity that stateful applications require.
Option C is wrong because stateful containers have no inherent restriction against connecting to external services like Redis - a StatefulSet can communicate with any external dependency just as a Deployment can.
Option D is wrong because CCE does not automatically provision stateful container instances by default; stateful workloads must be explicitly configured using StatefulSets with appropriate persistent volume claims.
Memory tip: Match the workload type to its data needs - if the application must remember something (a relational database always must), it needs a StatefulSet, not a stateless Deployment.
Topics
Community Discussion
No community discussion yet for this question.