ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 39 - 300-910 discussion

Report
Export

A developer has created a deployment that should launch a pod to run their database service. The pod should launch with a metadata name of “Cisco-DB," and the developer has added it to the "Cisco" namespace in their deployment.

Which Kubernetes command confirms that the service is running and usable?

A.

kubectl -n Cisco get services | grep “Cisco-DB”

Answers
A.

kubectl -n Cisco get services | grep “Cisco-DB”

B.

kubectl -n Cisco get pods | grep “Cisco-DB”

Answers
B.

kubectl -n Cisco get pods | grep “Cisco-DB”

C.

kubectl get pods | grep “Cisco-DB”

Answers
C.

kubectl get pods | grep “Cisco-DB”

D.

kubectl -n Cisco get service | grep “Cisco-DB”

Answers
D.

kubectl -n Cisco get service | grep “Cisco-DB”

Suggested answer: B

Explanation:

The correct answer is B. kubectl -n Cisco get pods | grep "Cisco-DB". This command allows you to view the pods in the Cisco namespace and filter the list for the pod named "Cisco-DB". This will confirm that the pod is running and usable.

Reference: Cisco Implementing DevOps Solutions and Practices using Cisco Platforms (DEVOPS) Study Manual, Chapter 6, Section 6.3: Kubernetes Commands, Page 113.

asked 10/10/2024
franz yap
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first