Declarative and imperative management · Question 10 of 12

A Deployment web already exists. What happens with kubectl create -f web.yaml using the same file?

1 answer is correct. Medium Created with AI

Show answer

Answer

  • B The command fails with the error AlreadyExists

Explanation

create only creates new objects. For existing objects you use apply or replace.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications